Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def refresh_sync_item(self, sync_item, **kwargs):
- """
- Refresh a sync item, ignoring all cached details and retrieving
- authorative data from the source systems again.
- """
- self._cache.delete_item(sync_item)
- kwargs = copy(kwargs)
- ...
- fill out contstructor params here
- ...
- new_sync_item = self.create(**kwargs)
- sync_item.importer = new_sync_item.importer
- sync_item.exporter = new_sync_item.exporter
- self._cache.store_item(sync_item)
Add Comment
Please, Sign In to add comment