rql_upload.views.components.CWUploadBox

class rql_upload.views.components.CWUploadBox(req, **extra)[source]

Class that generate a left box on the web browser to access all the decalred forms in the ‘upload_structure_json’ cubicweb instance parameter.

It will appear on the left and contain the names if all forms defined in the json file.

Warning

It will NOT appear for anonymous users.

__init__(req, **extra)

Methods

__init__(req, **extra)
action_link(action)
append(item)
critical(msg, *args, **kwargs) Log ‘msg % args’ with severity ‘CRITICAL’.
cw_propval(propid) return cw property value associated to key
debug(msg, *args, **kwargs) Log ‘msg % args’ with severity ‘DEBUG’.
error(msg, *args, **kwargs) Log ‘msg % args’ with severity ‘ERROR’.
exception(msg, *args, **kwargs) Convenience method for logging an ERROR with exception information.
info(msg, *args, **kwargs) Log ‘msg % args’ with severity ‘INFO’.
init_rendering() init rendering callback: that’s the good time to check your component
layout_render(w, **kwargs)
layout_select_args()
link(title, url, **kwargs)
render(w, **kwargs)
render_body(w, **kwargs) Method that creates the upload navigation box (generates html code).
render_items(w[, items, klass])
render_title(w) return the title for this component
separator()
warning(msg, *args, **kwargs) Log ‘msg % args’ with severity ‘WARNING’.

Attributes

categories_in_order
context
contextual
cssclass return the CSS class name for this component
cw_property_defs
domid return the HTML DOM identifier for this component
layout_args
layout_id
order
title
visible
__module__ = 'rql_upload.views.components'
__regid__ = 'ctx-upload-box'
context = 'left'
order = 0
render_body(w, **kwargs)[source]

Method that creates the upload navigation box (generates html code).

This method displays error messages if the forms can’t be extrated from the configuration file.

title = u'Upload forms'