[Zope] new External Methods not recognized

Dieter Maurer dieter@handshake.de
Mon, 12 Aug 2002 21:11:00 +0200


Richard Deeley writes:
 > Summary: Cannot access new External Methods, olds ones OK.
 > 
 > (Zope 2.5.1 (binary release, python 2.1, win32-x86), python 2.1.3, win32)
 > 
 > ...
 > I can redefine the old methods to use new functions.
 > I can create and test new External Methods. What I can't do is 
 > call any methods from DTML using newly created ExternalMethods. 
 > This generates a name error.
Thus, you can create the External Method, manage it, call its "Test"
tab but you cannot use it from DTML. When you try, you
get a "Error type: NameError; Error value: your_External_Method", right?

   Are you sure, the DTML object is called correctly (its two positional
   arguments passed correctly)?

   Did you check the External Method's "Permission" tab?
   Sometimes, magic resets some permissions and Zope sometimes
   maps "Unauthorized" to "AttributeError".


Dieter