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 |