common/mixins.py
changeset 62 ef06f71533d9
parent 0 b97547f5f1fa
child 173 a4a9e1a7e40f
--- a/common/mixins.py	Thu Nov 13 12:33:18 2008 +0100
+++ b/common/mixins.py	Thu Nov 13 12:34:36 2008 +0100
@@ -289,8 +289,10 @@
         done = set()
     entity = view.entity(row, col)
     if entity.eid in done:
-        msg = entity.req._('loop in %s relation (%s)'
-                           % (entity.tree_attribute, entity.eid))
+        msg = entity.req._('loop in %(rel)s relation (%(eid)s)') % {
+            'rel': entity.tree_attribute,
+            'eid': entity.eid
+            }
         return None, msg
     done.add(entity.eid)
     return done, entity