Author: jmorliaguet
Date: Sun Jun 18 20:25:46 2006
New Revision: 3454

Modified:
   cpsskins/branches/paris-sprint-2006/storage/locations.py

Log:

- simplifications, the distance is the iterator itself



Modified: cpsskins/branches/paris-sprint-2006/storage/locations.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/storage/locations.py    (original)
+++ cpsskins/branches/paris-sprint-2006/storage/locations.py    Sun Jun 18 
20:25:46 2006
@@ -66,8 +66,7 @@
                 continue
             l = self[p]
             start, end = l.scope
-            dist = path_len - len(p)
-            if (start == 0 or dist >= start) and (end == 0 or dist <= end):
+            if (start == 0 or i >= start) and (end == 0 or i <= end):
                 return l
         return None
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to