It is crude to reply to myself, but nevertheless.

The following patch fixes it:

Index: controllers.py
===================================================================
--- controllers.py      (revision 801)
+++ controllers.py      (working copy)
@@ -107,8 +107,9 @@
                 return func(*args, **kw)
             args, kw = tg_util.to_kw(func, args, kw)
             if form:
+                fself = args and args[0] or kw['self']
                 if callable(form) and not isinstance(form, Widget):
-                    form_ = form(args[0])
+                    form_ = form(fself)
                 else:
                     form_ = form
                 form_.validate(kw)

But I'm not sure if I should commit it - I'm don't understand this well
enough to be sure I fixed the right thing.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to