Re: [Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Miuler
thanks Chris McDonough. pd. repoze.bfg.chameleon_text sucks!! :-( 2010/2/11 Chris McDonough > This is why I said "use repoze.bfg.jinja2".. Chameleon text templates have > no > looping constructs and using Chameleon ZPT templates to produce anything > except > XML is madness. > > On 2/11/10 8:17

Re: [Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Chris McDonough
This is why I said "use repoze.bfg.jinja2".. Chameleon text templates have no looping constructs and using Chameleon ZPT templates to produce anything except XML is madness. On 2/11/10 8:17 PM, Miuler wrote: > Mi class: > > class csv_view(object): > def __init__(self, context, reque

Re: [Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Miuler
Mi class: class csv_view(object): def __init__(self, context, request): self.context = context self. request = request def __call__(self): return {'items': [1,2,3,4,5,6]} hello, I'm trying this but fails: === test.csv.t

Re: [Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miuler wrote: > ok thanks, but what is the syntax chameleton_text? url? I mis-typed, thinking that I remembered a module named 'chameleon.text'. In BFG, you can use the 'repoze.bfg.chameleon_text' helpers, e.g.: from repoze.bfg.chamedeon_text impor

Re: [Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Miuler
ok thanks, but what is the syntax chameleton_text? url? 2010/2/11 Tres Seaver > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Miuler wrote: > > chameleon, puede o no puede renderizar txt? como? > > 'chameleon.text' lo puede, pero sin todas cosas que el otros pueden > (repeticion, por ej

Re: [Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Miuler
chameleon, puede o no puede renderizar txt? como? 2010/2/11 Chris McDonough > I'd use repoze.bfg.jinja2 for this task. < > http://pypi.python.org/pypi/repoze.bfg.jinja2/0.6> > > > > - C > > On 2/11/10 1:52 PM, Miuler wrote: > >> *=English==

Re: [Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Chris McDonough
I'd use repoze.bfg.jinja2 for this task. - C On 2/11/10 1:52 PM, Miuler wrote: > *=English==* > Hi fiends, i am trying to generate a CSV file, and using templates type > zpt (.pt) > > /-

[Repoze-dev] templates txt in repoze.bfg and chameleon

2010-02-11 Thread Miuler
*=English==* Hi fiends, i am trying to generate a CSV file, and using templates type zpt (.pt) *---* *It's a example of text* *===* * * ** *nombre: * ** *

[Repoze-dev] [Bug] View as a callable with two expected arguments.

2010-02-11 Thread Andrey Popp
Can't sign up in repoze.bfg trac due to invisible captcha, so will report bug here for now. I am using repoze.bfg 1.2 and started with bfg_starter template. Then in configure.zcml I've changed traversal dispatching to URL mapping: And redefine my_view in terms of callable class: class my_vie