Andreas Pauley wrote:
> I have an external method that looks (somewhat) like this:
> 
> def extAccess(self, accttype_cde):
>     return accttype_cde

> <dtml-if "extAccess(accttype_cde='COM')">
>   <b>The external method returned true</b>
> </dtml-if>
> 
> I get the following error for the above statement:
> Error Type: TypeError
> Error Value: not enough arguments; expected 2, got 0

Yup, been there, done that, the thread's in the zope-dev archive if
you're interested...

The way external methods handle parameters is 'interesting' to say the
least.
Your safest bet is just to use the REQUEST variable to pass stuff, as
someone else suggested.

cheers,

Chris

_______________________________________________
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 )

Reply via email to