blob: 01e285f921ab6067f4034ac14a3a0dde876e1d95 [file] [log] [blame]
Sapan Bhatia58fa9052015-09-10 11:12:04 -04001import os
2import sys
3import base64
4from django.db.models import F, Q
5from xos.config import Config
6from observer.syncstep import SyncStep
7from helloworld.models import Hello,World
8from util.logger import Logger, logging
9
10# hpclibrary will be in steps/..
11parentdir = os.path.join(os.path.dirname(__file__),"..")
12sys.path.insert(0,parentdir)
13
14logger = Logger(level=logging.INFO)
15
16class SyncWorld(SyncStep):
17 provides=[World]
18 observes=World
19 requested_interval=0
20
21 def sync_record(self, record):
22 open('/tmp/hello-synchronizer','w').write(record.name)
23
24 def delete_record(self, m):
25 return