[PATCH 5 of 8 cubicweb] [doc] Fix example about Community view customization

Elodie Thieblin elodie.thieblin at logilab.fr
Wed Mar 18 14:39:34 CET 2020


# HG changeset patch
# User Elodie Thieblin <ethieblin at logilab.fr>
# Date 1584523229 -3600
#      Wed Mar 18 10:20:29 2020 +0100
# Node ID 18a7f541c613fd277886a4b59520c5efc432ad00
# Parent  9945772634ecc87290281a2e12303a87c47fdaad
# Available At ssh://hg@hg.logilab.org/review/cubicweb
#              hg pull ssh://hg@hg.logilab.org/review/cubicweb -r 18a7f541c613
# EXP-Topic doc_tuto
[doc] Fix example about Community view customization

diff --git a/doc/tutorials/base/customizing-the-application.rst b/doc/tutorials/base/customizing-the-application.rst
--- a/doc/tutorials/base/customizing-the-application.rst
+++ b/doc/tutorials/base/customizing-the-application.rst
@@ -390,7 +390,7 @@ method, etc... To do so, write this code
             return self.name
 
         def display_cw_logo(self):
-            return 'CubicWeb' in self.description
+            return 'CubicWeb' in self.name
 
 In this example:
 
@@ -402,8 +402,8 @@ In this example:
   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
+* 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:
 




More information about the cubicweb-devel mailing list