On Jul 12, 2010, at 22:44 , Mike Orr wrote:

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

paster —help doesn't show that command. Anyway.

When it comes up, it says I have mapper available. But when I try to see what 
it's got going on, I get:

>>> print mapper
Route name Methods Path
                   *url

which is odd, since at least some of the routes are working.

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