>> Conventions :


  1. The values returned by the getter methods must be :

    • Either an instance of the node's corresponding class (Example : the get() method of the bulb.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 the bulb.contrib.auth.node_models.User() node model).


  2. 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 + User node model),

    • view_administration_page (CRUD + a page of the site),

    • update_own_messages (CRUD + target + Message node model),

    • delete_post (CRUD + Post node model),

      etc...