doc/book/en/tutorials/base/create-cube.rst
branchstable
changeset 6152 6824f8b61098
parent 5432 ee246e1813c6
child 6157 81ae5bc958db
--- a/doc/book/en/tutorials/base/create-cube.rst	Wed Aug 25 19:01:58 2010 +0200
+++ b/doc/book/en/tutorials/base/create-cube.rst	Thu Aug 26 10:13:48 2010 +0200
@@ -307,11 +307,11 @@
 
 .. sourcecode:: python
 
-  from cubicweb.selectors import implements
+  from cubicweb.selectors import is_instance
   from cubicweb.web.views import primary
 
   class BlogEntryPrimaryView(primary.PrimaryView):
-      __select__ = implements('BlogEntry')
+      __select__ = is_instance('BlogEntry')
 
       def render_entity_attributes(self, entity):
           self.w(u'<p>published on %s</p>' %
@@ -376,7 +376,7 @@
 .. sourcecode:: python
 
  class BlogEntryPrimaryView(primary.PrimaryView):
-     __select__ = implements('BlogEntry')
+     __select__ = is_instance('BlogEntry')
 
      ...