[PATCH 6 of 8 cubicweb] [doc] Remove zone cube which causes to crash on install
Elodie Thiéblin
elodie.thieblin at logilab.fr
Thu Mar 19 08:44:50 CET 2020
Yes, it is not compatible with python3. I added this information in the
commit
Thanks
On 18/03/2020 17:04, Nicola Spanti wrote:
> It looks good, but it would be better to add a bit of information on
> the crash. Python 3 unsupported? (The last change was done in 2013...)
> https://www.cubicweb.org/repository/475621
>
> I will publish what was before, thanks. Beware that we try to respect
> 80 characters limit, so I modify a patch to "fit" this.
>
> Le 18/03/2020 à 14:39, Elodie Thieblin a écrit :
>> # HG changeset patch
>> # User Elodie Thieblin <ethieblin at logilab.fr>
>> # Date 1584527370 -3600
>> # Wed Mar 18 11:29:30 2020 +0100
>> # Node ID bd158294296cac9513fbdce1101087889f85b3ab
>> # Parent 18a7f541c613fd277886a4b59520c5efc432ad00
>> # Available At ssh://hg@hg.logilab.org/review/cubicweb
>> # hg pull ssh://hg@hg.logilab.org/review/cubicweb -r
>> bd158294296c
>> # EXP-Topic doc_tuto
>> [doc] Remove zone cube which causes to crash on install
>>
>> diff --git a/doc/tutorials/advanced/part01_create-cube.rst
>> b/doc/tutorials/advanced/part01_create-cube.rst
>> --- a/doc/tutorials/advanced/part01_create-cube.rst
>> +++ b/doc/tutorials/advanced/part01_create-cube.rst
>> @@ -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 n
>> * `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 t
>> '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/
>> object = 'Folder'
>> - class situated_in(RelationDefinition):
>> - subject = 'File'
>> - object = 'Zone'
>> -
>> -
>> class displayed_on(RelationDefinition):
>> subject = 'Person'
>> object = 'File'
>> diff --git a/doc/tutorials/advanced/part02_security.rst
>> b/doc/tutorials/advanced/part02_security.rst
>> --- a/doc/tutorials/advanced/part02_security.rst
>> +++ b/doc/tutorials/advanced/part02_security.rst
>> @@ -19,7 +19,7 @@ Here is the ``read`` security model I wa
>> * 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
>> 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
>> 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:
>>
More information about the cubicweb-devel
mailing list