Commit 92373202 authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

[doc] Remove zone cube which causes to crash on install

The zone cube is not compatible with python3.
parent c829cace0172
......@@ -33,7 +33,6 @@ site using::
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 @@ existing cubes that I'll extend for my need. So I'll pick the following cubes:
* `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 @@ Ok, now I'll tell my cube requires all this by editing :file:`cubicweb-sytweb/cu
'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 @@ Put this code in :file:`cubicweb-sytweb/cubicweb_sytweb/schema.py`:
object = 'Folder'
class situated_in(RelationDefinition):
subject = 'File'
object = 'Zone'
class displayed_on(RelationDefinition):
subject = 'Person'
object = 'File'
......
......@@ -19,7 +19,7 @@ Here is the ``read`` security model I want:
* 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 @@ attribute and relation. Here is the code to add to :file:`schema.py`:
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 @@ attribute and relation. Here is the code to add to :file:`schema.py`:
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment