rql_upload.views.cwupload.CWUploadView¶
-
class
rql_upload.views.cwupload.
CWUploadView
(req=None, rset=None, **kwargs)[source]¶ Custom view to edit the form generated from the instance configuration file.
Note
The authorized form fields are defined in the global parameter ‘DECLARED_FIELDS’ that can be found in the ‘rql_upload.views.formfields.formfields’ module.
-
__init__
(req=None, rset=None, **kwargs)¶
Methods
__init__
([req, rset])call
(**kwargs)Create the form fields. cell_call
(row, col, **kwargs)the view is called for a particular result set cell 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. field
(label, value[, row, show_label, w, ...])read-only field html_headers
()return a list of html headers (eg something to be inserted between info
(msg, *args, **kwargs)Log ‘msg % args’ with severity ‘INFO’. is_primary
()last_modified
()return the date/time where this view should be considered as linkable
()return True if the view may be linked in a menu page_title
()returns a title according to the result set - used for the render
([w])called to render a view object for a result set. set_http_cache_headers
()set_request_content_type
()set the content type returned by this view set_stream
([w])tal_render
(template, variables)render a precompiled page template with variables in the given url
()return the url associated with this view. Should not be warning
(msg, *args, **kwargs)Log ‘msg % args’ with severity ‘WARNING’. wdata
(data)simple helper that escapes data and writes into self.w whead
(data)wview
(_View__vid[, rset, _View__fallback_vid])shortcut to self.view method automatically passing self.w as argument Attributes
add_div_section
add_to_breadcrumbs
binary
bool_map
cache_max_age
category
content_type
paginable
templatable
title
-
__module__
= 'rql_upload.views.cwupload'¶
-
__regid__
= 'upload-view'¶
-
bool_map
= {'False': False, 'True': True}¶
-
call
(**kwargs)[source]¶ Create the form fields.
Note
At upload, all field inputs are checked to match the ‘check_value’ regular expressions defined in the ‘upload_structure_json’ instance parameter.
-
title
= u'Upload form'¶
-