On Monday, February 20, 2012 9:31:07 PM UTC+1, Mike Orr wrote:
>
> On Mon, Feb 20, 2012 at 6:57 AM, pipoun wrote:
>
> > And finally, he showed me that I could do everything with a view mapper.
>
> What is a view mapper and what does it do? According to the glossary,
> it prepares the view's arguments and modifies its return value? It
> says it's mainly used by extension builders so I haven't looked
> further into it.  (Look! Here's something for that super-advanced
> manual we've been talking about. :)
>

I don't think you're going to learn something, but I took the code snippet 
from: 
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/hooks.html#using-a-view-mapper
imo, it's just a decorator for the methods of the view class. you just have 
to find out which view method to use (with the 'attr' keyword)
It would be nice if I had more information regarding the keyword arguments 
of the constructor. I also should look into the code of the default view 
mapper provided by pyramid.

> By the way, when looking at the Akhet documentation (latest), the pylons
> > guide has been moved to the pyramid cookbook, which is not online yet. 
> Where
> > can I get it otherwise? Do you know if it will be online soon?
>
> I'm working on it today, actually. I just finished organizing the
> cookbook into topic-sections, so I can distribute the material to
> their appropriate sections.
>

Great, thank you so much.

pipoun
 

> -- 
> Mike Orr
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pylons-discuss/-/yacU1NoI4ugJ.
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