1. Blaise Laflamme
  2. PylonsWikiNG

Commits

Blaise Laflamme  committed 5d96da2

Updated to work with latest pylons handler

  • Participants
  • Parent commits ec5cdae
  • Branches default

Comments (0)

Files changed (4)

File src/authorization/tutorial/__init__.py

View file
         'tutorial:templates/static'
         )
     config.add_handler(
-        'tutorial.handlers:WikiHandler',
+        route_name='root',
         pattern='/',
-        route_name='root',
+        handler='tutorial.handlers:WikiHandler',
         )
     config.add_handler(
-        'tutorial.handlers:WikiHandler',
+        route_name='wiki_action',
         pattern='/wiki/{pagename}/{action}',
-        route_name='wiki_action'
+        handler='tutorial.handlers:WikiHandler',
         )
     config.scan()
     config.end()

File src/layout/tutorial/__init__.py

View file
         'tutorial:templates/static'
         )
     config.add_handler(
-        'tutorial.handlers:MyHandler',
-        pattern='/{action}'
+        route_name='action',
+        pattern='/{action}',
+        handler='tutorial.handlers:MyHandler',
         )
     config.add_handler(
-        'tutorial.handlers:MyHandler',
+        route_name='home',
         pattern='/',
-        route_name='home',
+        handler='tutorial.handlers:MyHandler',
         action='index'
         )
     config.end()

File src/models/tutorial/__init__.py

View file
         'tutorial:templates/static'
         )
     config.add_handler(
-        'tutorial.handlers:MyHandler',
-        pattern='/{action}'
+        route_name='action',
+        pattern='/{action}',
+        handler='tutorial.handlers:MyHandler',
         )
     config.add_handler(
-        'tutorial.handlers:MyHandler',
+        route_name='home',
         pattern='/',
-        route_name='home',
+        handler='tutorial.handlers:MyHandler',
         action='index'
         )
     config.end()

File src/views/tutorial/__init__.py

View file
         'tutorial:templates/static'
         )
     config.add_handler(
-        'tutorial.handlers:WikiHandler',
+        route_name='root',
         pattern='/',
-        route_name='root',
+        handler='tutorial.handlers:WikiHandler',
         )
     config.add_handler(
-        'tutorial.handlers:WikiHandler',
+        route_name='wiki_action',
         pattern='/wiki/{pagename}/{action}',
-        route_name='wiki_action'
+        handler='tutorial.handlers:WikiHandler',
         )
     config.end()
     return config.make_wsgi_app()