On Sat, 2011-01-15 at 16:23 -0800, Alice Bevan–McGregor wrote:
> On 2011-01-15 04:07:24 -0800, Alessandro Molina said:
> 
> > I'm really new to pyramid, so I might be wrong, but probably something 
> > like that can be quickly achieved by implementing your Controller base 
> > class on Pyramid overridding the __getitem__ method to use for example 
> > Crank.
> 
> Unless someone can correct me, the __lookup__ functionality (of 
> consuming multiple path elements) can't be implemented using 
> __getitem__ — the only option there is recursive descent.

That's right.

Others have implemented ITraverser implementations which do slightly
different things (such as disuse __getitem__ in favor of a different
method, which is passed the request and the path stack, or which get
passed a request, etc).  See
http://docs.pylonsproject.org/projects/pyramid/dev/narr/hooks.html#changing-the-traverser
 .

- C


-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" 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-devel?hl=en.

Reply via email to