[Zope3-dev] Python scripts?

Chris Withers chrisw@nipltd.com
Mon, 12 May 2003 15:55:49 +0100


Jim Fulton wrote:
> I see a number of alternatives:
> 
> - Port Zope 2 Python scripts
> 
>   * without the bindings tab
> 
>   * without context, script, namespace, and subpath variables.
>     (not sure about script)
> 
>   Maybe these should be renamed "Python functions", since they aren't 
> really
>   methods.

This is probably me favourite right now, especially the rename...

> - Provide more of a module-like object. This would be a persistent
>   module that lived in content space. It would not be importable, but
>   would be accessable via traversal as in:
> 
>     tal:content="container/somemodule/somefunction"

...unless; This would be great if it had python semantics.
ie: on import, the code in the module is executed.
However, what would happen to output from that execution?

cheers,

Chris