rql_download.hooks.LaunchTwistedFTPServer¶
-
class
rql_download.hooks.
LaunchTwistedFTPServer
(req, event, **kwargs)[source]¶ On startup launch the twisted sftp server.
If the option ‘start_sftp_server’ is set to True in the configuration file execute the the ‘twistedserver/main.py’ script to start the sftp server.
Methods
__init__
(req, event, **kwargs)check_events
()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. filterable_selectors
(*args, **kwargs)info
(msg, *args, **kwargs)Log ‘msg % args’ with severity ‘INFO’. warning
(msg, *args, **kwargs)Log ‘msg % args’ with severity ‘WARNING’. Attributes
category
eidfrom
eidto
entity
events
known_args
order
repo
rtype
-
__call__
()[source]¶ Start the sftp server when starting the instance if the ‘start_sftp_server’ option is set to True.
-
__module__
= 'rql_download.hooks'¶
-
__regid__
= 'rqldownload.launch_twisted_server'¶
-
events
= ('server_startup',)¶
-