[Zope] importing string module in python METHOD - a problem that shouldn't be aproblemproblem

2001-01-13 Thread Lee
Hi, 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 The documentation collaborates that import statements (the string module

Re: [Zope] importing string module in python METHOD - a problem that shouldn't be aproblemproblem

2001-01-13 Thread Shane Hathaway
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.

Re: [Zope] importing string module in python METHOD - a problem that shouldn't be aproblemproblem

2001-01-13 Thread Evan Simpson
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,