Logo Search packages:      
Sourcecode: zope-cps-translationservice version File versions  Download package

def TranslationService::PlacefulTranslationService::PlacefulTranslationService::_getDomain (   self,
  domain 
) [private]

Get the domain.

Definition at line 122 of file PlacefulTranslationService.py.

00122                                 :
        """Get the domain."""
        path = self._domain_dict.get(domain)
        if path is None:
            return None

        if path.endswith('.mo'):
            # filesystem .mo
            return None

        try:
            ob = self.unrestrictedTraverse(path)
        except:
            ob = None

        if ob is not None:
            # Points to an object
            if isinstance(ob, MessageCatalog):
                # Localizer
                return LocalizerDomain(path).__of__(self)
            else:
                return None
        else:
            # not an object
            return None

    def _resetCache(self):


Generated by  Doxygen 1.6.0   Back to index