rql_upload.schema.CWUpload

class rql_upload.schema.CWUpload(name=None, **kwargs)[source]

An entity used to to store a form.

Attributes

title: String (mandatory) the name of the upload (has to be unique in the data base).
form_name: String (mandatory) the name of the form we upload.
result_data: SubjectRelation (optional) the link(s) to the uploaded file.
result_form: SubjectRelation (mandatory) the link to the form.
uploaded_by: SubjectRelation (mandatory) who has created the item.
__init__(name=None, **kwargs)

Methods

__init__([name])
add_relation(rdef[, name]) Add rdef relation to the class
expand_relation_definitions(defined, schema) schema building step 2:
expand_type_definitions(defined) Schema building step 1: register definition objects by adding them to the defined dictionnary.
extend(othermetadefcls) add all relations of othermetadefcls to the current class
get_permissions([final])
get_relation(name) Return relation definitions by name.
get_relations(name) Iterate over relations definitions that match the name parameters
insert_relation_after(afterrelname, name, rdef) Add rdef relation to the class right after another
remove_relation(name) Remove relation from the class
set_permissions(perms)

Attributes

description
meta
package
specialized_by
__module__ = 'rql_upload.schema'
package = '<builtin>'