blob: 2550104a92d572c430110968e858465a72b1960d [file] [log] [blame]
Sapan Bhatia24836f12013-08-27 10:16:05 -04001import os
2import base64
Sapan Bhatia22e0ffe2013-10-02 01:12:10 -04003import hashlib
Tony Mackae7f30c2013-09-25 12:46:50 -04004from django.db.models import F, Q
Sapan Bhatia24836f12013-08-27 10:16:05 -04005from planetstack.config import Config
Sapan Bhatia04c94ad2013-09-02 18:00:28 -04006from observer.openstacksyncstep import OpenStackSyncStep
7from core.models.user import User
Sapan Bhatia24836f12013-08-27 10:16:05 -04008
9class SyncUsers(OpenStackSyncStep):
Tony Mackce79de02013-09-24 10:12:33 -040010 provides=[User]
11 requested_interval=0
Tony Mack66646d52013-09-24 21:47:12 -040012
13 def fetch_pending(self):
14 return User.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
15
Tony Mackce79de02013-09-24 10:12:33 -040016 def sync_record(self, user):
Tony Mack278f9952014-04-07 19:48:09 -040017 #user.save()
18 pass