backend.globaleaks.utils.templating

Module Contents

Functions

indent(n=1)
indent_text(text, n=1) Add n * 2 space as indentation to each of the non empty lines of the provided text
backend.globaleaks.utils.templating.node_keywords = ['{NodeName}', '{TorSite}', '{HTTPSSite}', '{TorUrl}', '{HTTPSUrl}', '{Site}', '{Url}', '{DocumentationUrl}', '{LoginUrl}'][source]
backend.globaleaks.utils.templating.context_keywords = ['{ContextName}'][source]
backend.globaleaks.utils.templating.user_keywords = ['{RecipientName}'][source]
backend.globaleaks.utils.templating.tip_keywords = ['{TipID}', '{TipNum}', '{TipLabel}', '{TipStatus}', '{EventTime}', '{SubmissionDate}', '{QuestionnaireAnswers}', '{Comments}', '{Messages}'][source]
backend.globaleaks.utils.templating.file_keywords = ['{FileName}', '{FileSize}'][source]
backend.globaleaks.utils.templating.export_message_keywords = ['{Author}', '{Content}'][source]
backend.globaleaks.utils.templating.expiration_summary_keywords = ['{ExpiringSubmissionCount}', '{EarliestExpirationDate}'][source]
backend.globaleaks.utils.templating.admin_pgp_alert_keywords = ['{PGPKeyInfoList}'][source]
backend.globaleaks.utils.templating.user_pgp_alert_keywords = ['{PGPKeyInfo}'][source]
backend.globaleaks.utils.templating.admin_anomaly_keywords = ['{AnomalyDetailDisk}', '{AnomalyDetailActivities}', '{ActivityAlarmLevel}', '{ActivityDump}', '{FreeMemory}', '{TotalMemory}'][source]
backend.globaleaks.utils.templating.https_expr_keywords = ['{ExpirationDate}'][source]
backend.globaleaks.utils.templating.software_update_keywords = ['{InstalledVersion}', '{LatestVersion}', '{ChangeLogUrl}', '{UpdateGuideUrl}'][source]
backend.globaleaks.utils.templating.user_credentials_keywords = ['{Role}', '{Username}', '{Password}'][source]
backend.globaleaks.utils.templating.platform_signup_keywords = ['{RecipientName}', '{ActivationUrl}', '{ExpirationDate}', '{Name}', '{Surname}', '{Email}', '{UseCase}', '{Language}', '{AdminCredentials}', '{RecipientCredentials}'][source]
backend.globaleaks.utils.templating.email_validation_keywords = ['{RecipientName}', '{NewEmailAddress}'][source]
backend.globaleaks.utils.templating.password_reset_validation_keywords = ['{RecipientName}', '{Username}'][source]
backend.globaleaks.utils.templating.identity_access_request_keywords = ['{RecipientName}', '{TipNum}'][source]
backend.globaleaks.utils.templating.two_factor_auth_keywords = ['{AuthCode}'][source]
backend.globaleaks.utils.templating.indent(n=1)[source]
backend.globaleaks.utils.templating.indent_text(text, n=1)[source]

Add n * 2 space as indentation to each of the non empty lines of the provided text

class backend.globaleaks.utils.templating.Keyword(data)[source]

Bases: object

keyword_list = [][source]
data_keys = [][source]
class backend.globaleaks.utils.templating.NodeKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.Keyword

keyword_list[source]
data_keys = ['node', 'notification'][source]
NodeName(self)[source]
TorSite(self)[source]
HTTPSSite(self)[source]
Site(self)[source]
UrlPath(self)[source]
Url(self)[source]
TorUrl(self)[source]
HTTPSUrl(self)[source]
DocumentationUrl(self)[source]
LoginUrl(self)[source]
class backend.globaleaks.utils.templating.UserKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.Keyword

keyword_list[source]
data_keys = ['user'][source]
RecipientName(self)[source]
class backend.globaleaks.utils.templating.UserNodeKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.NodeKeyword, backend.globaleaks.utils.templating.UserKeyword

keyword_list[source]
data_keys[source]
class backend.globaleaks.utils.templating.ContextKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.Keyword

keyword_list[source]
data_keys = ['context'][source]
ContextName(self)[source]
class backend.globaleaks.utils.templating.TipKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword, backend.globaleaks.utils.templating.ContextKeyword

