Type LocaleIdentity
object
--+
|
LocaleIdentity
Represents a unique identification of the locale
This class does not have to deal with inheritance.
Examples:
>>> id = LocaleIdentity('en')
>>> id
<LocaleIdentity (en, None, None, None)>
>>> id = LocaleIdentity('en', 'latin')
>>> id
<LocaleIdentity (en, latin, None, None)>
>>> id = LocaleIdentity('en', 'latin', 'US')
>>> id
<LocaleIdentity (en, latin, US, None)>
>>> id = LocaleIdentity('en', 'latin', 'US', 'POSIX')
>>> id
<LocaleIdentity (en, latin, US, POSIX)>
>>> id = LocaleIdentity('en', None, 'US', 'POSIX')
>>> id
<LocaleIdentity (en, None, US, POSIX)>
Method Summary |
|
__init__ (self,
language,
script,
territory,
variant)
Initialize object. |
|
__repr__ (self)
See zope.i18n.interfaces.ILocaleIdentity |
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
x.__hash__() <==> hash(x) |
|
__new__ (T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
x.__str__() <==> str(x) |
Class Variable Summary |
Implements |
__implemented__ = <implementedBy zope.i18n.locales.Local...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
__init__(self,
language=None,
script=None,
territory=None,
variant=None)
(Constructor)
Initialize object.
-
- Overrides:
__builtin__.object.__init__
|
__implemented__
-
- Type:
-
Implements
- Value:
<implementedBy zope.i18n.locales.LocaleIdentity>
|
|
__providedBy__
-
- Type:
-
ClassProvides
- Value:
<zope.interface.declarations.ClassProvides object at 0xb5ed702c>
|
|
__provides__
-
- Type:
-
ClassProvides
- Value:
<zope.interface.declarations.ClassProvides object at 0xb5ed702c>
|
|