Ben Bangert wrote:

So has the getting started and related documentation ported to version 1.0?

I've gone through and updated it, yes. If there's any remaining bugs, please let me know.

Yes... please see http://groups.google.com/group/pylons-discuss/msg/ce1aae631baa6ca0

I understand that an updated tutorial is in the pipeline, but in the meantime http://pylonshq.com/docs/en/1.0/tutorials/quickwiki_tutorial/ is sending noobs like me down a rather grievous path.

Could you please apply something like the attached patch? Thanks!
diff -ru QuickWiki-0.1.6/quickwiki/config/environment.py 
QuickWiki/quickwiki/config/environment.py
--- QuickWiki-0.1.6/quickwiki/config/environment.py     2009-02-23 
12:50:50.000000000 -0500
+++ QuickWiki/quickwiki/config/environment.py   2010-05-31 23:00:21.000000000 
-0400
@@ -28,6 +28,7 @@
     config['routes.map'] = make_map()
     config['pylons.app_globals'] = app_globals.Globals()
     config['pylons.h'] = quickwiki.lib.helpers
+    config['pylons.strict_tmpl_context'] = False
 
     # Create the Mako TemplateLookup, with the default auto-escaping
     config['pylons.app_globals'].mako_lookup = TemplateLookup(
diff -ru QuickWiki-0.1.6/quickwiki/controllers/pages.py 
QuickWiki/quickwiki/controllers/pages.py
--- QuickWiki-0.1.6/quickwiki/controllers/pages.py      2009-02-23 
12:50:50.000000000 -0500
+++ QuickWiki/quickwiki/controllers/pages.py    2010-05-31 22:36:24.000000000 
-0400
@@ -2,7 +2,7 @@
 from cgi import escape
 
 from pylons import request, response, session, tmpl_context as c
-from pylons.controllers.util import abort, redirect_to
+from pylons.controllers.util import abort, redirect
 from pylons.decorators.secure import authenticate_form
 
 from quickwiki.lib.base import BaseController, render
@@ -43,7 +43,7 @@
         Session.add(page)
         Session.commit()
         flash('Successfully saved %s!' % title)
-        redirect_to('show_page', title=title)
+        redirect(url('show_page', title=title))
 
     def index(self):
         c.titles = [page.title for page in self.page_q.all()]
@@ -59,4 +59,4 @@
         # flash only after a successful commit
         for title in titles:
             flash('Deleted %s.' % title)
-        redirect_to('pages')
+        redirect(url('pages'))
diff -ru QuickWiki-0.1.6/quickwiki/lib/helpers.py 
QuickWiki/quickwiki/lib/helpers.py
--- QuickWiki-0.1.6/quickwiki/lib/helpers.py    2009-02-23 12:50:50.000000000 
-0500
+++ QuickWiki/quickwiki/lib/helpers.py  2010-05-31 21:02:41.000000000 -0400
@@ -5,7 +5,7 @@
 """
 from webhelpers.html import literal
 from webhelpers.html.tags import *
-from webhelpers.html.secure_form import secure_form
+from webhelpers.pylonslib.secure_form import secure_form
 from webhelpers.pylonslib import Flash as _Flash
 
 flash = _Flash()
-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to