Re: pylons with chameleon?

2009-10-29 Thread adamhutton
For anyone who finds this thread and is looking for these directions in the context of a Pylons project (what to change where), I put together a little tutorial/recipe showing what needs to be changed in the Pylons' QuickWiki project so it can use chameleon.zpt (there's a tutorial for building Qui

Re: pylons with chameleon?

2009-09-29 Thread Thomas G. Willis
On Tue, Sep 29, 2009 at 7:36 PM, Iain Duncan wrote: > > >> To be more precise: chameleon.genshi implements the Genshi XML template >> syntax as described in >> http://genshi.edgewall.org/wiki/Documentation/0.5.x/xml-templates.html . >> is not a part of that syntax. >> >> That tutorial does not w

Re: pylons with chameleon?

2009-09-29 Thread Iain Duncan
> To be more precise: chameleon.genshi implements the Genshi XML template > syntax as described in > http://genshi.edgewall.org/wiki/Documentation/0.5.x/xml-templates.html . > is not a part of that syntax. > > That tutorial does not work due to a limitation chameleon.genshi > currently has:

Re: pylons with chameleon?

2009-09-26 Thread Thomas G. Willis
On Sat, Sep 26, 2009 at 3:26 PM, Wichert Akkerman wrote: > > On 2009-9-26 21:10, Thomas G. Willis wrote: >> >> On Sep 26, 10:14 am, Wichert Akkerman  wrote: >>> On 2009-9-25 22:55, Iain Duncan wrote: >>> >>> >>> > Hm, the chameleon.zpt template has not seen as much love as the > chameleon

Re: pylons with chameleon?

2009-09-26 Thread Wichert Akkerman
On 2009-9-26 21:10, Thomas G. Willis wrote: > > On Sep 26, 10:14 am, Wichert Akkerman wrote: >> On 2009-9-25 22:55, Iain Duncan wrote: >> >> >> Hm, the chameleon.zpt template has not seen as much love as the chameleon.genshi version so it might have broken somewhere. Can you test i

Re: pylons with chameleon?

2009-09-26 Thread Thomas G. Willis
On Sep 26, 10:14 am, Wichert Akkerman wrote: > On 2009-9-25 22:55, Iain Duncan wrote: > > > > >> Hm, the chameleon.zpt template has not seen as much love as the > >> chameleon.genshi version so it might have broken somewhere. Can you test > >> if chameleon.genshi works for you? If so I'll look at

Re: pylons with chameleon? unescaping HTML

2009-09-26 Thread Wichert Akkerman
On 2009-9-26 00:45, Iain Duncan wrote: > >> Hm, the chameleon.zpt template has not seen as much love as the >> chameleon.genshi version so it might have broken somewhere. Can you test >> if chameleon.genshi works for you? If so I'll look at fixing up the >> chameleon.zpt version. > > I've got the

Re: pylons with chameleon?

2009-09-26 Thread Wichert Akkerman
On 2009-9-25 22:55, Iain Duncan wrote: > > >> Hm, the chameleon.zpt template has not seen as much love as the >> chameleon.genshi version so it might have broken somewhere. Can you test >> if chameleon.genshi works for you? If so I'll look at fixing up the >> chameleon.zpt version. > > Thanks, Cha

Re: pylons with chameleon? unescaping HTML

2009-09-25 Thread Iain Duncan
> Hm, the chameleon.zpt template has not seen as much love as the > chameleon.genshi version so it might have broken somewhere. Can you test > if chameleon.genshi works for you? If so I'll look at fixing up the > chameleon.zpt version. I've got the genshi templates being rendered, but I don't

Re: pylons with chameleon?

2009-09-25 Thread Iain Duncan
> Hm, the chameleon.zpt template has not seen as much love as the > chameleon.genshi version so it might have broken somewhere. Can you test > if chameleon.genshi works for you? If so I'll look at fixing up the > chameleon.zpt version. Thanks, Chameleon genshi is working with your correction.

Re: pylons with chameleon?

2009-09-25 Thread Wichert Akkerman
On 2009-9-24 19:16, Mike Orr wrote: > > On Thu, Sep 24, 2009 at 9:03 AM, KMCB wrote: >> >> Mike, >> >> I think they may be talk about this >> >> http://chameleon.repoze.org/ > > So it's a template engine unifier, the way Buffet was and render_* > are. It also claims to be faster than the native

Re: pylons with chameleon?

2009-09-24 Thread Iain Duncan
On Thu, 2009-09-24 at 10:16 -0700, Mike Orr wrote: > On Thu, Sep 24, 2009 at 9:03 AM, KMCB wrote: > > > > Mike, > > > > I think they may be talk about this > > > > http://chameleon.repoze.org/ > > So it's a template engine unifier, the way Buffet was and render_* > are. It also claims to be fas

