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>

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

Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to