[albatross-users] Two more issues

Andrew McNamara andrewm at object-craft.com.au
Thu Dec 5 15:15:00 EST 2002


>5) ctx.req_equals returning true only if the field exists is not blank,
>right now it will return true for empty fields on the second submission
>of the same page.

We've replaced req_equals (app.py, class AppContext) with the following,
which should fix this problem. You can try the following, or wait for
the next release:

    def req_equals(self, name):
        try:
            if self.request.field_value(name): 
                return 1
        except KeyError:
            pass
        return 0

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/



More information about the Albatross-users mailing list