Public Member Functions | |
def | __init__ |
def | parse |
def | set |
def | value |
Public Attributes | |
callback | |
default | |
file_name | |
group_name | |
help | |
metavar | |
multiple | |
name | |
type | |
Static Public Attributes | |
tuple | UNSET = object() |
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 374 of file options.py.
def tornado.options._Option.__init__ | ( | self, | |
name, | |||
default = None , |
|||
type = basestring_type , |
|||
help = None , |
|||
metavar = None , |
|||
multiple = False , |
|||
file_name = None , |
|||
group_name = None , |
|||
callback = None |
|||
) |
Definition at line 377 of file options.py.
def tornado.options._Option._parse_bool | ( | self, | |
value | |||
) | [private] |
Definition at line 495 of file options.py.
def tornado.options._Option._parse_datetime | ( | self, | |
value | |||
) | [private] |
Definition at line 451 of file options.py.
def tornado.options._Option._parse_string | ( | self, | |
value | |||
) | [private] |
Definition at line 498 of file options.py.
def tornado.options._Option._parse_timedelta | ( | self, | |
value | |||
) | [private] |
Definition at line 478 of file options.py.
def tornado.options._Option.parse | ( | self, | |
value | |||
) |
Definition at line 396 of file options.py.
def tornado.options._Option.set | ( | self, | |
value | |||
) |
Definition at line 420 of file options.py.
def tornado.options._Option.value | ( | self | ) |
Definition at line 393 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 438 of file options.py.
string tornado::options._Option::_FLOAT_PATTERN = r'[-+]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][-+]?\d+)?' [static, private] |
Definition at line 473 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 469 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 459 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 475 of file options.py.
tornado::options._Option::_value [private] |
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
Definition at line 377 of file options.py.
tuple tornado::options._Option::UNSET = object() [static] |
Definition at line 375 of file options.py.