rql_download.schema.CWSearch

class rql_download.schema.CWSearch(name=None, **kwargs)[source]

An entity used to save a search which may contains resources on the server file system.

Attributes

title: String (mandatory) a short description of the file.
path: String (mandatory) the rql request that will be saved.
expiration_data: Date (mandatory) the expiration date of the current search.
result: SubjectRelation (mandatory) a json file with all the server resources associated with the current search - {“rql”: rql, “files”: [], “nonexistent-files”: []}
rset: SubjectRelation (mandatory) the result set associated with the current search.
rset_type: String (optional, default ‘jsonexport’) the type of the rset.

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_download.schema'
package = '<builtin>'