saves all data to backend and waits until all data are written
(self)
| 75 | |
| 76 | #---------------------------------------------------------------------- |
| 77 | def syncSave(self): |
| 78 | """saves all data to backend and waits until all data are written""" |
| 79 | pyfiles = self.cache.values() |
| 80 | for pyfile in pyfiles: |
| 81 | pyfile.sync() |
| 82 | |
| 83 | pypacks = self.packageCache.values() |
| 84 | for pypack in pypacks: |
| 85 | pypack.sync() |
| 86 | |
| 87 | self.db.syncSave() |
| 88 | |
| 89 | @lock |
| 90 | def getCompleteData(self, queue=1): |