def doLicense(self): '''show the license''' if self.license_box is None: history.addLog('opening License in new window') #history.addLog('DEBUG: ' + LICENSE_FILE) lfile = resources.resource_file(LICENSE_FILE, '.') #history.addLog('DEBUG: ' + lfile) license_text = open(lfile, 'r').read() #history.addLog('DEBUG: ' + license_text) ui = plainTextEdit.TextWindow(None, 'LICENSE', license_text, self.settings) ui.setMinimumSize(700, 500) self.license_box = ui #ui.setWindowModality(QtCore.Qt.ApplicationModal) #history.addLog('DEBUG: ' + str(ui)) self.license_box.show()
def __init__(self): filename = resources.resource_file(DEFAULT_TEMPLATE_FILE) self.email_template = open(filename).read() self.keyword_dict = DEFAULT_TEMPLATE_FIELDS
# Copyright (c) 2009 - 2016, UChicago Argonne, LLC. # See LICENSE file for details. ''' Create email notices to each Reviewer describing specific assignments ''' from lxml import etree import os import agup_data import plainTextEdit import resources import xml_utility DEFAULT_TEMPLATE_FILE = resources.resource_file('email_template.txt') DEFAULT_TEMPLATE_FIELDS = dict( # these are example values PANEL_CHAIR='Pete Jemian', CC='Beverly Knott <*****@*****.**>', REVIEW_CYCLE='2015-2', PRP_DATE='2015-03-24', OTHER_COMMENTS=''' This time there are two project proposals: GUP-11111 at 5-ID GUP-22222 at 12ID We've discussed the responsibilities for reviewing project proposals. If you have any questions, call or write me. This is no PUP to review this cycle. ''',
import os, sys on_rtd = os.environ.get('READTHEDOCS', None) == 'True' if on_rtd: from mock_PyQt4 import QtCore else: from PyQt4 import QtCore from lxml import etree import agup_data import proposal import resources import topics import xml_utility XML_SCHEMA_FILE = resources.resource_file('proposals.xsd') ROOT_TAG = 'Review_list' class AGUP_Proposals_List(QtCore.QObject): ''' the list of all proposals ''' def __init__(self, agup): QtCore.QObject.__init__(self) self.agup = agup self.proposals = {} self.prop_id_list = [] self.cycle = ''
from mock_PyQt4 import QtCore else: from PyQt4 import QtCore from lxml import etree import traceback import agup_data import history import reviewer import resources import topics import xml_utility REVIEW_PANEL_TAG = 'Review_panel' AGUP_XML_SCHEMA_FILE = resources.resource_file('agup_review_session.xsd') AGUP_ROOT_TAG = 'AGUP_Review_Session' class AGUP_Reviewers_List(QtCore.QObject): ''' the list of all reviewers ''' def __init__(self, agup): QtCore.QObject.__init__(self) self.agup = agup self.reviewers = {} # .clear() self.reviewer_sort_list = []
else: from PyQt4 import QtCore import StringIO import traceback import main_window import prop_mvc_data import resources import reviewer import revu_mvc_data import tools import topics UI_FILE = 'main_window.ui' AGUP_MASTER_ROOT_TAG = 'AGUP_Review_Session' AGUP_XML_SCHEMA_FILE = resources.resource_file('agup_review_session.xsd') AGUP_MASTER_VERSION = '1.0' SUBJECT_STRENGTH_FULL = 1.0 class AGUP_Data(QtCore.QObject): ''' Complete data for a PRP review session ''' def __init__(self, parent_window = None, config = None): import settings QtCore.QObject.__init__(self) self.parent_window = parent_window self.settings = config or settings.ApplicationQSettings()