RE: Passing namespace to Python scrict was: how to call an exter nal module from a Python script?
26 Sep
2001
26 Sep
'01
6:28 a.m.
From: Dieter Maurer *EXTERN* [mailto:dieter@handshake.de]
Reif Peter writes:
... My script:
... ##bind namespace=namespace ...
zone = namespace.zone return zone
It is called from a DTML-method where the tag <dtml-var zone> is rendered correctly:
... <dtml-var get_status_a> ...
Error:
Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: zone How is it called?
Implicitly (<dtml-var myPythonScript>) or explicitly?
Implicitly.
In the second case, you must pass the namespace yourself! In the first case, check in the binding tab that the binding really took place.
The binding took place! It doesn't work, anyway :-( Peter
8958
Age (days ago)
8958
Last active (days ago)
0 comments
1 participants
participants (1)
-
Reif Peter