Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def update_vevent(self):
self.event.update_summary(get_wrapped_text(self.summary))
self.event.update_description(get_wrapped_text(self.description))
self.event.update_location(get_wrapped_text(self.location))
self.event.update_categories(get_wrapped_text(self.categories).split(','))
if self.startendeditor.changed:
self.event.update_start_end(
self.startendeditor.startdt, self.startendeditor.enddt)
if self.recurrenceeditor.changed:
rrule = self.recurrenceeditor.active
self.event.update_rrule(rrule)
if self.alarms.changed:
self.event.update_alarms(self.alarms.get_alarms())
def update_vevent(self):
self.event.update_summary(get_wrapped_text(self.summary))
self.event.update_description(get_wrapped_text(self.description))
self.event.update_location(get_wrapped_text(self.location))
self.event.update_categories(get_wrapped_text(self.categories).split(','))
if self.startendeditor.changed:
self.event.update_start_end(
self.startendeditor.startdt, self.startendeditor.enddt)
if self.recurrenceeditor.changed:
rrule = self.recurrenceeditor.active
self.event.update_rrule(rrule)
if self.alarms.changed:
self.event.update_alarms(self.alarms.get_alarms())
def update_vevent(self):
self.event.update_summary(get_wrapped_text(self.summary))
self.event.update_description(get_wrapped_text(self.description))
self.event.update_location(get_wrapped_text(self.location))
self.event.update_categories(get_wrapped_text(self.categories).split(','))
if self.startendeditor.changed:
self.event.update_start_end(
self.startendeditor.startdt, self.startendeditor.enddt)
if self.recurrenceeditor.changed:
rrule = self.recurrenceeditor.active
self.event.update_rrule(rrule)
if self.alarms.changed:
self.event.update_alarms(self.alarms.get_alarms())
def update_vevent(self):
self.event.update_summary(get_wrapped_text(self.summary))
self.event.update_description(get_wrapped_text(self.description))
self.event.update_location(get_wrapped_text(self.location))
self.event.update_categories(get_wrapped_text(self.categories).split(','))
if self.startendeditor.changed:
self.event.update_start_end(
self.startendeditor.startdt, self.startendeditor.enddt)
if self.recurrenceeditor.changed:
rrule = self.recurrenceeditor.active
self.event.update_rrule(rrule)
if self.alarms.changed:
self.event.update_alarms(self.alarms.get_alarms())
def title(self): # Window title
return 'Edit: {}'.format(get_wrapped_text(self.summary))
def changed(self):
if get_wrapped_text(self.summary) != self.event.summary:
return True
if get_wrapped_text(self.description) != self.event.description:
return True
if get_wrapped_text(self.location) != self.event.location:
return True
if get_wrapped_text(self.categories) != self.event.categories:
return True
if self.startendeditor.changed or self.calendar_chooser.changed:
return True
if self.recurrenceeditor.changed:
return True
if self.alarms.changed:
return True
return False
def changed(self):
if get_wrapped_text(self.summary) != self.event.summary:
return True
if get_wrapped_text(self.description) != self.event.description:
return True
if get_wrapped_text(self.location) != self.event.location:
return True
if get_wrapped_text(self.categories) != self.event.categories:
return True
if self.startendeditor.changed or self.calendar_chooser.changed:
return True
if self.recurrenceeditor.changed:
return True
if self.alarms.changed:
return True
return False