app/soc/models/document.py
changeset 1141 4a37239d834f
parent 1134 493e7b5d3ab2
child 1191 bb530ca58bc5
equal deleted inserted replaced
1140:a8eaea0b268d 1141:4a37239d834f
    46 
    46 
    47   URL_NAME = 'document'
    47   URL_NAME = 'document'
    48 
    48 
    49   #: field storing the prefix of this document
    49   #: field storing the prefix of this document
    50   prefix = db.StringProperty(default='user', required=True,
    50   prefix = db.StringProperty(default='user', required=True,
    51       choices=['site','club', 'sponsor', 'program', 'organization', 'user'],
    51       choices=['site', 'club', 'sponsor', 'program', 'organization', 'user'],
    52       verbose_name=ugettext('Prefix'))
    52       verbose_name=ugettext('Prefix'))
    53   prefix.help_text = ugettext(
    53   prefix.help_text = ugettext(
    54       'Indicates the prefix of the document,'
    54       'Indicates the prefix of the document,'
    55       ' determines which access scheme is used.')
    55       ' determines which access scheme is used.')
    56 
    56 
    57   #: field storing the required access to read this document
    57   #: field storing the required access to read this document
    58   read_access = db.StringProperty(default='public', required=True,
    58   read_access = db.StringProperty(default='public', required=True,
    59       choices=['admin','restricted', 'member', 'user', 'public'],
    59       choices=['admin', 'restricted', 'member', 'user', 'public'],
    60       verbose_name=ugettext('Read Access'))
    60       verbose_name=ugettext('Read Access'))
    61   read_access.help_text = ugettext(
    61   read_access.help_text = ugettext(
    62       'Indicates the state of the document, '
    62       'Indicates the state of the document, '
    63       'determines the access scheme.')
    63       'determines the access scheme.')
    64 
    64 
    65   #: field storing the required access to write to this document
    65   #: field storing the required access to write to this document
    66   write_access = db.StringProperty(default='public', required=True,
    66   write_access = db.StringProperty(default='public', required=True,
    67       choices=['admin','restricted', 'member', 'user'],
    67       choices=['admin', 'restricted', 'member', 'user'],
    68       verbose_name=ugettext('Write Access'))
    68       verbose_name=ugettext('Write Access'))
    69   write_access.help_text = ugettext(
    69   write_access.help_text = ugettext(
    70       'Indicates the state of the document, '
    70       'Indicates the state of the document, '
    71       'determines the access scheme.')
    71       'determines the access scheme.')
    72 
    72