~yeliabmas/sloecode/sloecode-template

« back to all changes in this revision

Viewing changes to sloecode/config/routing.py

  • Committer: Sam Bailey
  • Date: 2012-10-30 03:41:50 UTC
  • Revision ID: yeliabmas@gmail.com-20121030034150-o554fsbpuucn7p7i
newfile button on wiki pages now creates a new file at the current directory level. Only provides template options at root directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    # Map / to the index controller:
44
44
    map.connect('/', controller='index', action='front_page')
45
45
    # Map /p/foo
46
 
    map.connect('/p/{project_name}/wiki/+newfile', controller='wiki', action='new_file')
 
46
    map.connect('/p/{project_name}/wiki/{path:.*}+newfile', controller='wiki', action='new_file')
47
47
    map.connect('/p/{project_name}/process_new_file', controller='wiki', action='process_new_file')
48
48
    map.connect('/p/{project_name}/wiki/{path:.*}', controller='wiki', action='wiki')
49
49
    map.connect('/p/{project_name}/wiki', controller='wiki', action='wiki')