Re: [Zope] importing string module in python METHOD - a problem that shouldn't be aproblemproblem
Lee wrote: I have a Python method that needs to use the string module. In the method body I have the 'import string' statement but when I try it = Error Type: ImportError Error Value: __import__ not found import is available in Python Scripts but not Python Methods. PS is available in Zope 2.3.x. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] importing string module in python METHOD - a problem that shouldn't be aproblemproblem
From: "Lee" [EMAIL PROTECTED] I have a Python method that needs to use the string module. In the method body I have the 'import string' statement but when I try it = As Shane mentioned, 'import' is only enabled in Python Scripts, but Python Methods pre-import all of the same modules as DTML, including 'string'. Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )