# HG changeset patch # User Elodie Thieblin # Date 1584523229 -3600 # Node ID eb26c593c6f6858b534dcac0bb437b72aa8f1826 # Parent 7a76f1fcc4a3425298d95fb54fb84e680e7edec7 [doc] Fix example about Community view customization diff -r 7a76f1fcc4a3 -r eb26c593c6f6 doc/tutorials/base/customizing-the-application.rst --- 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