Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Well, you will hit problems with your define because that will run before your repeat. Remove it and be happy. Ah thanks, that's much better. :) Example Option New ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Am 14.08.2006 um 21:02 schrieb Don Morrison: Am 14.08.2006 um 20:36 schrieb Don Morrison: > I refactored some... > > > >tal:attributes="label record/name; value record/id" > tal:content="record/name"> > Example Option > > > New > No need for the to loop and no need to wrap you variable names in cryptic abbreviations. I tried removing the div and putting the repeat in the option tag and it didn't work. Well, you will hit problems with your define because that will run before your repeat. Remove it and be happy. Charlie Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Am 14.08.2006 um 20:36 schrieb Don Morrison: > I refactored some... > > > >tal:attributes="label record/name; value record/id" > tal:content="record/name"> > Example Option > > > New > No need for the to loop and no need to wrap you variable names in cryptic abbreviations. I tried removing the div and putting the repeat in the option tag and it didn't work. ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Am 14.08.2006 um 20:36 schrieb Don Morrison: I refactored some... tal:attributes="label record/name; value record/id" tal:content="record/name"> Example Option New No need for the to loop and no need to wrap you variable names in cryptic abbreviations. Charlie Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
I refactored some... Example Option New ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Thanks everyone, the following works: I omit the dummy value since I have several dummy values defined elsewhere. :) On 8/14/06, Janko Hauser <[EMAIL PROTECTED]> wrote: You are missing tal:attributes dummy With regards, __Janko > When doing the following: > > tal:replace="string:${mylt}option label='${r}' > value='${id}'${mygt}${r}${mylt}/option${mygt}"> > > The less-thans and greater-thans still get html escaped. How do I > prevent this? Obviously I'm new to zope. Your answer would probably > fit into the Zope Book because I don't see the answer there. -- Janko Hauser email: [EMAIL PROTECTED] mobile: +49 1721 641552 ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Am 14.08.2006 um 19:27 schrieb Don Morrison: Eek string replacements are so much uglier than Python string format! Is it just me who thinks what you're doing is wrong. Charlie, I just said myself it was wrong and I'm asking for help because even if it did work it would be ugly and inelegant. I left it wrong to show you I'm trying to prevent escaping. Don't pretend to not understand this just to make fun of me. :) I wasn't making fun of you. Anyway I think what you're after is tal:source which is very much in the Zope Book in the chapters on PageTemplates. I don't see it in 2.6 or here in 2.7: Sorry, it's "structure" you want to use. "> Now, if you are going to generate some complex tag then you are best of doing this in a PythonScript and returning the string to the template. However, I do not think that is the way to want you want as I this only makes sense for extremely dynamic content. In my view it's better to use standard tags. Your source is virtually impenetrable to me which I think is a guide to it being wrong. content="record/value"> No formatting required at all. At least I think that's what you want! Charlie Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
You are missing tal:attributes dummyoption> With regards, __Janko When doing the following: The less-thans and greater-thans still get html escaped. How do I prevent this? Obviously I'm new to zope. Your answer would probably fit into the Zope Book because I don't see the answer there. -- Janko Hauser email: [EMAIL PROTECTED] mobile: +49 1721 641552 PGP.sig Description: Signierter Teil der Nachricht ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
On 8/14/06, Don Morrison <[EMAIL PROTECTED]> wrote: > Eek string replacements are so much uglier than Python string format! How does Python string format help me? If I return a string from Python the less-thans and greater-thans still get html escaped: ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Eek string replacements are so much uglier than Python string format! Is it just me who thinks what you're doing is wrong. Charlie, I just said myself it was wrong and I'm asking for help because even if it did work it would be ugly and inelegant. I left it wrong to show you I'm trying to prevent escaping. Don't pretend to not understand this just to make fun of me. :) Anyway I think what you're after is tal:source which is very much in the Zope Book in the chapters on PageTemplates. I don't see it in 2.6 or here in 2.7: http://www.plope.com/Books/2_7Edition/AppendixC.stx ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt
Re: [ZPT] preventing escaping of less-than and greater-thans in tal:replace
Am 14.08.2006 um 19:13 schrieb Don Morrison: When doing the following: The less-thans and greater-thans still get html escaped. How do I prevent this? Obviously I'm new to zope. Your answer would probably fit into the Zope Book because I don't see the answer there. Eek string replacements are so much uglier than Python string format! Is it just me who thinks what you're doing is wrong. Anyway I think what you're after is tal:source which is very much in the Zope Book in the chapters on PageTemplates. Charlie Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ ZPT mailing list ZPT@zope.org http://mail.zope.org/mailman/listinfo/zpt