31 |
31 |
32 class Request(soc.models.linkable.Linkable): |
32 class Request(soc.models.linkable.Linkable): |
33 """A request is made to allow a person to create a new Role entity. |
33 """A request is made to allow a person to create a new Role entity. |
34 """ |
34 """ |
35 |
35 |
36 role = db.StringProperty() |
36 role = db.StringProperty(required=True) |
37 role.help_text = ugettext_lazy( |
37 role.help_text = ugettext_lazy( |
38 'This should be the type of the role that is requested') |
38 'This should be the type of the role that is requested') |
|
39 |
|
40 role_verbose = db.StringProperty(required=True) |
|
41 role_verbose.help_text = ugettext_lazy( |
|
42 'This should be the verbose name of the role that is in this request') |
39 |
43 |
40 group_accepted = db.BooleanProperty() |
44 group_accepted = db.BooleanProperty(required=True, default=False) |
41 group_accepted.help_text = ugettext_lazy( |
45 group_accepted.help_text = ugettext_lazy( |
42 'Field used to indicate whether a request has been accepted by the group') |
46 'Field used to indicate whether a request has been accepted by the group') |
43 |
47 |
44 user_accepted = db.BooleanProperty() |
48 user_accepted = db.BooleanProperty(required=True, default=False) |
45 user_accepted.help_text = ugettext_lazy( |
49 user_accepted.help_text = ugettext_lazy( |
46 'Field used to indicate that a request has been accepted by the user') |
50 'Field used to indicate that a request has been accepted by the user') |
|
51 |
|
52 completed = db.BooleanProperty(required=True, default=False) |
|
53 completed.help_text = ugettext_lazy( |
|
54 'Field used to indiicate that a request has been completed and should be archived') |