Re: [Zope] DTML namespace problem (was: dtml-tree issue)

2005-04-12 Thread Vangelis Mihalopoulos
Just added__allow_access_to_unprotected_subobjects__=1as an attribute of my class defined in an external python script and it works fine. Thanks Tino! Tino Wildenhain wrote: Hi, Am Montag, den 11.04.2005, 14:08 +0300 schrieb Vangelis Mihalopoulos: Andreas Jung wrote: You should

Re: [Zope] DTML namespace problem (was: dtml-tree issue)

2005-04-11 Thread Andreas Jung
--On Montag, 11. April 2005 13:44 Uhr +0300 Vangelis Mihalopoulos [EMAIL PROTECTED] wrote: Hello, i have focused my problem on this: having a Python Script testScript: class obj: a = 1 b = 2 c = 3 return obj() and a

Re: [Zope] DTML namespace problem (was: dtml-tree issue)

2005-04-11 Thread Vangelis Mihalopoulos
Andreas Jung wrote: You should *not* define classes inside PythonScripts. PythonScripts are stricted and don't provide the full functionality. Either use filesystem based code (Zope Product) or use simple Python datatypes as dictionaries in this case. An External Method behaves exactly the

Re: [Zope] DTML namespace problem (was: dtml-tree issue)

2005-04-11 Thread Tino Wildenhain
Hi, Am Montag, den 11.04.2005, 14:08 +0300 schrieb Vangelis Mihalopoulos: Andreas Jung wrote: You should *not* define classes inside PythonScripts. PythonScripts are stricted and don't provide the full functionality. Either use filesystem based code (Zope Product) or use simple