server/test/data/schema/note.py
author sylvain.thenault@logilab.fr
Thu, 29 Jan 2009 16:26:33 +0100
changeset 519 06390418cd9a
parent 0 b97547f5f1fa
child 1802 d628defebc17
permissions -rw-r--r--
pyrorql source now ignore external eids which are themselves coming from another external source already in use by the repository (should have the same uri)


class para(AttributeRelationType):
    permissions = {
        'read':   ('managers', 'users', 'guests'),
        'add':    ('managers', ERQLExpression('X in_state S, S name "todo"')),
        'delete': ('managers', ERQLExpression('X in_state S, S name "todo"')),
        }

class in_state(RelationDefinition):
    subject = 'Note'
    object = 'State'
    cardinality = '1*'
    constraints=[RQLConstraint('S is ET, O state_of ET')]
    
class wf_info_for(RelationDefinition):
    subject = 'TrInfo'
    object = 'Note'
    cardinality = '1*'