[Zope] question on python script, dtml method and options

2005-07-19 Thread Erik Myllymaki
I use the following template often. When using a page template for my MAIN page, I access the error and message vars with: p tal:content=options/errorError message/p p tal:content=options/messageReg. Message/p How would I access them when I use a dtml-method for my MAIN page? dtml-var error

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
On 7/19/05, Erik Myllymaki [EMAIL PROTECTED] wrote: I use the following template often. When using a page template for my MAIN page, I access the error and message vars with: p tal:content=options/errorError message/p p tal:content=options/messageReg. Message/p How would I access them

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Erik Myllymaki
I don't get a traceback, i just get error and message back as empty strings; their initiallized value. very strange. Peter Bengtsson wrote: On 7/19/05, Erik Myllymaki [EMAIL PROTECTED] wrote: I use the following template often. When using a page template for my MAIN page, I access the

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
On 7/19/05, Erik Myllymaki [EMAIL PROTECTED] wrote: I don't get a traceback, i just get error and message back as empty strings; their initiallized value. So you're not getting an error. What is the initialized value? Is 'error' and 'message' set in REQUEST? (that you can find out from doing

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Erik Myllymaki
I am using DTML only because I am using the excellent Calendar tag product. sometimes, the links on the calendar tag get affected by from variables so as a hack i re-write the QUERY_STRING using: request.RESPONSE.redirect(request['URL'] + '?mode-calendar=' + request['mode-calendar'] +

Re: [Zope] question on python script, dtml method and options

2005-07-19 Thread Peter Bengtsson
How you get to the page is irrelevant. I don't care if you redirect there or type in the url or click a link. On 7/19/05, Erik Myllymaki [EMAIL PROTECTED] wrote: I am using DTML only because I am using the excellent Calendar tag product. sometimes, the links on the calendar tag get affected