On Fri, Jan 14, 2011 at 9:09 PM, Alice Bevan–McGregor
<al...@gothcandy.com> wrote:
> On 2011-01-14 19:53:58 -0800, Mike Orr said:
>
>> Hi all, I'm starting an article on Pyramid for Pylons 1 users,
>> focusing on the differences between the frameworks and how to do
>> familiar things in Pyramid. It'll also cover add-on stuff like forms
>> and auth, or at least list the alternatives available.
>>
>> I'm wondering if there are any particular questions people would like
>> included. If so, please email them to me.
>>
>> --
>> Mike Orr <sluggos...@gmail.com>
>
> Here's a good question for inclusion:
>
> Other than the additional step of resolving the 'view' associated with a
> 'resource', which seems like a great idea, how does dictionary-based
> resource resolution differ from object dispatch?
>
> From what I've seen in blog posts—overriding the dictionary lookup method—it
> seems a little too close to object dispatch where you have straight-up
> attribute lookup—allowing override using __getattr__ and usually some
> combination of __default__ (effectively __getattr__ with extra arguments)
> and __lookup__ (redirecting the dispatch by returning a new object to
> inspect).

I don't understand traversal enough to answer that. I'll try to figure
it out from the new traversal chapter in the Pyramid manual. Maybe
somebody who knows traversal can send me a couple paragraphs for
inclusion.

Regarding John's helpers question, the pyramid_sqla application
template I released a couple days ago has a helpers.py module tied to
an 'h' template variable.

-- 
Mike Orr <sluggos...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to