server/test/data/migratedapp/schema.py
branch3.5
changeset 3134 3cda74b5534c
parent 2967 e7d348134006
child 3543 ed152fe5aa8b
equal deleted inserted replaced
3132:cb310b97424e 3134:3cda74b5534c
    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     date = Datetime()
    54     date = Datetime()
    54     type = String(maxsize=1)
    55     type = String(maxsize=1)
    55     whatever = Int()
       
    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')])
    59     attachment = SubjectRelation(('File', 'Image'))
    59     attachment = SubjectRelation(('File', 'Image'))
    60 
    60