--- a/doc/tutorials/base/customizing-the-application.rst Wed Mar 18 09:58:05 2020 +0100
+++ b/doc/tutorials/base/customizing-the-application.rst Wed Mar 18 10:20:29 2020 +0100
@@ -391,7 +391,7 @@
return self.name
def display_cw_logo(self):
- return 'CubicWeb' in self.description
+ return 'CubicWeb' in self.name
In this example:
@@ -403,10 +403,10 @@
to display the entity (though in this case the default implementation would
have had the same result)
-* we implemented here a method :meth:`display_cw_logo` which tests if the blog
- entry title contains 'CubicWeb'. It can then be used when you're writing code
- involving 'Community' entities in your views, hooks, etc. For instance, you can
- modify your previous views as follows:
+* we implemented here a method :meth:`display_cw_logo` which tests if the
+ community title contains 'CubicWeb'. It can then be used when you're writing
+ code involving 'Community' entities in your views, hooks, etc. For instance,
+ you can modify your previous views as follows:
.. sourcecode:: python