app/soc/models/role.py
changeset 1076 063194eaf87b
parent 1046 7e10c0654dfb
child 1085 0afbdd0905ef
equal deleted inserted replaced
1075:4fd9b11fba56 1076:063194eaf87b
   273   #: Optional field indicating choice of t-shirt fit; kept private.
   273   #: Optional field indicating choice of t-shirt fit; kept private.
   274   tshirt_style = db.StringProperty(
   274   tshirt_style = db.StringProperty(
   275       verbose_name=ugettext('T-shirt Style'),
   275       verbose_name=ugettext('T-shirt Style'),
   276       choices=('male', 'female'))
   276       choices=('male', 'female'))
   277 
   277 
   278   #: field storing whether User has agreed to the Role-specific Terms of
   278   #: field storing wheter the User has agreed to the site-wide Terms of Service.
   279   #: Service. (Not a required field because some Roles may not have special
   279   #: (Not a required field because the Terms of Service might not be present
   280   #: Terms of Service.)
   280   #: when the first User profile is created when bootstrapping the site.)
   281   agrees_to_tos = db.BooleanProperty(
   281   agreed_to_tos = db.BooleanProperty(required=False, default=False,
   282       verbose_name=ugettext('I agree to the Terms of Service'))
   282       verbose_name=ugettext('I Agree to the Terms of Service'))
   283   agrees_to_tos.help_text = ugettext(
   283   agreed_to_tos.help_text = ugettext(
   284       'Indicates that the user agrees to the Terms of Service for this Role.')
   284       'Indicates whether the user agreed to this role Terms of Service.')
       
   285 
       
   286   #: field storing when the User has agreed to the site-wide Terms of Service.
       
   287   #: (Not a required field because the Terms of Service might not be present
       
   288   #: when the first User profile is created when bootstrapping the site.)
       
   289   agreed_to_tos_on = db.DateTimeProperty(required=False, default=None,
       
   290       verbose_name=ugettext('Has agreed to the Terms of Service on'))
       
   291   agreed_to_tos_on.help_text = ugettext(
       
   292       'Indicates when the user agreed to this role Terms of Service.')
   285 
   293 
   286   #: field storing the state of this role
   294   #: field storing the state of this role
   287   #: Active means that this role can exercise all it's privileges.
   295   #: Active means that this role can exercise all it's privileges.
   288   #: Invalid mean that this role cannot exercise it's privileges.
   296   #: Invalid mean that this role cannot exercise it's privileges.
   289   #: Inactive means that this role cannot exercise it's data-editing
   297   #: Inactive means that this role cannot exercise it's data-editing