>> Conventions :¶
-
The values returned by the getter methods must be :
- Either an instance of the node's corresponding class (Example : the
get()method of thebulb.contrib.auth.node_models.User()node model), - Or JSONified datas of the node/instance (No example).
If there are multiple nodes, they'll be stored in a list or in a set (Example : the
get_only_user_permissions()method of thebulb.contrib.auth.node_models.User()node model).
- Either an instance of the node's corresponding class (Example : the
-
Permissions should always have a codename composed of a CRUD element ("create", "view", "update", "delete") + (optional) a target + the concerned node models' name or the concerned entity's name, in lowercase.
Some examples :- create_user (CRUD +
Usernode model),
- view_administration_page (CRUD + a page of the site),
- update_own_messages (CRUD + target +
Messagenode model),
- delete_post (CRUD +
Postnode model),
etc...
- create_user (CRUD +