Re: pylons with chameleon?

2009-09-24 Thread Mike Orr
On Thu, Sep 24, 2009 at 9:03 AM, KMCB wrote: > > Mike, > > I think they may be talk about this > > http://chameleon.repoze.org/ So it's a template engine unifier, the way Buffet was and render_* are. It also claims to be faster than the native engines ported to it? -- Mike Orr --~--~---

Re: pylons with chameleon?

2009-09-24 Thread Wichert Akkerman
On 2009-9-24 18:03, KMCB wrote: > > Mike, > > I think they may be talk about this > > http://chameleon.repoze.org/ That's the one. Wichert. -- Wichert AkkermanIt is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~-~--~~

Re: pylons with chameleon?

2009-09-24 Thread KMCB
Mike, I think they may be talk about this http://chameleon.repoze.org/ Regards, KMCB On Sep 24, 9:41 am, Mike Orr wrote: > On Wed, Sep 16, 2009 at 12:06 PM, Iain Duncan wrote: > > > Hi folks, I have not built enough pylons to be know how to switch > > templating languages beyond mak

Re: pylons with chameleon?

2009-09-24 Thread Mike Orr
On Wed, Sep 16, 2009 at 12:06 PM, Iain Duncan wrote: > > Hi folks, I have not built enough pylons to be know how to switch > templating languages beyond mako and genshi, but I'm interested in using > Chameleon. Has anyone got any examples up of what one needs to do to use > Chameleon? What is Ch

Re: pylons with chameleon?

2009-09-24 Thread Wichert Akkerman
On 2009-9-24 07:53, Iain Duncan wrote: > I get the following traceback, any help much appreciated. > > File '/home/ymh/pylons_full/pylons_full/controllers/peek.py', line 50 in > zpt > > File '/home/ymh/pylons_full/pylons_full/lib/pt.py', line 15 in render_pt >cache_key=cache_key, cache_type=ca

Re: pylons with chameleon?

2009-09-24 Thread Wichert Akkerman
On 2009-9-24 07:53, Iain Duncan wrote: > > In Sat, 2009-09-19 at 09:40 +0200, Wichert Akkerman wrote: >> On 2009-9-16 21:06, Iain Duncan wrote: >>> >>> Hi folks, I have not built enough pylons to be know how to switch >>> templating languages beyond mako and genshi, but I'm interested in using >>>

Re: pylons with chameleon?

2009-09-23 Thread Iain Duncan
In Sat, 2009-09-19 at 09:40 +0200, Wichert Akkerman wrote: > On 2009-9-16 21:06, Iain Duncan wrote: > > > > Hi folks, I have not built enough pylons to be know how to switch > > templating languages beyond mako and genshi, but I'm interested in using > > Chameleon. Has anyone got any examples up o

Re: pylons with chameleon?

2009-09-21 Thread ubunoon
create a template object, which attach to app_globals in config/envrionment.py, then create a render function, using pylons_globals() and cached_template() functions, all after, add it to app_globals to render the template by using template lookup method. 2009/9/20 Iain Duncan > > Wichert, than

Re: pylons with chameleon?

2009-09-19 Thread Iain Duncan
Wichert, thank you so much for your explicit example! I'll try that out this week. =) Iain On Sat, 2009-09-19 at 09:40 +0200, Wichert Akkerman wrote: > On 2009-9-16 21:06, Iain Duncan wrote: > > > > Hi folks, I have not built enough pylons to be know how to switch > > templating languages beyond

Re: pylons with chameleon?

2009-09-19 Thread Wichert Akkerman
On 2009-9-16 21:06, Iain Duncan wrote: > > Hi folks, I have not built enough pylons to be know how to switch > templating languages beyond mako and genshi, but I'm interested in using > Chameleon. Has anyone got any examples up of what one needs to do to use > Chameleon? In config/environment.py:

Re: pylons with chameleon?

2009-09-16 Thread Kevin J. Smith
I am using pylons with SimpleTAL (ZPT implementation) templating and what I did to wire it in to pylons was just follow the existing patterns established by Mako and Genshi. Basically, in the *lib* package I created a template.py module and a *render_simpletal* function within it which takes a tem

pylons with chameleon?

2009-09-16 Thread Iain Duncan
Hi folks, I have not built enough pylons to be know how to switch templating languages beyond mako and genshi, but I'm interested in using Chameleon. Has anyone got any examples up of what one needs to do to use Chameleon? thanks Iain --~--~-~--~~~---~--~~ You re