... and totally lost into the depth... Hi, I´m struggling with Zope for a few days and so far it looks as it could do the job. But sometimes I feel like never used a (computer)-language before. It´s so different. Maybe I havn´t found the way to think for Zope... The Tutorials are a bit rare or too basic and the documentation is a bit theoretically (IMHO). My way to learn ist "learning by doing" but now I´t totally stuck (maybe its Zope or my brain...). I want to do a site with a title on every page in the different folders which differs only in one word (in real a graphic). So I thought of using a folder property which names this word. I include the title with <dtml-var Titel> and in there is a (html)table with the title and one is <dtml-var titel> where titel is the property of the folder. This property has the value which points to the correct graphic. But it seems that because the "Titel" DTML is in the root of my site it doesn´t know of the folder property "titel" and I get an error : Error Type: KeyError Error Value: titel [···] Traceback (innermost last): File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/Zope/__init__.py, line 201, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: index_html) File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/OFS/DTMLDocument.py, line 166, in __call__ (Object: index_html) File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: index_html) File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/OFS/DTMLMethod.py, line 141, in __call__ (Object: Titel) File /usr/local2/Zope-2.0.1-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: Titel) KeyError: (see above) I was also searching for a way to pass some arguments to a DTML function, but with no success. Maybe I´m trying the totally wrong for attaining the desired result. Any suggestion is very welcome so I can go further with my Zope experiments. Thanks, Carsten Wartmann.
participants (1)
-
Carsten Wartmann