44 work.content: the rich-text contents of the Document |
44 work.content: the rich-text contents of the Document |
45 """ |
45 """ |
46 |
46 |
47 URL_NAME = 'document' |
47 URL_NAME = 'document' |
48 |
48 |
|
49 #: field storing the prefix of this document |
|
50 prefix = db.StringProperty(default='user', |
|
51 choices=['site','sponsor','program', 'club', 'organization', 'user'], |
|
52 verbose_name=ugettext('Prefix')) |
|
53 prefix.help_text = ugettext( |
|
54 'Indicates the prefix of the document,' |
|
55 ' determines which access scheme is used.') |
|
56 |
|
57 #: field storing the access status of this document |
|
58 # wiki = any user can read and write the document |
|
59 # public = any user can read, only restricted can write |
|
60 # member = member can read, only restricted can write |
|
61 # restricted = restricted can read, only admin can write |
|
62 # admin = admin can read, only admin can write |
|
63 # |
|
64 # example meanings for an organisations: |
|
65 # admin = ['org_admin'] |
|
66 # restricted = ['org_admin', 'org_mentor'] |
|
67 # member = ['org_admin', 'org_mentor', 'org_student'] |
|
68 # public = anyone |
|
69 # wiki = anyone |
|
70 access_status = db.StringProperty(default='restricted', required=True, |
|
71 choices=['admin','restricted', 'member', 'public', 'wiki'], |
|
72 verbose_name=ugettext('Access type')) |
|
73 access_status.help_text = ugettext( |
|
74 'Indicates the state of the document, ' |
|
75 'determines the access scheme.') |
|
76 |
49 #: field storing whether a link to the Document should be featured in |
77 #: field storing whether a link to the Document should be featured in |
50 #: the sidebar menu (and possibly elsewhere); FAQs, Terms of Service, |
78 #: the sidebar menu (and possibly elsewhere); FAQs, Terms of Service, |
51 #: and the like are examples of "featured" Document |
79 #: and the like are examples of "featured" Document |
52 is_featured = db.BooleanProperty( |
80 is_featured = db.BooleanProperty( |
53 verbose_name=ugettext('Is Featured')) |
81 verbose_name=ugettext('Is Featured')) |