[pylons-discuss] Chameleon 3.8.0 introduces breaking change to Deform

2020-06-27 Thread Steve Piercy
Howdy, Chameleon 3.8.0 introduced a breaking change to Deform, causing all checkboxes and radios to render False values as `checked` in HTML. I need help to adapt Deform or maybe pyramid_chameleon. https://github.com/malthe/chameleon/issues/318 If you have any clue, and would like to help

[pylons-discuss] Chameleon tal:repeat issue with JSON having "keys" section

2015-10-07 Thread Sami Pietilä
Hi, I have a database containing JSON objects. The database JSON contain a block named "keys". (For example: "keys": [{...}, {...}]) I am trying to render the keys block with chameleon template with tal:repeat="key record.keys". It seems that this syntax somehow fails to handle JSON if it has

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

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 . ?python is not a part of that syntax. That tutorial does not work due to a limitation chameleon.genshi currently

Re: pylons with chameleon?

2009-09-29 Thread Thomas G. Willis
On Tue, Sep 29, 2009 at 7:36 PM, Iain Duncan iaindun...@telus.net 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 . ?python is not a part of that syntax. That

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, Chameleon

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 genshi

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 Akkermanwich...@wiggy.net 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

Re: pylons with chameleon?

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

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. Is

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 Chameleon. Has

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 sluggos...@gmail.com wrote: On Wed, Sep 16, 2009 at 12:06 PM, Iain Duncan iaindun...@telus.net wrote: Hi folks, I have not built enough pylons to be know how to

Re: pylons with chameleon?

2009-09-24 Thread Mike Orr
On Thu, Sep 24, 2009 at 9:03 AM, KMCB kmcbrea...@yahoo.com 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-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 of what

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

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-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 mako

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: 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