[Zope] Adding a new binding for Python Scripts

Dieter Maurer dieter at handshake.de
Fri Jan 2 14:24:15 EST 2004


Sebastian Krollmann wrote at 2004-1-2 12:34 +0100:
>I need to add some textual info (docstring) to all Python Scripts. I see
>three possible solutions for that:
>
>1. Patching Python Script Product to add one more property additional to the
>title property
>2. Patching Python Script Product to add one more binding varable
>3. Adding a special variable declaration and parsing the body of the script
>to retrieve the text.
>   The body of scrips is parsed for syntax errors, but is it possible to get
>the values of variables without calling the script?
>
>Has anybody done something like this before or can give some ideas, hints
>etc.?

I would take PythonScript's "title" handling as a blueprint...

-- 
Dieter



More information about the Zope mailing list