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

def Localizer::LocalPropertyManager::LocalPropertyManager::_setLocalProperty (   self,
  id,
  type,
  lang = None,
  value = None 
) [private]

Adds a new local property

Definition at line 165 of file LocalPropertyManager.py.

00165                                                                 :
        """Adds a new local property"""
        if not self.hasLocalProperty(id):
            self._local_properties_metadata += ({'id': id, 'type': type},)
            setattr(self, id, LocalProperty(id))

        if lang is not None:
            self._setLocalPropValue(id, lang, value)


    security.declarePrivate('_delLocalProperty')
    def _delLocalProperty(self, id):


Generated by  Doxygen 1.6.0   Back to index