schema.py
branchstable
changeset 4570 ede247bbbf62
parent 4466 8b0ca7904820
child 4574 2380444d982c
equal deleted inserted replaced
4569:1acd90d0cb59 4570:ede247bbbf62
   917             if toeid is None:
   917             if toeid is None:
   918                 return False
   918                 return False
   919             kwargs['o'] = toeid
   919             kwargs['o'] = toeid
   920         return self._check(session, **kwargs)
   920         return self._check(session, **kwargs)
   921 
   921 
       
   922 # in yams, default 'update' perm for attributes granted to managers and owners.
       
   923 # Within cw, we want to default to users who may edit the entity holding the
       
   924 # attribute.
       
   925 ybo._DEFAULT_ATTRPERMS['update'] = (
       
   926     'managers', ERQLExpression('U has_update_permission X'))
   922 
   927 
   923 # workflow extensions #########################################################
   928 # workflow extensions #########################################################
   924 
   929 
   925 from yams.buildobjs import _add_relation as yams_add_relation
   930 from yams.buildobjs import _add_relation as yams_add_relation
   926 
   931