common/mixins.py
changeset 3451 6b46d73823f5
parent 3426 6ea4a2ff01c9
child 3457 0924d0d08d60
--- a/common/mixins.py	Wed Sep 23 19:26:38 2009 +0200
+++ b/common/mixins.py	Wed Sep 23 19:40:19 2009 +0200
@@ -38,7 +38,7 @@
                            entities=entities)
         if entities:
             return [e for e in res if e.e_schema != self.e_schema]
-        return res.filtered_rset(lambda x: x.e_schema != self.e_schema, self.col)
+        return res.filtered_rset(lambda x: x.e_schema != self.e_schema, self.cw_col)
 
     def same_type_children(self, entities=True):
         """return children entities of the same type as this entity.
@@ -50,7 +50,7 @@
                            entities=entities)
         if entities:
             return [e for e in res if e.e_schema == self.e_schema]
-        return res.filtered_rset(lambda x: x.e_schema == self.e_schema, self.col)
+        return res.filtered_rset(lambda x: x.e_schema == self.e_schema, self.cw_col)
 
     def iterchildren(self, _done=None):
         if _done is None:
@@ -249,7 +249,7 @@
 
 class TreePathMixIn(object):
     """a recursive path view"""
-    id = 'path'
+    __regid__ = 'path'
     item_vid = 'oneline'
     separator = u' > '