1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
92 para = String(maxsize=512, |
92 para = String(maxsize=512, |
93 __permissions__ = { |
93 __permissions__ = { |
94 'read': ('managers', 'users', 'guests'), |
94 'read': ('managers', 'users', 'guests'), |
95 'update': ('managers', ERQLExpression('X in_state S, S name "todo"')), |
95 'update': ('managers', ERQLExpression('X in_state S, S name "todo"')), |
96 }) |
96 }) |
97 |
97 something = String(maxsize=1, |
|
98 __permissions__ = { |
|
99 'read': ('managers', 'users', 'guests'), |
|
100 'add': (ERQLExpression('NOT X para NULL'),), |
|
101 'update': ('managers', 'owners') |
|
102 }) |
98 migrated_from = SubjectRelation('Note') |
103 migrated_from = SubjectRelation('Note') |
99 attachment = SubjectRelation('File') |
104 attachment = SubjectRelation('File') |
100 inline1 = SubjectRelation('Affaire', inlined=True, cardinality='?*', |
105 inline1 = SubjectRelation('Affaire', inlined=True, cardinality='?*', |
101 constraints=[RQLUniqueConstraint('S type T, S inline1 A1, A1 todo_by C, ' |
106 constraints=[RQLUniqueConstraint('S type T, S inline1 A1, A1 todo_by C, ' |
102 'Y type T, Y inline1 A2, A2 todo_by C', |
107 'Y type T, Y inline1 A2, A2 todo_by C', |
117 fax = Int() |
122 fax = Int() |
118 datenaiss = Datetime() |
123 datenaiss = Datetime() |
119 tzdatenaiss = TZDatetime() |
124 tzdatenaiss = TZDatetime() |
120 test = Boolean(__permissions__={ |
125 test = Boolean(__permissions__={ |
121 'read': ('managers', 'users', 'guests'), |
126 'read': ('managers', 'users', 'guests'), |
|
127 'add': ('managers',), |
122 'update': ('managers',), |
128 'update': ('managers',), |
123 }) |
129 }) |
124 description = String() |
130 description = String() |
125 firstname = String(fulltextindexed=True, maxsize=64) |
131 firstname = String(fulltextindexed=True, maxsize=64) |
126 |
132 |