[Zope] Lookinf inside page templates from a script
Dieter Maurer
dieter@handshake.de
Mon, 12 Aug 2002 21:54:54 +0200
Felix Ulrich-Oltean writes:
> In PageTemplate.py, I have found pt_macros(), which returns a
> dictionary with macro names as keys. Great so far. I can even print
> pt_macros() and get a string representing the whole dictionary.
> However, when I try to access the corresponding value so I can look
> for the slots inside each macro, I get the error shown below.
> ...
> Error Type: TypeError
> Error Value: unsubscriptable object
> ...
> File Script (Python), line 8, in examineMacros.py
Something is wrong with your line 8 of "examineMacros.py".
You use "[...]" on something which is not subscriptable.
Dieter