Module Expr Str Import alias Import alias identifier Import alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass Import alias Import alias Assign NameStore Dict Str Str Str Str Str Str Str Str ListLoad Str Str Str NameLoad NameLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad NameLoad Str Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore TupleLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Continue orelse If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return BoolOpOr NameLoad NameLoad Call NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameStore Call NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If NameLoad body Return BinOpMod Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str If NameLoad body Return BinOpMod Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareIn NameLoad TupleLoad Str Str Str Str Str body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpMod Str TupleLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Num body Expr Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list
N/A N/A 
    webapp2_extras.i18n
    ===================

    Internationalization support for webapp2.

    Several ideas borrowed from tipfy.i18n and Flask-Babel.

    :copyright: 2011 by tipfy.org.
    :license: Apache Sotware License, see LICENSE for details.
 N/A datetime N/A gettext gettext_stdlib N/A babel babel dates babel numbers babel support N/A N/A N/A pytz.gae N/A N/A N/A ImportError N/A N/A N/A pytz N/A webapp2 N/A default_config N/A translations_path domains default_locale default_timezone locale_selector timezone_selector date_formats locale N/A messages en_US UTC None None N/A time date datetime time.short time.medium time.full time.long time.iso date.short date.medium date.full date.long date.iso datetime.short datetime.medium datetime.full datetime.long datetime.iso medium medium medium None None None None HH':'mm':'ss None None None None yyyy'-'MM'-'dd None None None None yyyy'-'MM'-'dd'T'HH':'mm':'ssZ N/A NullTranslations N/A gettext_stdlib NullTranslations I18nStore N/A object N/A N/A Internalization store.

    Caches loaded translations and configuration to be used between requests.
     N/A config_key __name__ N/A translations None N/A translations_path None N/A domains None N/A default_locale None N/A default_timezone None N/A date_formats None N/A locale_selector None N/A timezone_selector None __init__ N/A N/A self app config N/A None N/A N/A Initializes the i18n store.

        :param app:
            A :class:`webapp2.WSGIApplication` instance.
        :param config:
            A dictionary of configuration values to be overridden. See
            the available keys in :data:`default_config`.
         N/A config N/A N/A N/A app config load_config N/A self config_key default_values default_config user_values config required_keys None N/A N/A self translations N/A N/A N/A self translations_path N/A config N/A translations_path N/A N/A self domains N/A config N/A domains N/A N/A self default_locale N/A config N/A default_locale N/A N/A self default_timezone N/A config N/A default_timezone N/A N/A self date_formats N/A config N/A date_formats N/A N/A N/A self set_locale_selector N/A config N/A locale_selector N/A N/A N/A self set_timezone_selector N/A config N/A timezone_selector N/A set_locale_selector N/A N/A self func N/A N/A N/A Sets the function that defines the locale for a request.

        :param func:
            A callable that receives (store, request) and returns the locale
            for a request.
         N/A N/A func None N/A N/A N/A self locale_selector N/A self default_locale_selector N/A N/A N/A isinstance func basestring N/A N/A func N/A N/A webapp2 import_string func N/A N/A self locale_selector N/A N/A func __get__ self N/A self __class__ N/A set_timezone_selector N/A N/A self func N/A N/A N/A Sets the function that defines the timezone for a request.

        :param func:
            A callable that receives (store, request) and returns the timezone
            for a request.
         N/A N/A func None N/A N/A N/A self timezone_selector N/A self default_timezone_selector N/A N/A N/A isinstance func basestring N/A N/A func N/A N/A webapp2 import_string func N/A N/A self timezone_selector N/A N/A func __get__ self N/A self __class__ N/A default_locale_selector N/A N/A self request N/A N/A N/A N/A self default_locale N/A default_timezone_selector N/A N/A self request N/A N/A N/A N/A self default_timezone N/A get_translations N/A N/A self locale N/A N/A N/A Returns a translation catalog for a locale.

        :param locale:
            A locale code.
        :returns:
            A ``babel.support.Translations`` instance, or
            ``gettext.NullTranslations`` if none was found.
         N/A trans N/A N/A N/A self translations get locale N/A N/A trans N/A N/A locales N/A locale N/A self default_locale N/A trans N/A N/A self load_translations N/A self translations_path locales N/A self domains N/A N/A N/A self translations N/A locale trans N/A trans N/A load_translations N/A N/A self dirname locales domains N/A N/A N/A Loads a translation catalog.

        :param dirname:
            Path to where translations are stored.
        :param locales:
            A list of locale codes.
        :param domains:
            A list of domains to be merged.
        :returns:
            A ``babel.support.Translations`` instance, or
            ``gettext.NullTranslations`` if none was found.
         N/A trans None N/A trans_null None N/A domain domains N/A N/A _trans N/A N/A N/A support Translations load dirname locales domain N/A N/A isinstance _trans NullTranslations N/A N/A trans_null _trans N/A N/A N/A N/A trans None N/A N/A trans _trans N/A N/A N/A N/A trans merge _trans N/A N/A trans trans_null N/A NullTranslations N/A N/A I18n N/A object N/A N/A Internalization provider for a single request. N/A store None N/A locale None N/A translations None N/A timezone None N/A tzinfo None __init__ N/A N/A self request N/A N/A N/A Initializes the i18n provider for a request.

        :param request:
            A :class:`webapp2.Request` instance.
         N/A N/A self store store N/A get_store app N/A request app N/A N/A N/A self set_locale N/A N/A store locale_selector request N/A N/A N/A self set_timezone N/A N/A store timezone_selector request N/A set_locale N/A N/A self locale N/A N/A N/A Sets the locale code for this request.

        :param locale:
            A locale code.
         N/A N/A self locale locale N/A N/A self translations N/A N/A N/A self store get_translations locale N/A set_timezone N/A N/A self timezone N/A N/A N/A Sets the timezone code for this request.

        :param timezone:
            A timezone code.
         N/A N/A self timezone timezone N/A N/A self tzinfo N/A N/A pytz timezone timezone N/A gettext N/A N/A self string N/A variables N/A N/A Translates a given string according to the current locale.

        :param string:
            The string to be translated.
        :param variables:
            Variables to format the returned string.
        :returns:
            The translated string.
         N/A variables N/A N/A N/A N/A N/A N/A self translations ugettext string variables N/A N/A N/A N/A self translations ugettext string N/A ngettext N/A N/A self singular plural n N/A variables N/A N/A Translates a possible pluralized string according to the current
        locale.

        :param singular:
            The singular for of the string to be translated.
        :param plural:
            The plural for of the string to be translated.
        :param n:
            An integer indicating if this is a singular or plural. If greater
            than 1, it is a plural.
        :param variables:
            Variables to format the returned string.
        :returns:
            The translated string.
         N/A variables N/A N/A N/A N/A N/A N/A self translations ungettext singular plural n variables N/A N/A N/A N/A self translations ungettext singular plural n N/A to_local_timezone N/A N/A self datetime N/A N/A N/A Returns a datetime object converted to the local timezone.

        :param datetime:
            A ``datetime`` object.
        :returns:
            A ``datetime`` object normalized to a timezone.
         N/A N/A N/A datetime tzinfo None N/A N/A datetime N/A N/A datetime replace tzinfo N/A pytz UTC N/A N/A N/A N/A self tzinfo normalize N/A N/A datetime astimezone N/A self tzinfo N/A to_utc N/A N/A self datetime N/A N/A N/A Returns a datetime object converted to UTC and without tzinfo.

        :param datetime:
            A ``datetime`` object.
        :returns:
            A naive ``datetime`` object (no timezone), converted to UTC.
         N/A N/A N/A datetime tzinfo None N/A N/A datetime N/A N/A N/A self tzinfo localize datetime N/A N/A N/A N/A N/A datetime astimezone N/A pytz UTC replace tzinfo None N/A _get_format N/A N/A self key format N/A N/A N/A A helper for the datetime formatting functions. Returns a format
        name or pattern to be used by Babel date format functions.

        :param key:
            A format key to be get from config. Valid values are "date",
            "datetime" or "time".
        :param format:
            The format to be returned. Valid values are "short", "medium",
            "long", "full" or a custom date/time pattern.
        :returns:
            A format name or pattern to be used by Babel date format functions.
         N/A N/A format None N/A N/A format N/A N/A N/A N/A self store date_formats get key N/A N/A format N/A short medium full long iso N/A N/A rv N/A N/A N/A N/A self store date_formats get N/A %s.%s N/A key format N/A N/A rv None N/A N/A format rv N/A format N/A format_date N/A N/A self date format rebase N/A None None True N/A N/A Returns a date formatted according to the given pattern and
        following the current locale.

        :param date:
            A ``date`` or ``datetime`` object. If None, the current date in
            UTC is used.
        :param format:
            The format to be returned. Valid values are "short", "medium",
            "long", "full" or a custom date/time pattern. Example outputs:

            - short:  11/10/09
            - medium: Nov 10, 2009
            - long:   November 10, 2009
            - full:   Tuesday, November 10, 2009

        :param rebase:
            If True, converts the date to the current :attr:`timezone`.
        :returns:
            A formatted date in unicode.
         N/A format N/A N/A self _get_format date format N/A N/A rebase N/A isinstance date N/A datetime datetime N/A N/A date N/A N/A self to_local_timezone date N/A N/A N/A dates format_date date format locale N/A self locale N/A format_datetime N/A N/A self datetime format rebase N/A None None True N/A N/A Returns a date and time formatted according to the given pattern
        and following the current locale and timezone.

        :param datetime:
            A ``datetime`` object. If None, the current date and time in UTC
            is used.
        :param format:
            The format to be returned. Valid values are "short", "medium",
            "long", "full" or a custom date/time pattern. Example outputs:

            - short:  11/10/09 4:36 PM
            - medium: Nov 10, 2009 4:36:05 PM
            - long:   November 10, 2009 4:36:05 PM +0000
            - full:   Tuesday, November 10, 2009 4:36:05 PM World (GMT) Time

        :param rebase:
            If True, converts the datetime to the current :attr:`timezone`.
        :returns:
            A formatted date and time in unicode.
         N/A format N/A N/A self _get_format datetime format N/A kwargs N/A N/A rebase N/A N/A N/A kwargs N/A tzinfo N/A self tzinfo N/A N/A N/A dates format_datetime datetime format locale N/A self locale kwargs N/A format_time N/A N/A self time format rebase N/A None None True N/A N/A Returns a time formatted according to the given pattern and
        following the current locale and timezone.

        :param time:
            A ``time`` or ``datetime`` object. If None, the current
            time in UTC is used.
        :param format:
            The format to be returned. Valid values are "short", "medium",
            "long", "full" or a custom date/time pattern. Example outputs:

            - short:  4:36 PM
            - medium: 4:36:05 PM
            - long:   4:36:05 PM +0000
            - full:   4:36:05 PM World (GMT) Time

        :param rebase:
            If True, converts the time to the current :attr:`timezone`.
        :returns:
            A formatted time in unicode.
         N/A format N/A N/A self _get_format time format N/A kwargs N/A N/A rebase N/A N/A N/A kwargs N/A tzinfo N/A self tzinfo N/A N/A N/A dates format_time time format locale N/A self locale kwargs N/A format_timedelta N/A N/A self datetime_or_timedelta granularity threshold N/A second 0.85 N/A N/A Formats the elapsed time from the given date to now or the given
        timedelta. This currently requires an unreleased development version
        of Babel.

        :param datetime_or_timedelta:
            A ``timedelta`` object representing the time difference to format,
            or a ``datetime`` object in UTC.
        :param granularity:
            Determines the smallest unit that should be displayed, the value
            can be one of "year", "month", "week", "day", "hour", "minute" or
            "second".
        :param threshold:
            Factor that determines at which point the presentation switches to
            the next higher unit.
        :returns:
            A string with the elapsed time.
         N/A N/A isinstance datetime_or_timedelta N/A datetime datetime N/A N/A datetime_or_timedelta N/A N/A N/A N/A datetime datetime utcnow datetime_or_timedelta N/A N/A N/A dates format_timedelta datetime_or_timedelta granularity threshold threshold locale N/A self locale N/A format_number N/A N/A self number N/A N/A N/A Returns the given number formatted for the current locale. Example::

            >>> format_number(1099, locale='en_US')
            u'1,099'

        :param number:
            The number to format.
        :returns:
            The formatted number.
         N/A N/A N/A numbers format_number number locale N/A self locale N/A format_decimal N/A N/A self number format N/A None N/A N/A Returns the given decimal number formatted for the current locale.
        Example::

            >>> format_decimal(1.2345, locale='en_US')
            u'1.234'
            >>> format_decimal(1.2346, locale='en_US')
            u'1.235'
            >>> format_decimal(-1.2346, locale='en_US')
            u'-1.235'
            >>> format_decimal(1.2345, locale='sv_SE')
            u'1,234'
            >>> format_decimal(12345, locale='de')
            u'12.345'

        The appropriate thousands grouping and the decimal separator are used
        for each locale::

            >>> format_decimal(12345.5, locale='en_US')
            u'12,345.5'

        :param number:
            The number to format.
        :param format:
            Notation format.
        :returns:
            The formatted decimal number.
         N/A N/A N/A numbers format_decimal number format format locale N/A self locale N/A format_currency N/A N/A self number currency format N/A None N/A N/A Returns a formatted currency value. Example::

            >>> format_currency(1099.98, 'USD', locale='en_US')
            u'$1,099.98'
            >>> format_currency(1099.98, 'USD', locale='es_CO')
            u'US$\xa01.099,98'
            >>> format_currency(1099.98, 'EUR', locale='de_DE')
            u'1.099,98\xa0\u20ac'

        The pattern can also be specified explicitly::

            >>> format_currency(1099.98, 'EUR', u'\xa4\xa4 #,##0.00', locale='en_US')
            u'EUR 1,099.98'

        :param number:
            The number to format.
        :param currency:
            The currency code.
        :param format:
            Notation format.
        :returns:
            The formatted currency value.
         N/A N/A N/A numbers format_currency number currency format format locale N/A self locale N/A format_percent N/A N/A self number format N/A None N/A N/A Returns formatted percent value for the current locale. Example::

            >>> format_percent(0.34, locale='en_US')
            u'34%'
            >>> format_percent(25.1234, locale='en_US')
            u'2,512%'
            >>> format_percent(25.1234, locale='sv_SE')
            u'2\xa0512\xa0%'

        The format pattern can also be specified explicitly::

            >>> format_percent(25.1234, u'#,##0\u2030', locale='en_US')
            u'25,123\u2030'

        :param number:
            The percent number to format
        :param format:
            Notation format.
        :returns:
            The formatted percent number.
         N/A N/A N/A numbers format_percent number format format locale N/A self locale N/A format_scientific N/A N/A self number format N/A None N/A N/A Returns value formatted in scientific notation for the current
        locale. Example::

            >>> format_scientific(10000, locale='en_US')
            u'1E4'

        The format pattern can also be specified explicitly::

            >>> format_scientific(1234567, u'##0E00', locale='en_US')
            u'1.23E06'

        :param number:
            The number to format.
        :param format:
            Notation format.
        :returns:
            Value formatted in scientific notation.
         N/A N/A N/A numbers format_scientific number format format locale N/A self locale N/A parse_date N/A N/A self string N/A N/A N/A Parses a date from a string.

        This function uses the date format for the locale as a hint to
        determine the order in which the date fields appear in the string.
        Example::

            >>> parse_date('4/1/04', locale='en_US')
            datetime.date(2004, 4, 1)
            >>> parse_date('01.04.2004', locale='de_DE')
            datetime.date(2004, 4, 1)

        :param string:
            The string containing the date.
        :returns:
            The parsed date object.
         N/A N/A N/A dates parse_date string locale N/A self locale N/A parse_datetime N/A N/A self string N/A N/A N/A Parses a date and time from a string.

        This function uses the date and time formats for the locale as a hint
        to determine the order in which the time fields appear in the string.

        :param string:
            The string containing the date and time.
        :returns:
            The parsed datetime object.
         N/A N/A N/A dates parse_datetime string locale N/A self locale N/A parse_time N/A N/A self string N/A N/A N/A Parses a time from a string.

        This function uses the time format for the locale as a hint to
        determine the order in which the time fields appear in the string.
        Example::

            >>> parse_time('15:30:00', locale='en_US')
            datetime.time(15, 30)

        :param string:
            The string containing the time.
        :returns:
            The parsed time object.
         N/A N/A N/A dates parse_time string locale N/A self locale N/A parse_number N/A N/A self string N/A N/A N/A Parses localized number string into a long integer. Example::

            >>> parse_number('1,099', locale='en_US')
            1099L
            >>> parse_number('1.099', locale='de_DE')
            1099L

        When the given string cannot be parsed, an exception is raised::

            >>> parse_number('1.099,98', locale='de')
            Traceback (most recent call last):
               ...
            NumberFormatError: '1.099,98' is not a valid number

        :param string:
            The string to parse.
        :returns:
            The parsed number.
        :raises:
            ``NumberFormatError`` if the string can not be converted to a
            number.
         N/A N/A N/A numbers parse_number string locale N/A self locale N/A parse_decimal N/A N/A self string N/A N/A N/A Parses localized decimal string into a float. Example::

            >>> parse_decimal('1,099.98', locale='en_US')
            1099.98
            >>> parse_decimal('1.099,98', locale='de')
            1099.98

        When the given string cannot be parsed, an exception is raised::

            >>> parse_decimal('2,109,998', locale='de')
            Traceback (most recent call last):
               ...
            NumberFormatError: '2,109,998' is not a valid decimal number

        :param string:
            The string to parse.
        :returns:
            The parsed decimal number.
        :raises:
            ``NumberFormatError`` if the string can not be converted to a
            decimal number.
         N/A N/A N/A numbers parse_decimal string locale N/A self locale N/A get_timezone_location N/A N/A self dt_or_tzinfo N/A N/A N/A Returns a representation of the given timezone using "location
        format".

        The result depends on both the local display name of the country and
        the city assocaited with the time zone::

            >>> from pytz import timezone
            >>> tz = timezone('America/St_Johns')
            >>> get_timezone_location(tz, locale='de_DE')
            u"Kanada (St. John's)"
            >>> tz = timezone('America/Mexico_City')
            >>> get_timezone_location(tz, locale='de_DE')
            u'Mexiko (Mexiko-Stadt)'

        If the timezone is associated with a country that uses only a single
        timezone, just the localized country name is returned::

            >>> tz = timezone('Europe/Berlin')
            >>> get_timezone_name(tz, locale='de_DE')
            u'Deutschland'

        :param dt_or_tzinfo:
            The ``datetime`` or ``tzinfo`` object that determines
            the timezone; if None, the current date and time in UTC is assumed.
        :returns:
            The localized timezone name using location format.
         N/A N/A N/A dates get_timezone_name dt_or_tzinfo locale N/A self locale N/A N/A gettext N/A N/A string N/A variables N/A N/A See :meth:`I18n.gettext`. N/A N/A N/A N/A get_i18n gettext string variables N/A ngettext N/A N/A singular plural n N/A variables N/A N/A See :meth:`I18n.ngettext`. N/A N/A N/A N/A get_i18n ngettext singular plural n variables N/A to_local_timezone N/A N/A datetime N/A N/A N/A See :meth:`I18n.to_local_timezone`. N/A N/A N/A N/A get_i18n to_local_timezone datetime N/A to_utc N/A N/A datetime N/A N/A N/A See :meth:`I18n.to_utc`. N/A N/A N/A N/A get_i18n to_utc datetime N/A format_date N/A N/A date format rebase N/A None None True N/A N/A See :meth:`I18n.format_date`. N/A N/A N/A N/A get_i18n format_date date format rebase N/A format_datetime N/A N/A datetime format rebase N/A None None True N/A N/A See :meth:`I18n.format_datetime`. N/A N/A N/A N/A get_i18n format_datetime datetime format rebase N/A format_time N/A N/A time format rebase N/A None None True N/A N/A See :meth:`I18n.format_time`. N/A N/A N/A N/A get_i18n format_time time format rebase N/A format_timedelta N/A N/A datetime_or_timedelta granularity threshold N/A second 0.85 N/A N/A See :meth:`I18n.format_timedelta`. N/A N/A N/A N/A get_i18n format_timedelta datetime_or_timedelta granularity threshold N/A format_number N/A N/A number N/A N/A N/A See :meth:`I18n.format_number`. N/A N/A N/A N/A get_i18n format_number number N/A format_decimal N/A N/A number format N/A None N/A N/A See :meth:`I18n.format_decimal`. N/A N/A N/A N/A get_i18n format_decimal number format N/A format_currency N/A N/A number currency format N/A None N/A N/A See :meth:`I18n.format_currency`. N/A N/A N/A N/A get_i18n format_currency number currency format N/A format_percent N/A N/A number format N/A None N/A N/A See :meth:`I18n.format_percent`. N/A N/A N/A N/A get_i18n format_percent number format N/A format_scientific N/A N/A number format N/A None N/A N/A See :meth:`I18n.format_scientific`. N/A N/A N/A N/A get_i18n format_scientific number format N/A parse_date N/A N/A string N/A N/A N/A See :meth:`I18n.parse_date` N/A N/A N/A N/A get_i18n parse_date string N/A parse_datetime N/A N/A string N/A N/A N/A See :meth:`I18n.parse_datetime`. N/A N/A N/A N/A get_i18n parse_datetime string N/A parse_time N/A N/A string N/A N/A N/A See :meth:`I18n.parse_time`. N/A N/A N/A N/A get_i18n parse_time string N/A parse_number N/A N/A string N/A N/A N/A See :meth:`I18n.parse_number`. N/A N/A N/A N/A get_i18n parse_number string N/A parse_decimal N/A N/A string N/A N/A N/A See :meth:`I18n.parse_decimal`. N/A N/A N/A N/A get_i18n parse_decimal string N/A get_timezone_location N/A N/A dt_or_tzinfo N/A N/A N/A See :meth:`I18n.get_timezone_location`. N/A N/A N/A N/A get_i18n get_timezone_location dt_or_tzinfo N/A lazy_gettext N/A N/A string N/A variables N/A N/A A lazy version of :func:`gettext`.

    :param string:
        The string to be translated.
    :param variables:
        Variables to format the returned string.
    :returns:
        A ``babel.support.LazyProxy`` object that when accessed translates
        the string.
     N/A N/A N/A support LazyProxy gettext string variables N/A N/A _ gettext N/A _lazy lazy_gettext N/A _store_registry_key webapp2_extras.i18n.I18nStore N/A _i18n_registry_key webapp2_extras.i18n.I18n get_store N/A N/A factory key app N/A I18nStore _store_registry_key None N/A N/A Returns an instance of :class:`I18nStore` from the app registry.

    It'll try to get it from the current app registry, and if it is not
    registered it'll be instantiated and registered. A second call to this
    function will return the same instance.

    :param factory:
        The callable used to build and register the instance if it is not yet
        registered. The default is the class :class:`I18nStore` itself.
    :param key:
        The key used to store the instance in the registry. A default is used
        if it is not set.
    :param app:
        A :class:`webapp2.WSGIApplication` instance used to store the instance.
        The active app is used if it is not set.
     N/A app N/A app N/A N/A webapp2 get_app N/A store N/A N/A N/A app registry get key N/A N/A store N/A N/A store N/A N/A app registry N/A key N/A factory app N/A store N/A set_store N/A N/A store key app N/A _store_registry_key None N/A N/A Sets an instance of :class:`I18nStore` in the app registry.

    :param store:
        An instance of :class:`I18nStore`.
    :param key:
        The key used to retrieve the instance from the registry. A default
        is used if it is not set.
    :param request:
        A :class:`webapp2.WSGIApplication` instance used to retrieve the
        instance. The active app is used if it is not set.
     N/A app N/A app N/A N/A webapp2 get_app N/A N/A N/A app registry N/A key store N/A get_i18n N/A N/A factory key request N/A I18n _i18n_registry_key None N/A N/A Returns an instance of :class:`I18n` from the request registry.

    It'll try to get it from the current request registry, and if it is not
    registered it'll be instantiated and registered. A second call to this
    function will return the same instance.

    :param factory:
        The callable used to build and register the instance if it is not yet
        registered. The default is the class :class:`I18n` itself.
    :param key:
        The key used to store the instance in the registry. A default is used
        if it is not set.
    :param request:
        A :class:`webapp2.Request` instance used to store the instance. The
        active request is used if it is not set.
     N/A request N/A request N/A N/A webapp2 get_request N/A i18n N/A N/A N/A request registry get key N/A N/A i18n N/A N/A i18n N/A N/A request registry N/A key N/A factory request N/A i18n N/A set_i18n N/A N/A i18n key request N/A _i18n_registry_key None N/A N/A Sets an instance of :class:`I18n` in the request registry.

    :param store:
        An instance of :class:`I18n`.
    :param key:
        The key used to retrieve the instance from the registry. A default
        is used if it is not set.
    :param request:
        A :class:`webapp2.Request` instance used to retrieve the instance. The
        active request is used if it is not set.
     N/A request N/A request N/A N/A webapp2 get_request N/A N/A N/A request registry N/A key i18n N/A