[doc] Fix class name for ComputedRelation; fix code block about computed attributes
--- 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