Views documentation

Documentation regarding views defined on the cube.

rql_upload.views: Navigation

All the views designed to navigate on the web pages. The ‘CWUploadBox’ resume all the forms available. A ‘UploadOutOfContext’ out of context view is also proposed to render the ‘UploadFile’ and ‘UploadForm’ summary views.

User Views

components.CWUploadBox(req, **extra) Class that generate a left box on the web browser to access all the decalred forms in the ‘upload_structure_json’ cubicweb instance parameter.
outofcontext.UploadOutOfContext([req, rset]) Display a nice out of context view with a small icon on the left of uploded items.

Associated Tools

utils.load_forms(cw_config) Function to load the forms structures from the file defined in the ‘upload_structure_json’ cubicweb instance parameter.
formfields.registration_callback(vreg) The authorized form fields are registered from this function.

rql_upload.views.cwupload: Form

A view ‘CWUploadView’ that displays the form to fill.

User Views

cwupload.CWUploadView([req, rset]) Custom view to edit the form generated from the instance configuration file.

Associated Tools

cwupload.CWUploadForm(req[, rset, row, col, ...]) Create a submit button.
cwupload.render_content(self, w, form, values) Overwrite the original processing message when the upload is running.