127 short_name='Create Home Settings', |
127 short_name='Create Home Settings', |
128 parent=home_settings_sub_menu) |
128 parent=home_settings_sub_menu) |
129 |
129 |
130 home_settings_edit = page.Page( |
130 home_settings_edit = page.Page( |
131 page.Url( |
131 page.Url( |
132 r'^home/edit/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
132 r'^home/edit/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
133 'soc.views.models.home_settings.edit'), |
133 'soc.views.models.home_settings.edit'), |
134 'Site: Settings', |
134 'Site: Settings', |
135 short_name='Edit Site Settings', |
135 short_name='Edit Site Settings', |
136 parent=home_settings_sub_menu) |
136 parent=home_settings_sub_menu) |
137 |
137 |
138 home_settings_show = page.Page( |
138 home_settings_show = page.Page( |
139 page.Url( |
139 page.Url( |
140 r'^home/show/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
140 r'^home/show/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
141 'soc.views.models.home_settings.public'), |
141 'soc.views.models.home_settings.public'), |
142 'Show Document', |
142 'Show Document', |
143 parent=home) |
143 parent=home) |
144 |
144 |
145 |
145 |
173 short_name='Edit Main Site Settings', |
173 short_name='Edit Main Site Settings', |
174 parent=site_settings_sub_menu) |
174 parent=site_settings_sub_menu) |
175 |
175 |
176 site_settings_edit = page.Page( |
176 site_settings_edit = page.Page( |
177 page.Url( |
177 page.Url( |
178 r'^site/edit/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
178 r'^site/edit/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
179 'soc.views.models.site_settings.edit'), |
179 'soc.views.models.site_settings.edit'), |
180 'Site: Settings', |
180 'Site: Settings', |
181 short_name='Edit Site Settings', |
181 short_name='Edit Site Settings', |
182 parent=site_settings_sub_menu) |
182 parent=site_settings_sub_menu) |
183 |
183 |
184 site_settings_show = page.Page( |
184 site_settings_show = page.Page( |
185 page.Url( |
185 page.Url( |
186 r'^site/show/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
186 r'^site/show/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
187 'soc.views.models.site_settings.public'), |
187 'soc.views.models.site_settings.public'), |
188 'Show Site Settings', |
188 'Show Site Settings', |
189 parent=home) |
189 parent=home) |
190 |
190 |
191 site_settings_delete = page.Page( |
191 site_settings_delete = page.Page( |
192 page.Url( |
192 page.Url( |
193 r'^site/delete/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
193 r'^site/delete/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
194 'soc.views.models.site_settings.delete'), |
194 'soc.views.models.site_settings.delete'), |
195 'Delete Site Settings', |
195 'Delete Site Settings', |
196 parent=home) |
196 parent=home) |
197 |
197 |
198 |
198 |
219 short_name='Create Site User', |
219 short_name='Create Site User', |
220 parent=user_sub_menu) |
220 parent=user_sub_menu) |
221 |
221 |
222 site_user_edit = page.Page( |
222 site_user_edit = page.Page( |
223 page.Url( |
223 page.Url( |
224 r'^user/edit/%s$' % path_link_name.LINKNAME_ARG_PATTERN, |
224 r'^user/edit/%s$' % path_link_name.LINK_ID_ARG_PATTERN, |
225 'soc.views.models.user.edit'), |
225 'soc.views.models.user.edit'), |
226 'Site: Modify Existing User Profile', |
226 'Site: Modify Existing User Profile', |
227 short_name='Modify Site User', |
227 short_name='Modify Site User', |
228 parent=user_sub_menu) |
228 parent=user_sub_menu) |
229 |
229 |
230 user_show = page.Page( |
230 user_show = page.Page( |
231 page.Url( |
231 page.Url( |
232 r'^user/show/%s$' % path_link_name.LINKNAME_ARG_PATTERN, |
232 r'^user/show/%s$' % path_link_name.LINK_ID_ARG_PATTERN, |
233 'soc.views.models.user.public'), |
233 'soc.views.models.user.public'), |
234 'User: Show Existing User Profile', |
234 'User: Show Existing User Profile', |
235 parent=user_signout) |
235 parent=user_signout) |
236 |
236 |
237 user_list = page.Page( |
237 user_list = page.Page( |
242 short_name='List Site Users', |
242 short_name='List Site Users', |
243 parent=user_sub_menu) |
243 parent=user_sub_menu) |
244 |
244 |
245 user_delete = page.Page( |
245 user_delete = page.Page( |
246 page.Url( |
246 page.Url( |
247 r'^user/delete/%s$' % path_link_name.LINKNAME_ARG_PATTERN, |
247 r'^user/delete/%s$' % path_link_name.LINK_ID_ARG_PATTERN, |
248 'soc.views.models.user.delete'), |
248 'soc.views.models.user.delete'), |
249 'Site: Delete Existing User', |
249 'Site: Delete Existing User', |
250 short_name='Delete Site User', |
250 short_name='Delete Site User', |
251 parent=user_sub_menu) |
251 parent=user_sub_menu) |
252 |
252 |
253 |
253 |
254 # Document views |
254 # Document views |
255 document_show = page.Page( |
255 document_show = page.Page( |
256 page.Url( |
256 page.Url( |
257 r'^document/show/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
257 r'^document/show/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
258 'soc.views.models.document.public'), |
258 'soc.views.models.document.public'), |
259 'Show Document', |
259 'Show Document', |
260 parent=home) |
260 parent=home) |
261 |
261 |
262 # Site Document views |
262 # Site Document views |
274 'Create Site Document', |
274 'Create Site Document', |
275 parent=site_document_sub_menu) |
275 parent=site_document_sub_menu) |
276 |
276 |
277 site_document_edit = page.Page( |
277 site_document_edit = page.Page( |
278 page.Url( |
278 page.Url( |
279 r'^document/edit/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
279 r'^document/edit/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
280 'soc.views.models.document.edit'), |
280 'soc.views.models.document.edit'), |
281 'Site: Modify Existing Document', |
281 'Site: Modify Existing Document', |
282 short_name='Modify Site Document', |
282 short_name='Modify Site Document', |
283 parent=site_document_sub_menu) |
283 parent=site_document_sub_menu) |
284 |
284 |
285 site_document_delete = page.Page( |
285 site_document_delete = page.Page( |
286 page.Url( |
286 page.Url( |
287 r'^document/delete/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
287 r'^document/delete/%s$' % path_link_name.PATH_LINK_ID_ARGS_PATTERN, |
288 'soc.views.models.document.delete'), |
288 'soc.views.models.document.delete'), |
289 'Site: Delete Existing Document', |
289 'Site: Delete Existing Document', |
290 short_name='Delete Site Document', |
290 short_name='Delete Site Document', |
291 parent=site_document_sub_menu) |
291 parent=site_document_sub_menu) |
292 |
292 |
299 parent=site_document_sub_menu) |
299 parent=site_document_sub_menu) |
300 |
300 |
301 # Sponsor Group public view |
301 # Sponsor Group public view |
302 sponsor_profile = page.Page( |
302 sponsor_profile = page.Page( |
303 page.Url( |
303 page.Url( |
304 r'^sponsor/show/%s$' % path_link_name.LINKNAME_ARG_PATTERN, |
304 r'^sponsor/show/%s$' % path_link_name.LINK_ID_ARG_PATTERN, |
305 'soc.views.models.sponsor.public'), |
305 'soc.views.models.sponsor.public'), |
306 'Sponsor Public Profile', |
306 'Sponsor Public Profile', |
307 parent=home) |
307 parent=home) |
308 |
308 |
309 # Sponsor Group Site views |
309 # Sponsor Group Site views |
321 short_name='Create Site Sponsor', |
321 short_name='Create Site Sponsor', |
322 parent=site_sponsor_sub_menu) |
322 parent=site_sponsor_sub_menu) |
323 |
323 |
324 site_sponsor_delete = page.Page( |
324 site_sponsor_delete = page.Page( |
325 page.Url( |
325 page.Url( |
326 r'^sponsor/delete/%s$' % path_link_name.LINKNAME_ARG_PATTERN, |
326 r'^sponsor/delete/%s$' % path_link_name.LINK_ID_ARG_PATTERN, |
327 'soc.views.models.sponsor.delete'), |
327 'soc.views.models.sponsor.delete'), |
328 'Site: Delete Existing Sponsor', |
328 'Site: Delete Existing Sponsor', |
329 short_name='Delete Site Sponsor', |
329 short_name='Delete Site Sponsor', |
330 parent=site_sponsor_sub_menu) |
330 parent=site_sponsor_sub_menu) |
331 |
331 |
332 site_sponsor_edit = page.Page( |
332 site_sponsor_edit = page.Page( |
333 page.Url( |
333 page.Url( |
334 r'^sponsor/edit/%s$' % path_link_name.LINKNAME_ARG_PATTERN, |
334 r'^sponsor/edit/%s$' % path_link_name.LINK_ID_ARG_PATTERN, |
335 'soc.views.models.sponsor.edit'), |
335 'soc.views.models.sponsor.edit'), |
336 'Site: Modify Existing Sponsor', |
336 'Site: Modify Existing Sponsor', |
337 short_name='Modify Site Sponsor', |
337 short_name='Modify Site Sponsor', |
338 parent=site_sponsor_sub_menu) |
338 parent=site_sponsor_sub_menu) |
339 |
339 |
347 |
347 |
348 # Host public view |
348 # Host public view |
349 host_profile = page.Page( |
349 host_profile = page.Page( |
350 page.Url( |
350 page.Url( |
351 r'^host/show/(?P<sponsor_ln>%(lnp)s)/(?P<user_ln>%(lnp)s)$' % { |
351 r'^host/show/(?P<sponsor_ln>%(lnp)s)/(?P<user_ln>%(lnp)s)$' % { |
352 'lnp': path_link_name.LINKNAME_PATTERN_CORE}, |
352 'lnp': path_link_name.LINK_ID_PATTERN_CORE}, |
353 'soc.views.models.host.public'), |
353 'soc.views.models.host.public'), |
354 'Host Public Profile', |
354 'Host Public Profile', |
355 parent=home) |
355 parent=home) |
356 |
356 |
357 # Host Site views |
357 # Host Site views |
370 parent=site_host_sub_menu) |
370 parent=site_host_sub_menu) |
371 |
371 |
372 site_host_delete = page.Page( |
372 site_host_delete = page.Page( |
373 page.Url( |
373 page.Url( |
374 r'^host/delete/(?P<sponsor_ln>%(lnp)s)/(?P<user_ln>%(lnp)s)$' % { |
374 r'^host/delete/(?P<sponsor_ln>%(lnp)s)/(?P<user_ln>%(lnp)s)$' % { |
375 'lnp': path_link_name.LINKNAME_PATTERN_CORE}, |
375 'lnp': path_link_name.LINK_ID_PATTERN_CORE}, |
376 'soc.views.models.host.delete'), |
376 'soc.views.models.host.delete'), |
377 'Site: Delete Existing Host', |
377 'Site: Delete Existing Host', |
378 short_name='Delete Site Host', |
378 short_name='Delete Site Host', |
379 parent=site_host_sub_menu) |
379 parent=site_host_sub_menu) |
380 |
380 |
381 site_host_edit = page.Page( |
381 site_host_edit = page.Page( |
382 page.Url( |
382 page.Url( |
383 r'^host/edit/(?P<sponsor_ln>%(lnp)s)/(?P<user_ln>%(lnp)s)$' % { |
383 r'^host/edit/(?P<sponsor_ln>%(lnp)s)/(?P<user_ln>%(lnp)s)$' % { |
384 'lnp': path_link_name.LINKNAME_PATTERN_CORE}, |
384 'lnp': path_link_name.LINK_ID_PATTERN_CORE}, |
385 'soc.views.models.host.edit'), |
385 'soc.views.models.host.edit'), |
386 'Site: Modify Existing Host', |
386 'Site: Modify Existing Host', |
387 short_name='Modify Site Host', |
387 short_name='Modify Site Host', |
388 parent=site_host_sub_menu) |
388 parent=site_host_sub_menu) |
389 |
389 |
394 'Site: List of Hosts', |
394 'Site: List of Hosts', |
395 short_name='List Site Hosts', |
395 short_name='List Site Hosts', |
396 parent=site_host_sub_menu) |
396 parent=site_host_sub_menu) |
397 |
397 |
398 # these are not really used... |
398 # these are not really used... |
399 # (r'^org/profile/(?P<program>ghop[_0-9a-z]+)/(?P<link_name>[_0-9a-z]+)/$', |
399 # (r'^org/profile/(?P<program>ghop[_0-9a-z]+)/(?P<link_id>[_0-9a-z]+)/$', |
400 # 'soc.views.person.profile.edit', |
400 # 'soc.views.person.profile.edit', |
401 # {'template': 'ghop/person/profile/edit.html'}), |
401 # {'template': 'ghop/person/profile/edit.html'}), |
402 # (r'^org/profile/(?P<program>[_0-9a-z]+)/(?P<link_name>[_0-9a-z]+)/$', |
402 # (r'^org/profile/(?P<program>[_0-9a-z]+)/(?P<link_id>[_0-9a-z]+)/$', |
403 # 'soc.views.person.profile.edit'), |
403 # 'soc.views.person.profile.edit'), |
404 |
404 |
405 |
405 |
406 ROOT_PAGES = [ |
406 ROOT_PAGES = [ |
407 # /, first level of the sidebar menu, excluded from breadcrumbs |
407 # /, first level of the sidebar menu, excluded from breadcrumbs |