[Checkins] SVN: grok/branches/0.10/ Port formlib fix. This needs to be put to grok 0.11 and the trunk still. It's

Christian Theune ct at gocept.com
Thu Apr 10 09:35:06 EDT 2008


Log message for revision 85215:
  Port formlib fix. This needs to be put to grok 0.11 and the trunk still. It's
  on my todo list, but if anyone except me cares, ...
  
  

Changed:
  U   grok/branches/0.10/CHANGES.txt
  U   grok/branches/0.10/src/grok/formlib.py

-=-
Modified: grok/branches/0.10/CHANGES.txt
===================================================================
--- grok/branches/0.10/CHANGES.txt	2008-04-10 03:30:34 UTC (rev 85214)
+++ grok/branches/0.10/CHANGES.txt	2008-04-10 13:34:55 UTC (rev 85215)
@@ -10,6 +10,9 @@
 * Fix https://bugs.launchpad.net/grok/+bug/162437: grok.Form and its
   subclasses did not implement IBrowserView.
 
+* Port fix of zope.formlib to correctly adapt the context to a FormField's
+  interface, not the field'
+
 0.10.2 (2007-10-24)
 ===================
 

Modified: grok/branches/0.10/src/grok/formlib.py
===================================================================
--- grok/branches/0.10/src/grok/formlib.py	2008-04-10 03:30:34 UTC (rev 85214)
+++ grok/branches/0.10/src/grok/formlib.py	2008-04-10 13:34:55 UTC (rev 85215)
@@ -109,7 +109,7 @@
     for form_field in form_fields:
         field = form_field.field
         # Adapt context, if necessary
-        interface = field.interface
+        interface = form_field.interface
         adapter = adapters.get(interface)
         if adapter is None:
             if interface is None:



More information about the Checkins mailing list