rql_download.entities.BaseIDownloadAdapter

class rql_download.entities.BaseIDownloadAdapter(req, **extra)[source]

Base adapter class.

Note

  • A ‘rql’ method has to be implemented in child classes.
  • We assume the database intergrity (ie. all file pathes inserted in the db exist on the file system) and thus do not check in the hooks to speed speed the search creation.

Methods

__init__(req, **extra)
actual_actions()
build_action(title, url, **kwargs)
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.
fill_menu(box, menu) add action(s) to the given submenu of the given box
html_class()
info(msg, *args, **kwargs) Log ‘msg % args’ with severity ‘INFO’.
rql() Method that return the completed RQL.
url() return the url associated with this action
warning(msg, *args, **kwargs) Log ‘msg % args’ with severity ‘WARNING’.

Attributes

category
order
submenu
__module__ = 'rql_download.entities'
__regid__ = 'rqldownload-adapters'
rql()[source]

Method that return the completed RQL.