Ejemplo n.º 1
0
    def _updateProperty(self, id, value):

        if id == 'predicate':
            self._setPredicate(value)

        else:
            PropertyManager._updateProperty(self, id, value)
Ejemplo n.º 2
0
    def _updateProperty( self, id, value ):

        if id == 'predicate':
            self._setPredicate( value )

        else:
            PropertyManager._updateProperty( self, id, value )
 def _updateProperty(self, id, value):
     """ Hook for updating a particular property.
     
     """
     self._p_changed = 1
     # the check method should return the value to be stored or
     # raise an Exception
     check_method = getattr(self, 'check_%s' % id, None)
     if check_method:
         value = check_method(value)
     # use the regular property sheets storage
     PropertyManager._updateProperty(self, id, value)
     
     # run a reindex if we are CatalogAware
     if hasattr(self, 'reindex_object'):
         self.reindex_object()
    def _updateProperty(self, id, value):
        """ Hook for updating a particular property.
        
        """
        self._p_changed = 1
        # the check method should return the value to be stored or
        # raise an Exception
        check_method = getattr(self, 'check_%s' % id, None)
        if check_method:
            value = check_method(value)
        # use the regular property sheets storage
        PropertyManager._updateProperty(self, id, value)

        # run a reindex if we are CatalogAware
        if hasattr(self, 'reindex_object'):
            self.reindex_object()