Package zope :: Package i18n :: Package locales :: Class Locale
[show private | hide private]
[frames | no frames]

Type Locale

      object --+        
               |        
     Inheritance --+    
                   |    
AttributeInheritance --+
                       |
                      Locale


Implementation of the ILocale interface.
Method Summary
  __init__(self, id)
  getInheritedSelf(self)
See zope.i18n.interfaces.locales.ILocaleInheritance
  getLocaleID(self)
Return the locale id.
    Inherited from AttributeInheritance
  __getattr__(self, name)
See zope.i18n.interfaces.locales.ILocaleInheritance
  __setattr__(self, name, value)
See zope.i18n.interfaces.locales.ILocaleInheritance
    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)
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
Implements __implemented__ = <implementedBy zope.i18n.locales.Local...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
    Inherited from Inheritance
str __name__ = 'Inheritance'
NoneType __parent__ = None                                                                  
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...

Method Details

getInheritedSelf(self)

See zope.i18n.interfaces.locales.ILocaleInheritance

This is the really interesting method that looks up the next (more general) Locale object. This is used in case this locale object does not have the required information.

This method works closely with with LocaleProvider.
Overrides:
zope.i18n.locales.inheritance.Inheritance.getInheritedSelf

getLocaleID(self)

Return the locale id.

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy zope.i18n.locales.Locale>                               

__provides__

Type:
ClassProvides
Value:
<zope.interface.declarations.ClassProvides object at 0xb5edb2ac>       

Generated by Epydoc 2.1 on Fri Jun 24 12:01:19 2005 http://epydoc.sf.net