author | sylvain.thenault@logilab.fr |
Wed, 11 Mar 2009 11:02:32 +0100 | |
branch | tls-sprint |
changeset 1045 | 5040a5835e4d |
parent 624 | 258e5692ae06 |
permissions | -rw-r--r-- |
624
258e5692ae06
provide a new RichString attribute type
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
1 |
# from cubicweb.schema import format_constraint |
0 | 2 |
|
3 |
class Card(EntityType): |
|
4 |
"""a card is a textual content used as documentation, reference, procedure reminder""" |
|
5 |
permissions = { |
|
6 |
'read': ('managers', 'users', 'guests'), |
|
7 |
'add': ('managers', 'users'), |
|
8 |
'delete': ('managers', 'owners'), |
|
9 |
'update': ('managers', 'owners',), |
|
10 |
} |
|
11 |
||
12 |
title = String(required=True, fulltextindexed=True, maxsize=256) |
|
13 |
synopsis = String(fulltextindexed=True, maxsize=512, |
|
14 |
description=_("an abstract for this card")) |
|
624
258e5692ae06
provide a new RichString attribute type
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
15 |
content = RichString(fulltextindexed=True, default_format='text/rest') |
0 | 16 |
wikiid = String(maxsize=64, indexed=True) |