rql_upload.views.cwupload.CWUploadForm¶
-
class
rql_upload.views.cwupload.
CWUploadForm
(req, rset=None, row=None, col=None, submitmsg=None, mainform=True, **kwargs)[source]¶ Create a submit button.
-
__init__
(req, rset=None, row=None, col=None, submitmsg=None, mainform=True, **kwargs)¶
Methods
__init__
(req[, rset, row, col, submitmsg, ...])add_hidden
(cls_or_self, name[, value])Append an hidden field to the form. add_media
()adds media (CSS & JS) required by this widget append_field
(cls_or_self, field)Append the given field. build_context
([formvalues])build form context values (the .context attribute which is a 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’. default_renderer
()error
(msg, *args, **kwargs)Log ‘msg % args’ with severity ‘ERROR’. exception
(msg, *args, **kwargs)Convenience method for logging an ERROR with exception information. field_by_name
(cls_or_self, name[, role])Return field with the given name and role. field_error
(field)return field’s error if specified in current validation exception fields_by_name
(cls_or_self, name[, role])Return a list of fields with the given name and role. form_action
()info
(msg, *args, **kwargs)Log ‘msg % args’ with severity ‘INFO’. insert_field_after
(cls_or_self, field, name)Insert the given field after the field of given name and role. insert_field_before
(cls_or_self, field, name)Insert the given field before the field of given name and role. iter_modified_fields
([editedfields, entity])return a generator on field that has been modified by the posted process_posted
()use this method to process the content posted by a simple form. it remaining_errors
()remove_field
(cls_or_self, field)Remove the given field. render
([formvalues, renderer])Render this form, using the renderer given as argument or the default according to form_renderer_id
.restore_previous_post
(sessionkey)session_key
()return the key that may be used to store / retreive data about a set_message
(submitmsg)sets a submitmsg if exists, using _cwmsgid mechanism warning
(msg, *args, **kwargs)Log ‘msg % args’ with severity ‘WARNING’. Attributes
action
autocomplete
control_fields
copy_nav_params
cssclass
cssstyle
cwtarget
domid
fieldsets_in_order
force_session_key
form_buttons
form_previous_values
previously posted values (on validation error) form_renderer_id
form_valerror
the validation error exception if any formvalues
needs_css
needs_js
needs_multipart
true if the form needs enctype=multipart/form-data onsubmit
parent_form
posting
return True if the form is being posted, False if it is being redirect_path
root_form
return the root form title
upload_title
-
__module__
= 'rql_upload.views.cwupload'¶
-
__regid__
= 'upload-form'¶
-
_fields_
= [<StringField name='upload_title' eidparam=False value='<unique>' @0x2b18ba908150>]¶
-
title
= u'Upload form'¶
-
upload_title
= <StringField name='upload_title' eidparam=False value='<unique>' @0x2b18ba908150>¶
-