Andy Bavier | 89a9542 | 2016-11-02 14:38:39 -0400 | [diff] [blame] | 1 | import os |
| 2 | import base64 |
| 3 | from django.db.models import F, Q |
| 4 | from xos.config import Config |
| 5 | from core.models.image import Image |
| 6 | from xos.logger import observer_logger as logger |
| 7 | from synchronizers.base.syncstep import * |
| 8 | |
| 9 | class SyncImages(SyncStep): |
| 10 | provides=[Image] |
| 11 | requested_interval=0 |
| 12 | observes=Image |
| 13 | |
| 14 | # We're not sync'ing sites with L-XOS |
| 15 | # Just mark it as sync'ed |
| 16 | def sync_record(self, image): |
| 17 | image.backend_status = "0 - not sync'ed by globalxos" |
| 18 | image.save() |