Module Expr Str Expr Str Assign NameStore SubscriptLoad Str Slice Num Num Assign NameStore SubscriptLoad Str Slice Num Num Import alias Import alias FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareEq Call NameLoad NameLoad Num body Return Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Str Slice Num Return Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Str Slice Num If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad Str body Return Call AttributeLoad NameLoad attr SubscriptLoad Call NameLoad NameLoad Slice Num Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return UnaryOpNot CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Num decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Num decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign NameStore Call NameLoad
N/A N/A String utilities.

TODO:
  - allow strings in getDateTime routine;
 N/A History (most recent first):
11-feb-2007 [als]   added INVALID_VALUE
10-feb-2007 [als]   allow date strings padded with spaces instead of zeroes
20-dec-2005 [yc]    handle long objects in getDate/getDateTime
16-dec-2005 [yc]    created from ``strutil`` module.
 N/A __version__ N/A $Revision: 1.4 $ N/A 11 -2 N/A __date__ N/A $Date: 2007/02/11 08:57:17 $ N/A 7 -2 N/A datetime N/A time unzfill N/A N/A str N/A N/A N/A Return a string without ASCII NULs.

    This function searchers for the first NUL (ASCII 0) occurance
    and truncates string till that position.

     N/A N/A N/A N/A str N/A N/A N/A str index N/A N/A N/A ValueError N/A N/A str N/A getDate N/A N/A date N/A None N/A N/A Return `datetime.date` instance.

    Type of the ``date`` argument could be one of the following:
        None:
            use current date value;
        datetime.date:
            this value will be returned;
        datetime.datetime:
            the result of the date.date() will be returned;
        string:
            assuming "%Y%m%d" or "%y%m%dd" format;
        number:
            assuming it's a timestamp (returned for example
            by the time.time() call;
        sequence:
            assuming (year, month, day, ...) sequence;

    Additionaly, if ``date`` has callable ``ticks`` attribute,
    it will be used and result of the called would be treated
    as a timestamp value.

     N/A N/A date None N/A N/A N/A N/A N/A datetime date today N/A N/A isinstance date N/A datetime date N/A N/A date N/A N/A isinstance date N/A datetime datetime N/A N/A N/A N/A date date N/A N/A isinstance date N/A int float N/A N/A N/A N/A N/A datetime date fromtimestamp date N/A N/A isinstance date str N/A N/A date N/A N/A date replace 0 N/A N/A N/A len date 6 N/A N/A N/A N/A datetime date N/A N/A N/A time strptime date %y%m%d N/A 3 N/A N/A N/A datetime date N/A N/A N/A time strptime date %Y%m%d N/A 3 N/A N/A hasattr date __getitem__ N/A N/A N/A N/A datetime date N/A date N/A 3 N/A N/A N/A N/A datetime date fromtimestamp N/A N/A date ticks N/A getDateTime N/A N/A value N/A None N/A N/A Return `datetime.datetime` instance.

    Type of the ``value`` argument could be one of the following:
        None:
            use current date value;
        datetime.date:
            result will be converted to the `datetime.datetime` instance
            using midnight;
        datetime.datetime:
            ``value`` will be returned as is;
        string:
            *** CURRENTLY NOT SUPPORTED ***;
        number:
            assuming it's a timestamp (returned for example
            by the time.time() call;
        sequence:
            assuming (year, month, day, ...) sequence;

    Additionaly, if ``value`` has callable ``ticks`` attribute,
    it will be used and result of the called would be treated
    as a timestamp value.

     N/A N/A value None N/A N/A N/A N/A N/A datetime datetime today N/A N/A isinstance value N/A datetime datetime N/A N/A value N/A N/A isinstance value N/A datetime date N/A N/A N/A N/A N/A datetime datetime fromordinal N/A N/A value toordinal N/A N/A isinstance value N/A int float N/A N/A N/A N/A N/A datetime datetime fromtimestamp value N/A N/A isinstance value str N/A N/A N/A NotImplementedError Strings aren't currently implemented N/A N/A hasattr value __getitem__ N/A N/A N/A N/A datetime datetime N/A N/A tuple value N/A 6 N/A N/A N/A N/A datetime datetime fromtimestamp N/A N/A value ticks N/A classproperty N/A property N/A N/A Works in the same way as a ``property``, but for the classes. __get__ N/A N/A self obj cls N/A N/A N/A N/A N/A self fget cls N/A N/A _InvalidValue N/A object N/A N/A Value returned from DBF records when field validation fails

    The value is not equal to anything except for itself
    and equal to all empty values: None, 0, empty string etc.
    In other words, invalid value is equal to None and not equal
    to None at the same time.

    This value yields zero upon explicit conversion to a number type,
    empty string for string types, and False for boolean.

     __eq__ N/A N/A self other N/A N/A N/A N/A other N/A __ne__ N/A N/A self other N/A N/A N/A N/A N/A other self N/A __bool__ N/A N/A self N/A N/A N/A False N/A __int__ N/A N/A self N/A N/A N/A 0 N/A N/A __long__ __int__ __float__ N/A N/A self N/A N/A N/A 0.0 N/A __str__ N/A N/A self N/A N/A N/A N/A __unicode__ N/A N/A self N/A N/A N/A N/A __repr__ N/A N/A self N/A N/A N/A <INVALID> N/A N/A N/A INVALID_VALUE N/A _InvalidValue