module: editor_email_template

edit the template to send emails, include editor for keyword substitutions

Provide tools to:

  • manage list of substitution keywords
  • manage values of substitution keywords
  • display as read-only those substitution keywords defined for each reviewer
  • provide editor for email template letter
  • show example email with subsitutions applied

The email template is stored in the project file.

The substitution keyword dictionary is (at present) stored in the settings file.

class Assign_GUP.editor_email_template.Editor(parent, agup, settings=None)[source]

Bases: PyQt4.QtGui.QWidget

closeEvent(event)[source]
doCurrentItemChanged(widget_item)[source]
doKeywordTextChanged(*args, **kw)[source]
doMerge()[source]
doTemplateTextChanged(*args, **kw)[source]
onAdd(*args, **kw)[source]

add keyword substitution

Keywords are allowed to start with a letter or “_”, then can have numbers also. All letters must be uppercase.

Substitutions may be any text, including any white space.

Strings must have a minimum length of MINIMUM_KEY_LENGTH (3) characters.

onDelete(*args, **kw)[source]

delete the selected key

check that self.current_key is not None then delete that one and reset to next in list

restoreSplitterDetails()[source]

put the splitters back where they were

restoreWindowGeometry()[source]

put the window back where it was

saveSplitterDetails()[source]

remember where the splitters were

saveWindowGeometry()[source]

remember where the window was

selectFirstKeyword()[source]