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

def Localizer::LocalPropertyManager::LocalPropertyManager::manage_upgrade (   self,
  REQUEST = None,
  RESPONSE = None 

Definition at line 314 of file LocalPropertyManager.py.

00314                                                          :
        """ """
        # In version 0.6 appears the attribute "_languages"
        if not self.__dict__.has_key('_languages'):
                localizer = self.Localizer
            except AttributeError:
                self._languages = ('en',)
                self._languages = tuple(localizer.get_supported_languages())

            for property in self._local_properties_metadata:
                id = property['id']
                setattr(self, id, LocalProperty(id))

        # In version 0.7 the language management logic moved to the
        # mixin class LanguageManager, as a consequence the attribute
        # "original_language" changes its name to "_default_language".
        if hasattr(self.aq_base, 'original_languge'):
            self._default_language = self.original_language
            del self.original_language

        if REQUEST is not None:
            return self.manage_main(self, REQUEST)

    # Define <id>_<lang> attributes, useful for example to catalog
    def __getattr__(self, name):

Generated by  Doxygen 1.6.0   Back to index