module: email_mvc_view

MVC View for emails

see:http://www.saltycrane.com/blog/2008/01/pyqt-43-simple-qabstractlistmodel/
see:http://www.saltycrane.com/blog/2007/12/pyqt-43-qtableview-qabstracttablemodel/
class Assign_GUP.email_mvc_view.AGUP_Emails_View(parent=None, agup=None, settings=None, hide_email_button=True)[source]

Bases: PyQt4.QtGui.QWidget

Show the email to be sent to each Reviewer

Parameters:
  • parent (obj) – instance of main_window.AGUP_MainWindow or None
  • agup (obj) – instance of agup_data.AGUP_Data
  • settings (obj) – instance of settings.ApplicationQSettings
closeEvent(event)[source]
doOpenEmail()[source]

open the email letter in the email tool (does not work too good now)

index_to_ID(index)[source]

convert QListView index to sort_name string

on_item_clicked(index)[source]

called when changing the selected Reviewer in the list

restoreWindowGeometry()[source]

put the window back where it was

saveWindowGeometry()[source]

remember where the window was

selectFirstListItem()[source]
selectModelByIndex(curr, prev)[source]

select Reviewer for email display as referenced by QListView index

Parameters:
  • curr (index) – sort_name string of current selected reviewer
  • prev (index) – QListView index of previously selected reviewer
setModel(model)[source]
showReviewerEmail()[source]

select Reviewer for email display as referenced by self.sort_name

class Assign_GUP.email_mvc_view.Email[source]

Bases: object

data structure for sending email

send()[source]

send the email content to the default email tool

Assign_GUP.email_mvc_view.main()[source]

simple starter program to develop this code