server/test/data/migratedapp/schema.py
branchstable
changeset 3543 ed152fe5aa8b
parent 3134 3cda74b5534c
child 3546 f0aecddf367e
equal deleted inserted replaced
3542:4c92cd09882f 3543:ed152fe5aa8b
    48                    'add':    ('managers',
    48                    'add':    ('managers',
    49                               ERQLExpression('X ecrit_part PE, U in_group G, '
    49                               ERQLExpression('X ecrit_part PE, U in_group G, '
    50                                              'PE require_permission P, P name "add_note", '
    50                                              'PE require_permission P, P name "add_note", '
    51                                              'P require_group G'),)}
    51                                              'P require_group G'),)}
    52 
    52 
    53     whatever = Int()  # keep it before `date` for unittest_migraction.test_add_attribute_int
    53     whatever = Int(default=2)  # keep it before `date` for unittest_migraction.test_add_attribute_int
    54     date = Datetime()
    54     date = Datetime()
    55     type = String(maxsize=1)
    55     type = String(maxsize=1)
    56     mydate = Date(default='TODAY')
    56     mydate = Date(default='TODAY')
    57     shortpara = String(maxsize=64)
    57     shortpara = String(maxsize=64)
    58     ecrit_par = SubjectRelation('Personne', constraints=[RQLConstraint('S concerne A, O concerne A')])
    58     ecrit_par = SubjectRelation('Personne', constraints=[RQLConstraint('S concerne A, O concerne A')])