[Zope] Help - cannot import zexp
Oleg Broytmann
Oleg Broytmann <phd@mail2.phd.pp.ru>
Fri, 1 Dec 2000 14:25:27 +0300 (MSK)
Hello!
Please help, I have a problem importing my zexp.
Initially I created the exported zexp while debugging some External
Method. The method is declared as follows:
def navigation_leftColumn(self, _, render=default_render):
...
where default_render is a helper function, defined in the same .py file:
def default_render(self, _, alist=None, indent=0):
...
Later I deleted the entire folder and tried to import zexp to return to
saved position. Zope raise the error:
"Cannot import default_render from module __main__". Oops! What's that?
The default_render isn't in __main__, sure. I tried to create External
Method before importing, but this didn't help :(
Oleg.
----
Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.