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

It's in Pylons 1.0 - it came quite late as it needed the latest Routes
version.  Which version do you have, and do you need to be on an
earlier one?

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

Why did you find it necessary to do "config['routes.map'] = map" at
the end of make_map()?  Is your config/environment.py (where this is
normally done) the problem perhaps?  Mike Orr alluded to this earlier
when he mentioned load_environment().

Mike


On Jul 13, 8:12 am, Guyren G Howe <[email protected]> wrote:
> 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