Re: [Zope] namespace problems

2001-01-29 Thread Chris Withers
Chris Withers wrote: How would I do the URL redirect using an equivalent to the dtml-call "RESPONSE.redirect(URL1)" that's in the DTML Method below? context.RESPONSE.redirect(URL1) D'Oh... Either replace it with: context.REQUEST.RESPONSE.redirect(URL1) ...or do the following:

Re: [Zope] namespace problems

2001-01-29 Thread Gary Lowder
I really appreciate your help, but I continue to have problems with this line, and this is turning into a quest of sorts ;) . When I use "context.REQUEST.RESPONSE.redirect(URL1)" in my python script I get "NameError URL1". When I bind _ as you suggested, and use "_.RESPONSE.redirect(URL1)" I

Re: [Zope] namespace problems

2001-01-29 Thread Chris Withers
Gary Lowder wrote: When I use "context.REQUEST.RESPONSE.redirect(URL1)" in my python script I get "NameError URL1". That should be: RESPONSE = context.REQUEST.RESPONSE URL1 = context.REQUEST['URL1'] RESPONSE.redirect(URL1) When I bind _ as you suggested, and use "_.RESPONSE.redirect(URL1)"

Re: [Zope] namespace problems

2001-01-28 Thread Gary Lowder
As an aside: I can get the mess below to work with a python script, BUT, I don't know how to do the URL redirect with python as it's listed in the DTML Method. (python script snippet) context.manage_addFolder(name, name) doc=getattr(context, name) doc.manage_addProperty('number', number,

Re: [Zope] namespace problems

2001-01-28 Thread Chris Withers
How would I do the URL redirect using an equivalent to the dtml-call "RESPONSE.redirect(URL1)" that's in the DTML Method below? context.RESPONSE.redirect(URL1) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] namespace problems

2001-01-28 Thread Gary Lowder
with your line dropped in, my python script still gives me: Error Type: AttributeError Error Value: RESPONSE I'm passing variables via a form action..., how do I let python access that namespace? Thanks, Gary. Chris Withers wrote: How would I do the URL redirect using an equivalent to the

[Zope] Re: How to use standard html headers and footers properly (was: Re:[Zope] Namespace problems...)[Zope] Namespace problems...)

2000-10-12 Thread Lars Heber
Hi, first, thanks for your advice! "Manuel Amador (Rudd-O)" schrieb: dtml-with pub dtml-let titel="_.string.join(['This is the website of ', enterpriseName])" dtml-var standard_html_header /dtml-let on your document, WILL work fine. But I suggest recreating

[Zope] How to use standard html headers and footers properly (was: Re: [Zope]Namespace problems...)Namespace problems...)

2000-10-11 Thread Manuel Amador (Rudd-O)
dtml-with pub> dtml-let titel="_.string.join(['This is the website of ', enterpriseName])"> dtml-var standard_html_header> /dtml-let> on your document, WILLwork fine. But I suggest recreating standard_html_header as a METHODand calling dtml-with pub> dtml-var standard..> /dtml-with> Since