rql_upload.views.utils.load_forms¶
-
rql_upload.views.utils.
load_forms
(cw_config)[source]¶ Function to load the forms structures from the file defined in the ‘upload_structure_json’ cubicweb instance parameter.
Parameters: cw_config: dict :
the cubicweb configuration built from the instance ‘all-in-one.conf’ file.
Returns: config: dict :
the forms descriptions defined in the ‘upload_structure_json’ setting file.
-1 :
if the file is not specified or found on the system.
-2 :
if the file cannot be decoded as json file.