[Zope-dev] Bug? Handling of attribute names and default values in forms in 2.61 ??

Max M maxm at mxm.dk
Thu Nov 13 12:01:50 EST 2003


I have a piece of code that looks like below. It has worked for a few 
years now. After upgrading to 2.61 it doesn't any more.

<input type="hidden" name="teachers:list:default" value="">

<dtml-call "REQUEST.set('teacherList', getAllTeachers())">
<dtml-in teacherList sort=title>
         <input type="checkbox" name="teachers:list"
            value="<dtml-var path>"<dtml-if selected> checked</dtml-if>>

         <a href="<dtml-var path>/manage_main">&dtml-title;</a><br>
</dtml-in>


I have tracked the problem to the default value always being added to 
the "teachers" list.

meaning that my action method:

def addTeacher(self, teachers):
	print teachers

 >> ['some/path', '']

Where I would expect:

 >> ['some/path']

Isn't that a new behaviour? And isn't it a bug?


regards Max M




More information about the Zope-Dev mailing list