[Twisted-Python] incredibly minor "fix"
I know, I couldn't have possibly found something smaller. The warning was annoying me. This is a patch to FormErrorModel to add the request argument to the wmfactory method. Also, I was the one in #twisted this weekend asking about woven.guard. I pretty much figured it out, it seems so easy now. I have some ideas for making it easy (subclassing PerspectiveWrapper) to use any resource to display the login prompt (not the auto-generated FormProcessor). Is this something I should submit, or does it already work that way and I was too dense to see it? rich Index: form.py =================================================================== RCS file: /cvs/Twisted/twisted/web/woven/form.py,v retrieving revision 1.25 diff -u -r1.25 form.py --- form.py 7 Mar 2003 17:22:41 -0000 1.25 +++ form.py 8 Apr 2003 21:07:47 -0000 @@ -265,7 +265,7 @@ self.err = err self.desc = "Please try again" - def wmfactory_description(self): + def wmfactory_description(self, request): return str(self.desc)
On Tuesday, April 8, 2003, at 02:19 PM, Rich Cavanaugh wrote:
I know, I couldn't have possibly found something smaller. The warning was annoying me. This is a patch to FormErrorModel to add the request argument to the wmfactory method.
Applied, thanks. If anyone else finds any of these in base twisted, please let me know. Donovan
participants (2)
-
Donovan Preston
-
Rich Cavanaugh