Set Pilot Email Tool¶
Implementation of the set-pilot-email tool contained in sk.py.
Allows to import emails from the RESI database.
Extracting data from RESI¶
To create a html file in the proper format, login to RESI
and open the member list. Save the
page as html file and use it as input to sk.py set-pilot-email.
Note that you must use the link above and not the member list link provided in the RESI webinterface.
Interface¶
-
class
pysk.tools.SetPilotEmail(parent)¶ Set email addresses of pilots from html file.
Parameters: parent ( ToolBase) – Parent tool-
static
defaultConfiguration(config=Namespace(debug=False, force=False, logStream=<open file '<stderr>', mode 'w' at 0x7fc028efd1e0>, parseCommandLine=True, verbose=1))¶ Get Default Configuration Options
Parameters: config (object) – Input configuration. Existing attributes will be overwritten. Returns: Default configuration object
-
parseHtml(path)¶ Parse Html file containing emails and add emails to
self.emailsFormat is the same format output by RESI
Parameters: path (str) – Path to input file Returns: Number of extracted email addresses
-
updateEmails(remove=False)¶ Reset Emails of all pilots in database
Parameters: remove (bool) – If True, existing emails of pilots not listed in input file are deleted. Defaults toFalse.Returns: Number of updated records
-
static