272 |
272 |
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_lazy('T-shirt Style'), |
275 verbose_name=ugettext_lazy('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 whether User has agreed to the Role-specific Terms of |
279 #: Service. (Not a required field because some Roles may not have special |
279 #: Service. (Not a required field because some Roles may not have special |
280 #: Terms of Service.) |
280 #: Terms of Service.) |
281 agrees_to_tos = db.BooleanProperty( |
281 agrees_to_tos = db.BooleanProperty( |
282 verbose_name=ugettext_lazy('Agrees to ToS')) |
282 verbose_name=ugettext_lazy('Agrees to ToS')) |
283 agrees_to_tos.help_text = ugettext_lazy( |
283 agrees_to_tos.help_text = ugettext_lazy( |
284 'Indicates that the user agrees to the Terms of Service for this Role.') |
284 'Indicates that the user agrees to the Terms of Service for this Role.') |
285 |
285 |
|
286 #: field storing the state of this role |
|
287 #: Active means that this role can exercise all it's privileges. |
|
288 #: Invalid mean that this role cannot exercise it's privileges. |
|
289 #: Inactive means that this role cannot exercise it's data-editing |
|
290 #: privileges but should be able to see the data. For instance when a program |
|
291 #: has been marked inactive an Organization Admin should still be able to see |
|
292 #: the student applications. |
|
293 state = db.StringProperty(default='active', |
|
294 choices=['active','invalid','inactive'], |
|
295 verbose_name=ugettext_lazy('State of this Role')) |
|
296 state.help_text = ugettext_lazy( |
|
297 'Indicates the state of the role concerning which privileges may be used') |
|
298 |
|
299 |
286 def name(self): |
300 def name(self): |
287 """Alias 'display_name' Property as 'name' for use in common templates. |
301 """Alias 'display_name' Property as 'name' for use in common templates. |
288 """ |
302 """ |
289 return self.display_name |
303 return self.display_name |