Logo Search packages:      
Sourcecode: zope-linguaplone version File versions

def zope-linguaplone-0.7::I18NBaseObject::I18NBaseObject::getCanonical (   self  ) 

Returns the canonical translation

Definition at line 181 of file I18NBaseObject.py.

00181                           :
        """Returns the canonical translation"""
        if CACHE_TRANSLATIONS and getattr(self, '_v_canonical', None):
            return self._v_canonical
        ret = None

        if self.isCanonical():
            ret = self
        else:
            refs = self.getRefs(RELATIONSHIP)
            ret = refs and refs[0] or None

        if CACHE_TRANSLATIONS:
            self._v_canonical = ret
        return ret
   
    security.declareProtected(View, 'getLanguage')
    def getLanguage(self):


Generated by  Doxygen 1.6.0   Back to index