app/soc/logic/site/map.py
changeset 477 8a8b1bd035c4
parent 469 fc401778e380
child 492 4abdeedfc08e
equal deleted inserted replaced
476:3b0662786f95 477:8a8b1bd035c4
   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 docs_show = page.Page(
   255 document_show = page.Page(
   256   page.Url(
   256   page.Url(
   257     r'^docs/show/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN,
   257     r'^document/show/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN,
   258     'soc.views.models.docs.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
   263 site_docs_sub_menu = page.NonPage(
   263 site_document_sub_menu = page.NonPage(
   264   'site-docs-sub-menu',
   264   'site-document-sub-menu',
   265   'Site: Documents Sub-Menu',
   265   'Site: Documents Sub-Menu',
   266   short_name='Site Documents',
   266   short_name='Site Documents',
   267   parent=site_sub_menu)
   267   parent=site_sub_menu)
   268 
   268 
   269 site_docs_create = page.Page(
   269 site_document_create = page.Page(
   270   page.Url(
   270   page.Url(
   271     r'^docs/edit$',
   271     r'^document/edit$',
   272     'soc.views.models.docs.create'),
   272     'soc.views.models.document.create'),
   273   'Site: Create New Document',
   273   'Site: Create New Document',
   274   'Create Site Document',
   274   'Create Site Document',
   275   parent=site_docs_sub_menu)
   275   parent=site_document_sub_menu)
   276 
   276 
   277 site_docs_edit = page.Page(
   277 site_document_edit = page.Page(
   278   page.Url(
   278   page.Url(
   279     r'^docs/edit/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN,
   279     r'^document/edit/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN,
   280     'soc.views.models.docs.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_docs_sub_menu)
   283   parent=site_document_sub_menu)
   284 
   284 
   285 site_docs_delete = page.Page(
   285 site_document_delete = page.Page(
   286   page.Url(
   286   page.Url(
   287     r'^docs/delete/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN,
   287     r'^document/delete/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN,
   288     'soc.views.models.docs.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_docs_sub_menu)
   291   parent=site_document_sub_menu)
   292 
   292 
   293 site_docs_list = page.Page(
   293 site_document_list = page.Page(
   294   page.Url(
   294   page.Url(
   295     r'^docs/list$',
   295     r'^document/list$',
   296     'soc.views.models.docs.list'),
   296     'soc.views.models.document.list'),
   297   'Site: List of Documents',
   297   'Site: List of Documents',
   298   short_name='List Site Documents',
   298   short_name='List Site Documents',
   299   parent=site_docs_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.LINKNAME_ARG_PATTERN,