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 slots allocations are visible |
|
104 allocations_visible = db.BooleanProperty(default=False, |
|
105 verbose_name=ugettext('Slot allocations visible')) |
|
106 allocations_visible.help_text = ugettext( |
|
107 'Field used to indicate if the slot allocations should be visible.') |
|
108 |
|
109 #: Document reference property used for the Org Admin Agreement |
|
110 org_admin_agreement = db.ReferenceProperty( |
|
111 reference_class=soc.models.document.Document, |
|
112 verbose_name=ugettext('Organization Admin Agreement'), |
|
113 collection_name='org_admin_agreement') |
|
114 org_admin_agreement.help_text = ugettext( |
|
115 'Document containing optional Mentor Agreement for participating as a ' |
|
116 'Organization admin.') |
|
117 |
|
118 #: Document reference property used for the Mentor Agreement |
|
119 mentor_agreement = db.ReferenceProperty( |
|
120 reference_class=soc.models.document.Document, |
|
121 verbose_name=ugettext('Mentor Agreement'), |
|
122 collection_name='mentor_agreement') |
|
123 mentor_agreement.help_text = ugettext( |
|
124 'Document containing optional Mentor Agreement for participating as a ' |
|
125 'Mentor.') |
|
126 |
|
127 #: Document reference property used for the Student Agreement |
|
128 student_agreement = db.ReferenceProperty( |
|
129 reference_class=soc.models.document.Document, |
|
130 verbose_name=ugettext('Student Agreement'), |
|
131 collection_name='student_agreement') |
|
132 student_agreement.help_text = ugettext( |
|
133 'Document containing optional Student Agreement for participating as a ' |
|
134 'Student.') |
|
135 |
103 #: Status of the program |
136 #: Status of the program |
104 #: Invisible: Program Stealth-Mode Visible to Hosts and Devs only |
137 #: Invisible: Program Stealth-Mode Visible to Hosts and Devs only |
105 #: Visible: Visible to everyone. |
138 #: Visible: Visible to everyone. |
106 #: Inactive: Not visible in sidebar but can be reached for date retention |
139 #: Inactive: Not visible in sidebar but can be reached for date retention |
107 #: Invalid: Not visible or editable by anyone |
140 #: Invalid: Not visible or editable by anyone |
111 status.example_text = ugettext( |
144 status.example_text = ugettext( |
112 '<tt>Invisible: Program Stealth-Mode Visible to Hosts and Devs only.<br/>' |
145 '<tt>Invisible: Program Stealth-Mode Visible to Hosts and Devs only.<br/>' |
113 'Visible: Visible to everyone.<br/>' |
146 'Visible: Visible to everyone.<br/>' |
114 'Inactive: Not visible in sidebar, not editable.<br/>' |
147 'Inactive: Not visible in sidebar, not editable.<br/>' |
115 'Invalid: Not visible or editable by anyone.</tt>') |
148 'Invalid: Not visible or editable by anyone.</tt>') |
116 |
|
117 #: Whether the slots allocations are visible |
|
118 allocations_visible = db.BooleanProperty(default=False, |
|
119 verbose_name=ugettext('Slot allocations visible')) |
|
120 allocations_visible.help_text = ugettext( |
|
121 'Field used to indicate if the slot allocations should be visible.') |
|