Hi all,

I'm trying to get the QuickWiki tutorial to work against 1.0b1 and fixing up the docs as I go with the intention of submitting a patch once I'm done.

I'm at the stage of setting up the routes, and the tutorial tells me to replace all of the default custom routes with:

    map.connect(':controller/:action/:title', controller='page',
      action='index', title='FrontPage')
    map.connect(':title', controller='page', action='index',
      title='FrontPage')
    map.connect('*url', controller='template', action='view')

This ends up in me reaching a server error page, as the 'template' module can't be found when I hit http://localhost:5000/.

If I change the last route, which is obviously being hit here to:

    map.connect('*url', controller='page', action='index',
      title='FrontPage')

then I get to the page controller, but I hit another server error:

    AttributeError: 'ContextObj' has no attribute 'title'

Now, the QuickWiki tutorial states that:

"Pylons automatically assigns all the action parameters to the Pylons context object c so that you don't have to assign them yourself. In this case, the value of title will be automatically assigned to c.title so that it can be used in the templates. We assign c.content manually in the controller."

Obviously that isn't happening here. Is that because my routes are incorrect, or has this behaviour changed in 1.0b1?

Thanks,

Matt.

--
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