web/views/cwproperties.py
changeset 5877 0c7b7b76a84f
parent 5819 1017163825c7
child 6069 d7cef08aad27
--- a/web/views/cwproperties.py	Fri Jul 02 19:14:48 2010 +0200
+++ b/web/views/cwproperties.py	Mon Jul 05 12:04:32 2010 +0200
@@ -26,7 +26,7 @@
 from logilab.common.decorators import cached
 
 from cubicweb import UnknownProperty
-from cubicweb.selectors import (one_line_rset, none_rset, implements,
+from cubicweb.selectors import (one_line_rset, none_rset, is_instance,
                                 match_user_groups, objectify_selector,
                                 logged_user_in_rset)
 from cubicweb.view import StartupView
@@ -74,7 +74,7 @@
 
 
 class CWPropertyPrimaryView(primary.PrimaryView):
-    __select__ = implements('CWProperty')
+    __select__ = is_instance('CWProperty')
     skip_none = False
 
 
@@ -243,7 +243,7 @@
     __select__ = (
         (none_rset() & match_user_groups('users','managers'))
         | (one_line_rset() & match_user_groups('users') & logged_user_in_rset())
-        | (one_line_rset() & match_user_groups('managers') & implements('CWUser'))
+        | (one_line_rset() & match_user_groups('managers') & is_instance('CWUser'))
         )
 
     title = _('preferences')
@@ -397,7 +397,7 @@
 
 
 class CWPropertyIEditControlAdapter(editcontroller.IEditControlAdapter):
-    __select__ = implements('CWProperty')
+    __select__ = is_instance('CWProperty')
 
     def after_deletion_path(self):
         """return (path, parameters) which should be used as redirect