[doc] Remove zone cube which causes to crash on install
authorElodie Thieblin <ethieblin@logilab.fr>
Wed, 18 Mar 2020 11:29:30 +0100
changeset 12927 89acc8d3d462
parent 12926 c829cace0172
child 12928 327b11ee0914
[doc] Remove zone cube which causes to crash on install The zone cube is not compatible with python3.
doc/tutorials/advanced/part01_create-cube.rst
doc/tutorials/advanced/part02_security.rst
--- a/doc/tutorials/advanced/part01_create-cube.rst	Wed Mar 18 11:45:35 2020 +0100
+++ b/doc/tutorials/advanced/part01_create-cube.rst	Wed Mar 18 11:29:30 2020 +0100
@@ -33,7 +33,6 @@
 Enter a short description and this will create your new cube in the
 `cubicweb-sytweb` folder.
 
-
 .. _adv_tuto_assemble_cubes:
 
 Step 3: pick building blocks into existing cubes
@@ -50,9 +49,6 @@
 * `file <https://www.cubicweb.org/project/cubicweb-file>`_, containing `File`
   entity type, gallery view, and a file system import utility.
 
-* `zone <https://www.cubicweb.org/project/cubicweb-zone>`_, containing the
-  `Zone` entity type for hierarchical geographical zones. Entities (including
-  sub-zones) are added to a given zone using the `situated_in` relation.
 
 * `person <https://www.cubicweb.org/project/cubicweb-person>`_, containing the
   `Person` entity type plus some basic views.
@@ -75,8 +71,8 @@
                    'cubicweb-folder': '>= 1.1.0',
                    'cubicweb-person': '>= 1.2.0',
                    'cubicweb-comment': '>= 1.2.0',
-                   'cubicweb-tag': '>= 1.2.0',
-                   'cubicweb-zone': None}
+                   'cubicweb-tag': '>= 1.2.0'
+                   }
 
 Notice that you can express minimal version of the cube that should be used,
 `None` meaning whatever version available. All packages starting with 'cubicweb-'
@@ -122,11 +118,6 @@
         object = 'Folder'
 
 
-    class situated_in(RelationDefinition):
-        subject = 'File'
-        object = 'Zone'
-
-
     class displayed_on(RelationDefinition):
         subject = 'Person'
         object = 'File'
--- a/doc/tutorials/advanced/part02_security.rst	Wed Mar 18 11:45:35 2020 +0100
+++ b/doc/tutorials/advanced/part02_security.rst	Wed Mar 18 11:29:30 2020 +0100
@@ -19,7 +19,7 @@
 
 * managers (e.g. me) can see everything
 * only authenticated users can see people
-* everyone can see classifier entities, such as tag and zone
+* everyone can see classifier entities, such as tag
 
 Also:
 
@@ -141,7 +141,6 @@
     from cubicweb_file.schema import File
     from cubicweb_comment.schema import Comment
     from cubicweb_person.schema import Person
-    from cubicweb_zone.schema import Zone
     from cubicweb_tag.schema import Tag
 
     Folder.__permissions__ = VISIBILITY_PERMISSIONS
@@ -149,7 +148,6 @@
     Comment.__permissions__ = VISIBILITY_PERMISSIONS.copy()
     Comment.__permissions__['add'] = ('managers', 'users',)
     Person.__permissions__ = AUTH_ONLY_PERMISSIONS
-    Zone.__permissions__ = CLASSIFIERS_PERMISSIONS
     Tag.__permissions__ = CLASSIFIERS_PERMISSIONS
 
 What's important in there: