[schema] break when found
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 07 Aug 2009 10:21:19 +0200
changeset 2718 3a56b87bb5d6
parent 2717 23fe250deb02
child 2719 6df328b47361
[schema] break when found
schema.py
--- a/schema.py	Thu Aug 06 11:55:26 2009 +0200
+++ b/schema.py	Fri Aug 07 10:21:19 2009 +0200
@@ -485,6 +485,7 @@
         for k, v in self._eid_index.items():
             if v == (subjtype, rtype, objtype):
                 del self._eid_index[k]
+                break
         super(CubicWebSchema, self).del_relation_def(subjtype, rtype, objtype)
 
     def del_entity_type(self, etype):