"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "email-reminder-editor" between
email-reminder-0.8.0.tar.gz and email-reminder-0.8.1.tar.gz

About: Email-Reminder lets define events to be reminded of by email via cronjob (with GUI).

email-reminder-editor  (email-reminder-0.8.0):email-reminder-editor  (email-reminder-0.8.1)
skipping to change at line 41 skipping to change at line 41
QAbstractItemView, QApplication, QCheckBox, QDialog, QHBoxLayout, QLabel, QAbstractItemView, QApplication, QCheckBox, QDialog, QHBoxLayout, QLabel,
QLineEdit, QMainWindow, QMessageBox, QMenuBar, QPushButton, QSpinBox, QLineEdit, QMainWindow, QMessageBox, QMenuBar, QPushButton, QSpinBox,
QTableView, QTabWidget, QToolBar, QVBoxLayout) QTableView, QTabWidget, QToolBar, QVBoxLayout)
from EmailReminder.EventList import EventList from EmailReminder.EventList import EventList
APP = QApplication(sys.argv) APP = QApplication(sys.argv)
CONFIG_FILE = '.email-reminders' CONFIG_FILE = '.email-reminders'
SEND_REMINDERS = '/usr/bin/send-reminders' SEND_REMINDERS = '/usr/bin/send-reminders'
VERSION = '0.8.0' VERSION = '0.8.1'
class EventTab: class EventTab:
def __init__(self, model): def __init__(self, model):
self.model = model self.model = model
self.table = QTableView() self.table = QTableView()
self.table.setModel(model) self.table.setModel(model)
self.table.setShowGrid(False) self.table.setShowGrid(False)
self.table.verticalHeader().setVisible(False) self.table.verticalHeader().setVisible(False)
self.table.horizontalHeader().setStretchLastSection(True) self.table.horizontalHeader().setStretchLastSection(True)
self.table.setCornerButtonEnabled(False) self.table.setCornerButtonEnabled(False)
skipping to change at line 356 skipping to change at line 356
warning_box.setIcon(QMessageBox.Warning) warning_box.setIcon(QMessageBox.Warning)
if not os.access(SEND_REMINDERS, os.X_OK): if not os.access(SEND_REMINDERS, os.X_OK):
warning_box.setText("Cannot run '%s'." % SEND_REMINDERS) warning_box.setText("Cannot run '%s'." % SEND_REMINDERS)
warning_box.setInformativeText("Check your installation.") warning_box.setInformativeText("Check your installation.")
warning_box.exec() warning_box.exec()
return return
self.events.save() self.events.save()
result = subprocess.run([SEND_REMINDERS], stdout=subprocess.PIPE, result = subprocess.run([SEND_REMINDERS], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT) stderr=subprocess.STDOUT, check=False)
if result.stdout: if result.stdout:
warning_box.setText("Error while running '%s':" % SEND_REMINDERS) warning_box.setText("Error while running '%s':" % SEND_REMINDERS)
warning_box.setInformativeText(result.stdout.decode('utf-8')) warning_box.setInformativeText(result.stdout.decode('utf-8'))
warning_box.exec() warning_box.exec()
def main(): def main():
parser = argparse.ArgumentParser(description="Simple editor for modifying " parser = argparse.ArgumentParser(description="Simple editor for modifying "
"special occasion email reminders") "special occasion email reminders")
parser.add_argument('-s', '--simulate', dest='simulate', parser.add_argument('-s', '--simulate', dest='simulate',
action='store_true', help="don't save any changes") action='store_true', help="don't save any changes")
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)