"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "EmailReminder/Anniversary.py" 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).

Anniversary.py  (email-reminder-0.8.0):Anniversary.py  (email-reminder-0.8.1)
skipping to change at line 35 skipping to change at line 35
def fillNewEvent(self, event): def fillNewEvent(self, event):
super().fillNewEvent(event) super().fillNewEvent(event)
writeXMLValue(self.document, event, 'partner_name', '') writeXMLValue(self.document, event, 'partner_name', '')
writeXMLValue(self.document, event, 'partner_email', '') writeXMLValue(self.document, event, 'partner_email', '')
def getDataInternal(self, column, row): def getDataInternal(self, column, row):
parentData = super().getDataInternal(column, row) parentData = super().getDataInternal(column, row)
if parentData: if parentData:
return parentData return parentData
elif column == 3: if column == 3:
return readXMLValue(self.events[row], 'partner_name') return readXMLValue(self.events[row], 'partner_name')
elif column == 4: if column == 4:
return readXMLValue(self.events[row], 'partner_email') return readXMLValue(self.events[row], 'partner_email')
return None return None
def setDataInternal(self, column, row, value): def setDataInternal(self, column, row, value):
if column == 3: if column == 3:
writeXMLValue(self.document, self.events[row], 'partner_name', writeXMLValue(self.document, self.events[row], 'partner_name',
value) value)
elif column == 4: elif column == 4:
if not EMAIL_REGEX.fullmatch(value): if not EMAIL_REGEX.fullmatch(value):
 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)