[Checkins] SVN: z3c.schemadiff/trunk/ Bind schema field to source.

Malthe Borch mborch at gmail.com
Wed Jul 29 07:28:51 EDT 2009


Log message for revision 102363:
  Bind schema field to source.

Changed:
  U   z3c.schemadiff/trunk/CHANGES.txt
  U   z3c.schemadiff/trunk/src/z3c/schemadiff/schema.py

-=-
Modified: z3c.schemadiff/trunk/CHANGES.txt
===================================================================
--- z3c.schemadiff/trunk/CHANGES.txt	2009-07-29 09:56:14 UTC (rev 102362)
+++ z3c.schemadiff/trunk/CHANGES.txt	2009-07-29 11:28:51 UTC (rev 102363)
@@ -3,6 +3,9 @@
 
 In next release:
 
+- Bind schema field to source context to provide a context to the
+  field diff instance. [malthe]
+
 - Drop field if either value is ``None``. [malthe]
 
 0.1 (2008-04-30)

Modified: z3c.schemadiff/trunk/src/z3c/schemadiff/schema.py
===================================================================
--- z3c.schemadiff/trunk/src/z3c/schemadiff/schema.py	2009-07-29 09:56:14 UTC (rev 102362)
+++ z3c.schemadiff/trunk/src/z3c/schemadiff/schema.py	2009-07-29 11:28:51 UTC (rev 102363)
@@ -11,9 +11,10 @@
     for iface in interfaces:
         for name in iface.names():
             field = iface[name]
+            bound = field.bind(source)
 
             try:
-                diff = IFieldDiff(field)
+                diff = IFieldDiff(bound)
             except TypeError:
                 continue
 



More information about the Checkins mailing list