Re: [Zope] Changing Properties With ZPT

2005-08-10 Thread Andreas Jung
--On 9. August 2005 21:37:11 -0400 Dyyryath [EMAIL PROTECTED] wrote: I'm trying to figure out how I can change the properties of a template with ZPT. For example, let's say I've got a Page Template with a property called 'name' and I want to change it in response to something in the HTTP

Re: [Zope] Changing Properties With ZPT

2005-08-10 Thread Dyyryath
Thanks for the reply, Andreas. Actually, I probably didn't properly explain my question. I do realize that the template is an object and that all I need to do is access the template's API to modify it's properties (though, I admit I'm a newbie here). My problem is that the only way I can find

Re: [Zope] Changing Properties With ZPT

2005-08-10 Thread Sascha Ottolski
Am Mittwoch, 10. August 2005 16:31 schrieb Dyyryath: An example is probably in order. Take the following code: div tal:content=template/titleTITLE HERE/div div tal:content=python:context.titleTITLE HERE/div why not using the same name in the python expression? :-) div tal:content=python:

[Zope] Changing Properties With ZPT

2005-08-09 Thread Dyyryath
I'm trying to figure out how I can change the properties of a template with ZPT. For example, let's say I've got a Page Template with a property called 'name' and I want to change it in response to something in the HTTP request: div tal:condition=python:'name' in context.REQUEST SOME CODE TO