doc/book/en/tutorials/advanced/index.rst
branchstable
changeset 6833 8fe4b003c1bc
parent 6832 f392e4fb36ec
child 6876 4b0b9d8207c5
equal deleted inserted replaced
6832:f392e4fb36ec 6833:8fe4b003c1bc
    64 
    64 
    65 * `tag`, providing a full tagging system as an easy and powerful way to classify
    65 * `tag`, providing a full tagging system as an easy and powerful way to classify
    66   entities supporting the `tags` relation by linking the to `Tag` entities. This
    66   entities supporting the `tags` relation by linking the to `Tag` entities. This
    67   will allows navigation into a large number of picture.
    67   will allows navigation into a large number of picture.
    68 
    68 
    69 Ok, now I'll tell my cube requires all this by editing cubes/sytweb/__pkginfo__.py:
    69 Ok, now I'll tell my cube requires all this by editing :file:`cubes/sytweb/__pkginfo__.py`:
    70 
    70 
    71   .. sourcecode:: python
    71   .. sourcecode:: python
    72 
    72 
    73     __depends__ = {'cubicweb': '>= 3.8.0',
    73     __depends__ = {'cubicweb': '>= 3.8.0',
    74                    'cubicweb-file': '>= 1.2.0',
    74                    'cubicweb-file': '>= 1.2.0',
   178 * writing some unit tests
   178 * writing some unit tests
   179 
   179 
   180 Here is the ``read`` security model I want:
   180 Here is the ``read`` security model I want:
   181 
   181 
   182 * folders, files, images and comments should have one of the following visibility:
   182 * folders, files, images and comments should have one of the following visibility:
       
   183 
   183   - ``public``, everyone can see it
   184   - ``public``, everyone can see it
   184   - ``authenticated``, only authenticated users can see it
   185   - ``authenticated``, only authenticated users can see it
   185   - ``restricted``, only a subset of authenticated users can see it
   186   - ``restricted``, only a subset of authenticated users can see it
       
   187 
   186 * managers (e.g. me) can see everything
   188 * managers (e.g. me) can see everything
   187 * only authenticated users can see people
   189 * only authenticated users can see people
   188 * everyone can see classifier entities, such as tag and zone
   190 * everyone can see classifier entities, such as tag and zone
   189 
   191 
   190 Also, unless explicitly specified, the visibility of an image should be the same as
   192 Also, unless explicitly specified, the visibility of an image should be the same as