The reference to the top level application object that is being handled by quorum. This value is used across the quorum infra-structure to access flask data and capabilities.
Note
Changing this value directly should be done with care as it may create undesired results. To set/start this value use the quorum.load() function instead.
Initial loader function responsible for the overriding of the flask loading system and for the loading of configuration.
Note
This function should be called inside you main app file failure to do so may result in unexpected behavior.
Parameters: |
|
---|---|
Return type: | Application |
Returns: | The application that is used by the loaded quorum environment in case one was provided that is retrieved, otherwise the newly created one is returned instead. |
Unloads the current quorum instance, after this call no more access to the quorum facilities is allowed.
Warning
Use this function with care as it may result in unexpected behavior from a developer point of view.
Note
After the call to this method most of the functionally of quorum will become unavailable until further call to quorum.load().
Sends an email message using the provided SMTP_HOST SMTP_USER and SMTP_PASSWORD configurations.
The email message is sent under the alternative mime type so that both the plain text and the rich text (html) parts are sent in the same message.
The plain and rich arguments allow the user to process a template with the context provided by the context map.
Warning
This is a blocking call and as such the control flow may block for more that a second, if you want a non blocking (asynchronous) call please use quorum.send_mail_a().
Parameters: |
|
---|
Asynchronous call to the quorum.send_mail() function that is executed in a different thread from the current one. The currently loaded queue system is used for the sending of the email, for more information check on quorum.run_background() .
Note
The arguments to be send for this function are the same as the one present in the original quorum.send_mail() function.
Return an iterator that yields tuples of an index and an item of the