[Wheat-cvs] r1/web-dev/source/animal animal.ws,1.5,1.6
Status: Pre-Alpha
Brought to you by:
mark_lentczner
From: Kragen S. <kr...@us...> - 2005-06-07 22:33:58
|
Update of /cvsroot/wheat/r1/web-dev/source/animal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6817/web-dev/source/animal Modified Files: animal.ws Log Message: Thought I'd committed this yesterday, but apparently there was a network error. Now post-args is a table, not just a /library/base/object. Consequently it should now be safe to handle form posts with form field names like "absolute-path" and "member". Added comments on untested methods. Blog edit doesn't work, but I don't think that's a result of these changes. Index: animal.ws =================================================================== RCS file: /cvsroot/wheat/r1/web-dev/source/animal/animal.ws,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- animal.ws 15 Feb 2005 05:59:54 -0000 1.5 +++ animal.ws 7 Jun 2005 22:33:50 -0000 1.6 @@ -89,11 +89,12 @@ add(a, b, c): { self.container.add(a, b, c); } submit(post-args: args, request: req): { + `` XXX this is not tested last-node := \self.container; last-node.add( - args.new-animal-name, - args.distinguishing-question, - args.answer); + args["new-animal-name"], + args["distinguishing-question"], + args["answer"]); return last-node.game-over.render(request: req); } } |