keyword_list[source]
data_keys[source]
dump_field_entry(self, output, field, entry, indent_n)[source]
dump_fields(self, output, fields, answers, indent_n)[source]
dump_questionnaire_answers(self, questionnaire, answers)[source]
dump_messages(self, messages)[source]
TipID(self)[source]
UrlPath(self)[source]
TipNum(self)[source]
TipLabel(self)[source]
TipStatus(self)[source]
EventTime(self)[source]
SubmissionDate(self)[source]
QuestionnaireAnswers(self)[source]
Comments(self)[source]
Messages(self)[source]
class backend.globaleaks.utils.templating.CommentKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.TipKeyword

data_keys[source]
EventTime(self)[source]
class backend.globaleaks.utils.templating.MessageKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.TipKeyword

data_keys[source]
EventTime(self)[source]
class backend.globaleaks.utils.templating.FileKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.TipKeyword

keyword_list[source]
data_keys[source]
FileName(self)[source]
EventTime(self)[source]
FileSize(self)[source]
class backend.globaleaks.utils.templating.ExportMessageKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.TipKeyword

keyword_list[source]
data_keys[source]
Author(self)[source]
Content(self)[source]
EventTime(self)[source]
class backend.globaleaks.utils.templating.ExpirationSummaryKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
ExpiringSubmissionCount(self)[source]
EarliestExpirationDate(self)[source]
UrlPath(self)[source]
class backend.globaleaks.utils.templating.AdminPGPAlertKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
PGPKeyInfoList(self)[source]
class backend.globaleaks.utils.templating.PGPAlertKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
PGPKeyInfo(self)[source]
class backend.globaleaks.utils.templating.AnomalyKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
AnomalyDetailDisk(self)[source]
AnomalyDetailActivities(self)[source]
ActivityAlarmLevel(self)[source]
ActivityDump(self)[source]
FreeMemory(self)[source]
TotalMemory(self)[source]
class backend.globaleaks.utils.templating.CertificateExprKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
ExpirationDate(self)[source]
UrlPath(self)[source]
class backend.globaleaks.utils.templating.SoftwareUpdateKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
LatestVersion(self)[source]
InstalledVersion(self)[source]
ChangeLogUrl(self)[source]
UpdateGuideUrl(self)[source]
class backend.globaleaks.utils.templating.UserCredentials(data)[source]

Bases: backend.globaleaks.utils.templating.Keyword

keyword_list[source]
data_keys = ['role', 'username', 'password'][source]
Role(self)[source]
Username(self)[source]
Password(self)[source]
class backend.globaleaks.utils.templating.PlatformSignupKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.NodeKeyword

keyword_list[source]
data_keys[source]
TorSite(self)[source]
HTTPSSite(self)[source]
Site(self)[source]
RecipientName(self)[source]
ActivationUrl(self)[source]
LoginUrl(self)[source]
ExpirationDate(self)[source]
Name(self)[source]
Email(self)[source]
UseCase(self)[source]
Language(self)[source]
AdminCredentials(self)[source]
RecipientCredentials(self)[source]
class backend.globaleaks.utils.templating.AdminPlatformSignupKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.PlatformSignupKeyword

RecipientName(self)[source]
class backend.globaleaks.utils.templating.EmailValidationKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
NewEmailAddress(self)[source]
UrlPath(self)[source]
class backend.globaleaks.utils.templating.PasswordResetValidation(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
Username(self)[source]
UrlPath(self)[source]
class backend.globaleaks.utils.templating.AccountActivation(data)[source]

Bases: backend.globaleaks.utils.templating.PasswordResetValidation

UrlPath(self)[source]
class backend.globaleaks.utils.templating.IdentityAccessRequestKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.UserNodeKeyword

keyword_list[source]
data_keys[source]
TipNum(self)[source]
UrlPath(self)[source]
class backend.globaleaks.utils.templating.TwoFactorAuthKeyword(data)[source]

Bases: backend.globaleaks.utils.templating.NodeKeyword

keyword_list[source]
data_keys = ['authcode'][source]
AuthCode(self)[source]
backend.globaleaks.utils.templating.supported_template_types[source]
class backend.globaleaks.utils.templating.Templating[source]

Bases: object

format_template(self, raw_template, data)[source]
get_mail_subject_and_body(self, data)[source]