rql_upload.schema.UploadFile¶
-
class
rql_upload.schema.
UploadFile
(name=None, **kwargs)[source]¶ An entity used to upload file which may contain binary data.
Attributes
title: String (optional) a short description of the file. data: Bytes (mandatory) contains the uploaded file. data_extension: String (mandatory) the uploaded file extension. data_name: String (mandatory) the uploaded file name. data_sha1hex: String (optional) SHA1 sum of the file. 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 classexpand_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 classget_permissions
([final])get_relation
(name)Return relation definitions by name. get_relations
(name)Iterate over relations definitions that match the name
parametersinsert_relation_after
(afterrelname, name, rdef)Add rdef
relation to the class right after anotherremove_relation
(name)Remove relation from the class set_permissions
(perms)Attributes
description
meta
package
specialized_by
-
__module__
= 'rql_upload.schema'¶
-
package
= '<builtin>'¶
-