[doc] Fix class name for ComputedRelation; fix code block about computed attributes
authorDenis Laxalde <denis.laxalde@logilab.fr>
Wed, 28 Jan 2015 17:36:13 +0100
changeset 10168 136e6b655cdb
parent 10167 de62952550d9
child 10169 ed57c5215530
[doc] Fix class name for ComputedRelation; fix code block about computed attributes
doc/book/en/devrepo/datamodel/definition.rst
--- a/doc/book/en/devrepo/datamodel/definition.rst	Thu Jan 29 16:40:08 2015 +0100
+++ b/doc/book/en/devrepo/datamodel/definition.rst	Wed Jan 28 17:36:13 2015 +0100
@@ -615,7 +615,7 @@
 
 .. sourcecode:: python
 
-    class illustrator_of(ComputedRelationType):
+    class illustrator_of(ComputedRelation):
         rule  = ('C is Contribution, C contributor S, C manifestation O,'
                  'C role R, R name "illustrator"')
 
@@ -643,7 +643,7 @@
 ````````````````````````````````````
 
 In the above case we would define the *computed attribute*
-``total_salary`` on the ``Company`` entity type in the schema by::
+``total_salary`` on the ``Company`` entity type in the schema by:
 
 .. sourcecode:: python