[Zope] External method default arg weirdness

Paul Winkler slinkp23@yahoo.com
Mon, 07 May 2001 18:34:31 -0400


This is with Zope 2.2.2.
If I give a default argument to the external method, and call it
from a dtml method, the default gets used even if I pass the
argument.

Example: Try creating two external methods and calling them like
this from standard_html_footer.

<dtml-var "my_ext_method1(_['id'])">
<dtml-var "my_ext_method2(_['id'])">


Here are the two external method definitions:

def my_ext_method1(id):
	return "<br>%s" % id

def my_ext_method2(id="oops"):
	return "<br>%s" % id



Anybody else get this? Why does it do that?

-- 
...................    paul winkler   ....................
custom calendars & printing: http://www.calendargalaxy.com
       A member of ARMS:   http://www.reacharms.com
            home page:  http://www.slinkp.com