cubes.piws.importer.groups.CWGroups¶
-
class
cubes.piws.importer.groups.
CWGroups
(session, list_group_names, use_store=True)[source]¶ This class enables us to add new user groups in CW.
-
__init__
(session, list_group_names, use_store=True)[source]¶ Initialize the CWGroups class.
Parameters: session: Session (mandatory) :
a cubicweb session.
list_group_names: list of str (mandatory) :
the name of the different groups.
use_store: bool (optional, default True) :
if True use an SQLGenObjectStore, otherwise the session.
Methods
__init__
(session, list_group_names[, use_store])Initialize the CWGroups class. cleanup
()Method to cleanup temporary items and to commit changes. import_data
()Method that import the groups in CW. schema
(outfname[, text_font, node_text_size])Create a view of the schema described in a python structure. Attributes
assessment_relations
device_relations
fileset_relations
relations
-
__module__
= 'cubes.piws.importer.groups'¶
-