[Checkins] SVN: zc.relationship/trunk/src/zc/relationship/shared.py Fixed wrong super-calls in relationship classes.

Jürgen Kartnaller juergen at kartnaller.at
Wed Aug 16 02:18:14 EDT 2006


Log message for revision 69556:
  Fixed wrong super-calls in relationship classes.
  

Changed:
  U   zc.relationship/trunk/src/zc/relationship/shared.py

-=-
Modified: zc.relationship/trunk/src/zc/relationship/shared.py
===================================================================
--- zc.relationship/trunk/src/zc/relationship/shared.py	2006-08-16 03:23:56 UTC (rev 69555)
+++ zc.relationship/trunk/src/zc/relationship/shared.py	2006-08-16 06:18:13 UTC (rev 69556)
@@ -121,7 +121,7 @@
     interface.implements(interfaces.IOneToManyRelationship)
 
     def __init__(self, source, targets):
-        super(OneToOneRelationship, self).__init__((source,), targets)
+        super(OneToManyRelationship, self).__init__((source,), targets)
 
     @apply
     def source():
@@ -149,7 +149,7 @@
     interface.implements(interfaces.IManyToOneRelationship)
 
     def __init__(self, sources, target):
-        super(OneToOneRelationship, self).__init__(sources, (target,))
+        super(OneToManyRelationship, self).__init__(sources, (target,))
 
     @apply
     def sources():



More information about the Checkins mailing list