Author: jmorliaguet
Date: Sat Mar 25 16:14:36 2006
New Revision: 2725

Modified:
   cpsskins/branches/jmo-perspectives/relations/storage.py
Log:

- if an element is not relatable (cannot be adapted to IRelatable) we use its
  string representation in the relation index.

  this is used with slots, perspectives, ... or more generally when we pass
  a string into the relation (Relation(first='..', second='..')) instead of
  passing objects.



Modified: cpsskins/branches/jmo-perspectives/relations/storage.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/relations/storage.py     (original)
+++ cpsskins/branches/jmo-perspectives/relations/storage.py     Sat Mar 25 
16:14:36 2006
@@ -289,7 +289,7 @@
         def f(v, w):
             if w == '*':
                 return '*'
-            return str(IRelatable(v))
+            return str(IRelatable(v, v))
 
         for w in WILDCARDS[arity]:
             relations.append(
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to