Acquisition and index_html in parent folder
Hi, in the root folder i have an index_html that combines a "menu" file in the root folder and some files like "content" and "slogan" that can be found in subfolders. From a script called in "Somefolder" i tried a return statement like: return context.index_html So that the index_html (only beeing in the root folder) renders with "content" and "slogan" files found in "Somefolder". Unfortunately this return line gives me an NameError: "global name 'absolute_url' is not defined". I hope this can be fixed and i'm just missing something very obvious, oli -- "What're quantum mechanics?" "I don't know. People who repair quantums I suppose." --Terry Pratchett, "Eric"
On Mon, 26 May 2003, Oliver Keller wrote:
Unfortunately this return line gives me an NameError: "global name 'absolute_url' is not defined".
Ok. I think i should add that i was using absolute_url in index_html to determine if index_html is called in the root folder or in a subfolder. Now I replaced the ugly absolute_url check with and bypathed acquisition with this in index_html: <dtml-if "'startpage' in objectIds()"> <dtml-var startpage> <dtml-else> <dtml-var standard_html_header> <dtml-var menu> <dtml-var content> <dtml-var slogan> ... And when I now call a script in some subfolder with this return line: return context.index_html(error='not_valid') i get again a NameError: "global name 'objectIds' is not defined" Now i'm really puzzled. TIA, oli
Oliver Keller wrote at 2003-5-26 19:21 +0000:
... return context.index_html(error='not_valid')
i get again a NameError: "global name 'objectIds' is not defined"
The standard error calling DTML objects without its positional parameters... Please read "Calling DTML objects" in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> Dieter
participants (2)
-
Dieter Maurer -
Oliver Keller