diff examples/tutorial/geddit/controller.py @ 627:2f4dc32a13e7

GenshiTutorial: minor tweaks to sync with Wiki page.
author cmlenz
date Fri, 31 Aug 2007 23:13:27 +0000
parents dba522b4c31d
children 693a7212b348
line wrap: on
line diff
--- a/examples/tutorial/geddit/controller.py
+++ b/examples/tutorial/geddit/controller.py
@@ -38,14 +38,6 @@
         return template.render(links=links)
 
     @cherrypy.expose
-    @template.output('info.html')
-    def info(self, id):
-        link = self.data.get(id)
-        if not link:
-            raise cherrypy.NotFound()
-        return template.render(link=link)
-
-    @cherrypy.expose
     @template.output('submit.html')
     def submit(self, cancel=False, **data):
         if cherrypy.request.method == 'POST':
@@ -65,6 +57,14 @@
         return template.render(errors=errors) | HTMLFormFiller(data=data)
 
     @cherrypy.expose
+    @template.output('info.html')
+    def info(self, id):
+        link = self.data.get(id)
+        if not link:
+            raise cherrypy.NotFound()
+        return template.render(link=link)
+
+    @cherrypy.expose
     @template.output('comment.html')
     def comment(self, id, cancel=False, **data):
         link = self.data.get(id)
Copyright (C) 2012-2017 Edgewall Software