A great! Thank you Michael for the hint. It works perfect for me.

2014-11-25 17:50 GMT+01:00 Michael Merickel <mmeri...@gmail.com>:

> AFAIK all of the things you are asking for are possible using the
> (documented) scaffolding API. You basically just subclass
> ``PyramidTemplate`` and override ``pre`` to mutate the ``vars`` and
> add what you like.
>
>
> http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/narr/scaffolding.html
>
>
> http://docs.pylonsproject.org/projects/pyramid/en/1.5-branch/api/scaffolds.html#pyramid.scaffolds.PyramidTemplate.pre
>
> On Tue, Nov 25, 2014 at 10:14 AM, Jonathan Vanasco
> <jonat...@findmeon.com> wrote:
> > I would create an Issue and propose it on the Github.  One of the core
> > maintainers will say something like "Great!", "Maybe..." or  "No way".
> I've
> > seen (and personally gotten) a lot more "No Way" than "Okay" for proposed
> > changes.
> >
> > This is such an edge case though, that I don't know if they'll go for it
> > "as-is".  Why would other people need or use this?  I don't see it
> getting
> > added unless you can come up with a compelling reason.
> >
> > This is purely a guess - but I think you might have better luck
> proposing it
> > as some sort of "hook" for pcreate.  i.e., if there was some way to pass
> in
> > other template variables to pcreate.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "pylons-devel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to pylons-devel+unsubscr...@googlegroups.com.
> > To post to this group, send email to pylons-devel@googlegroups.com.
> > Visit this group at http://groups.google.com/group/pylons-devel.
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "pylons-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/pylons-devel/umFqVR6KmKo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> pylons-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/pylons-devel.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to