Type LocaleVersion
object --+
|
LocaleVersion
Represents a particular version of a locale
This class does not have to deal with inheritance.
Examples:
>>> cmp(LocaleVersion('1.0', datetime(2004, 1, 1), 'no notes'),
... LocaleVersion('1.0', datetime(2004, 1, 1), 'no notes again'))
0
>>> cmp(LocaleVersion('1.0', datetime(2004, 1, 1), 'no notes'),
... LocaleVersion('1.0', datetime(2004, 1, 2), 'no notes again'))
-1
>>> cmp(LocaleVersion('1.0', datetime(2004, 1, 1), 'no notes'),
... LocaleVersion('0.9', datetime(2004, 1, 2), 'no notes again'))
-1
>>> cmp(LocaleVersion('1.0', datetime(2004, 1, 1), 'no notes'),
... LocaleVersion('0.9', datetime(2004, 1, 1), 'no notes again'))
1
| Method Summary |
| |
__init__(self,
number,
generationDate,
notes)
Initialize object. |
| |
__cmp__(self,
other)
See zope.i18n.interfaces.ILocaleVersion |
| 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 |
| |
__repr__(x)
x.__repr__() <==> repr(x) |
| |
__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...
|
__cmp__(self,
other)
(Comparison operator)
See zope.i18n.interfaces.ILocaleVersion
-
|
__implemented__
-
- Type:
-
Implements
- Value:
<implementedBy zope.i18n.locales.LocaleVersion>
|
|
__providedBy__
-
- Type:
-
ClassProvides
- Value:
<zope.interface.declarations.ClassProvides object at 0xb5ed724c>
|
|
__provides__
-
- Type:
-
ClassProvides
- Value:
<zope.interface.declarations.ClassProvides object at 0xb5ed724c>
|
|