CWBROWSER

A Python module is proposed to script the RQL requests. It enables us to access information stored in a CubicWeb database, through two methods ‘execute’ and ‘execute_with_sync’. The first method simply executes a RQL from the script while the second one creates a search, then it contacts the server where the CW instance is running through the sftp protocol using paramiko in order to download the search associated dataset. This second method assumes that the Twisted server solution or the Fuse virtual folders solution has been deployed on the server.

Warning

If you use fuse to retrieve the search associated dataset (using the ‘execute_with_sync’ method), the CW user must have specific rights (ie. must be a simple user).

cwbrowser: cw_connection

Connection definition

cw_connection.CWInstanceConnection(url, ...) Tool to dump the data stored in a cw instance.

Exporter

cw_connection.load_csv(csv_stream[, delimiter]) Load a csv file.