98 #: belongs to. |
98 #: belongs to. |
99 timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline, |
99 timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline, |
100 required=True, collection_name="program", |
100 required=True, collection_name="program", |
101 verbose_name=ugettext('Timeline')) |
101 verbose_name=ugettext('Timeline')) |
102 |
102 |
103 #: Whether the program is enabled |
103 #: Status of the program |
104 is_enabled = db.BooleanProperty(default=False, |
104 #: Invisible: Program Stealth-Mode Visible to Hosts and Devs only |
105 verbose_name=ugettext('Is Enabled')) |
105 #: Visible: Visible to everyone. |
106 is_enabled.help_text = ugettext( |
106 #: Inactive: Not visible in sidebar but can be reached for date retention |
107 'Field used to indicate if a Program is enabled at all, and as such' |
107 #: Invalid: Not visible or editable by anyone |
108 ' accessible to non-developers.') |
108 status = db.StringProperty(required=True, default='invisible', |
|
109 verbose_name=ugettext('Program Status'), |
|
110 choices=['invisible', 'visible', 'inactive', 'invalid']) |
|
111 status.example_text = ugettext( |
|
112 '<tt>Invisible: Program Stealth-Mode Visible to Hosts and Devs only.<br/>' |
|
113 'Visible: Visible to everyone.<br/>' |
|
114 'Inactive: Not visible in sidebar, not editable.<br/>' |
|
115 'Invalid: Not visible or editable by anyone.</tt>') |
109 |
116 |
110 #: Whether the slots allocations are visible |
117 #: Whether the slots allocations are visible |
111 allocations_visible = db.BooleanProperty(default=False, |
118 allocations_visible = db.BooleanProperty(default=False, |
112 verbose_name=ugettext('Slot allocations visible')) |
119 verbose_name=ugettext('Slot allocations visible')) |
113 allocations_visible.help_text = ugettext( |
120 allocations_visible.help_text = ugettext( |