Esempio n. 1
0
    def changed(self, sync):

        if not Sync.changed(self, sync):

            # check extra attributes
            sync_extra = sync.get('extra')

            item = self._items.get(self._key)
            item_extra = item.get('extra')
            self.logger.debug(u'%s: Checking extra attributes %s' % (self.class_name, item_extra))

            if sync_extra is not None and item_extra is not None:
                if sync_extra.get('reminderTime') == item_extra.get('reminderTime'):
                    if sync_extra.get('reminderDoneTime') == item_extra.get('reminderDoneTime'):
                        if EnClientSync.compare_tags(sync_extra.get('tags'), item_extra.get('tags')):
                            return False
                        else:
                            self.logger.debug(u'%s: Tags changed' % (self.class_name))
                    else:
                        self.logger.debug(u'%s: Reminder done time changed' % (self.class_name))
                else:
                    self.logger.debug(u'%s: Reminder time changed' % (self.class_name))
        return True
Esempio n. 2
0
 def changed(self, sync):
     return Sync.changed(self, sync)
Esempio n. 3
0
 def changed(self, sync):
     return Sync.changed(self, sync)