On Mon, Jul 12, 2010 at 10:18 PM, Guyren G Howe <[email protected]> wrote:
> On Jul 12, 2010, at 21:58 , Mike Orr wrote:
>
> But mostly that it's not picking up the route. The documentation about 
> restful routes is fairly minimal: put route.resource(single-name, 
> plural-name) with some options and it just works. Only it doesn't, and I 
> can't find anything about what might do that.

I don't know how resource routes interact with TurboGears. That would
be a question for the TurboGears list.

> In Rails, I could fire up a Ruby shell that loads up all the framework 
> classes, and I could interrogate the routing class about what it thinks is 
> going on. Is there some equivalent for Pylons?

"paster shell development.ini"

There's a new paster command that lists all the routes, but I haven't
used it. The mapper object is pretty opaque; it's not documented how
the routes are stored. "map.resource" creates a bunch of routes, and a
"formatted route" alongside each regular route, but they don't exactly
look like you might expect. That's another item on the todo list, to
streamline the mapper code and make it more transparent.

-- 
Mike Orr <[email protected]>

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