示例#1
0
文件: sync.py 项目: bstrebel/PySync
 def map_item(self, ref=None):
     if isinstance(ref, OxTask):
         return {
             'id': ref.id,
             'key': ref[self._key_attribute],
             'time': ref.timestamp
         }
     else:
         return Sync.map_item(self, ref)
示例#2
0
文件: sync.py 项目: bstrebel/PySync
 def map_item(self, ref=None):
     if isinstance(ref, ToodledoTask):
         # return {'id': ref.id, 'key': ref[self._key_attribute], 'time': ref.modified * 1000}
         return {
             'id': ref._id,
             'key': ref[self._key_attribute],
             'time': ref._time
         }
     else:
         return Sync.map_item(self, ref)
示例#3
0
文件: sync.py 项目: bstrebel/PySync
 def map_item(self, ref=None):
     if isinstance(ref, OxTask):
         return {'id': ref.id, 'key': ref[self._key_attribute], 'time': ref.timestamp}
     else:
         return Sync.map_item(self, ref)
示例#4
0
文件: sync.py 项目: bstrebel/PySync
 def map_item(self, ref=None):
     if isinstance(ref, ToodledoTask):
         # return {'id': ref.id, 'key': ref[self._key_attribute], 'time': ref.modified * 1000}
         return {'id': ref._id, 'key': ref[self._key_attribute], 'time': ref._time}
     else:
         return Sync.map_item(self, ref)