def _setObject(self,id,object,roles=None,user=None,set_owner=1):
     if object.meta_type in RELMETATYPES:
         schema = self.lookupSchema(id)
         if not schema.checkType(object):
             raise ZenSchemaError("Relationship %s type %s != %s" %
                         (id, object.meta_type, schema.__class__.__name__))
     return PrimaryPathObjectManager._setObject(self, id, object, roles,
                                         user, set_owner)
Beispiel #2
0
 def _setObject(self,id,object,roles=None,user=None,set_owner=1):
     if object.meta_type in RELMETATYPES:
         schema = self.lookupSchema(id)
         if not schema.checkType(object):
             raise ZenSchemaError("Relaitonship %s type %s != %s" %
                         (id, object.meta_type, schema.__class__.__name__))
     return PrimaryPathObjectManager._setObject(self, id, object, roles,
                                         user, set_owner)
 def cb_isMoveable(self):
     """Prevent move unless we are being called from our primary path."""
     if (self.getPhysicalPath() == self.getPrimaryPath()):
         return PrimaryPathObjectManager.cb_isMoveable(self)
     return 0
 def cb_isMoveable(self):
     """Prevent move unless we are being called from our primary path."""
     if (self.getPhysicalPath() == self.getPrimaryPath()):
         return PrimaryPathObjectManager.cb_isMoveable(self)
     return 0