Public Member Functions | |
def | __init__ |
def | parse |
def | set |
def | value |
Public Attributes | |
default | |
file_name | |
group_name | |
help | |
metavar | |
multiple | |
name | |
type | |
Private Member Functions | |
def | _parse_bool |
def | _parse_datetime |
def | _parse_string |
def | _parse_timedelta |
Private Attributes | |
_value | |
Static Private Attributes | |
list | _DATETIME_FORMATS |
string | _FLOAT_PATTERN = r'[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?' |
tuple | _TIMEDELTA_ABBREV_DICT |
list | _TIMEDELTA_ABBREVS |
tuple | _TIMEDELTA_PATTERN |
Definition at line 186 of file options.py.
def tornado.options._Option.__init__ | ( | self, | |
name, | |||
default = None , |
|||
type = basestring , |
|||
help = None , |
|||
metavar = None , |
|||
multiple = False , |
|||
file_name = None , |
|||
group_name = None |
|||
) |
Definition at line 187 of file options.py.
def tornado.options._Option._parse_bool | ( | self, | |
value | |||
) | [private] |
Definition at line 299 of file options.py.
def tornado.options._Option._parse_datetime | ( | self, | |
value | |||
) | [private] |
Definition at line 255 of file options.py.
def tornado.options._Option._parse_string | ( | self, | |
value | |||
) | [private] |
Definition at line 302 of file options.py.
def tornado.options._Option._parse_timedelta | ( | self, | |
value | |||
) | [private] |
Definition at line 282 of file options.py.
def tornado.options._Option.parse | ( | self, | |
value | |||
) |
Definition at line 204 of file options.py.
def tornado.options._Option.set | ( | self, | |
value | |||
) |
Definition at line 226 of file options.py.
def tornado.options._Option.value | ( | self | ) |
Definition at line 201 of file options.py.
list tornado::options._Option::_DATETIME_FORMATS [static, private] |
[ "%a %b %d %H:%M:%S %Y", "%Y-%m-%d %H:%M:%S", "%Y-%m-%d %H:%M", "%Y-%m-%dT%H:%M", "%Y%m%d %H:%M:%S", "%Y%m%d %H:%M", "%Y-%m-%d", "%Y%m%d", "%H:%M:%S", "%H:%M", ]
Definition at line 242 of file options.py.
string tornado::options._Option::_FLOAT_PATTERN = r'[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?' [static, private] |
Definition at line 277 of file options.py.
tuple tornado::options._Option::_TIMEDELTA_ABBREV_DICT [static, private] |
dict( (abbrev, full) for full, abbrevs in _TIMEDELTA_ABBREVS for abbrev in abbrevs)
Definition at line 273 of file options.py.
list tornado::options._Option::_TIMEDELTA_ABBREVS [static, private] |
[ ('hours', ['h']), ('minutes', ['m', 'min']), ('seconds', ['s', 'sec']), ('milliseconds', ['ms']), ('microseconds', ['us']), ('days', ['d']), ('weeks', ['w']), ]
Definition at line 263 of file options.py.
tuple tornado::options._Option::_TIMEDELTA_PATTERN [static, private] |
re.compile(
r'\s*(%s)\s*(\w*)\s*' % _FLOAT_PATTERN, re.IGNORECASE)
Definition at line 279 of file options.py.
tornado::options._Option::_value [private] |
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.
Definition at line 187 of file options.py.