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

def Localizer::LocalPropertyManager::LocalPropertyManager::_delLocalProperty (   self,
  id 
) [private]

Deletes a property

Definition at line 176 of file LocalPropertyManager.py.

00176                                    :
        """Deletes a property"""
        # update properties metadata
        p = [ x for x in self._local_properties_metadata if x['id'] != id ]
        self._local_properties_metadata = tuple(p)

        # delete attribute
        try:
            del self._local_properties[id]
        except KeyError:
            pass

        try:
            delattr(self, id)
        except KeyError:
            pass


    security.declareProtected('Manage properties', 'manage_addLocalProperty')
    def manage_addLocalProperty(self, id, type, REQUEST=None, RESPONSE=None):


Generated by  Doxygen 1.6.0   Back to index