Exemplo n.º 1
0
 def _single_update(self, obj, dchanges):
     dchanges = dchanges.copy()
     if dchanges.get('remote_id'):
         dchanges['hashcode'] = Event.calc_hashcode(**dchanges)
     return super(EventDjangoStore, self)._single_update(obj, dchanges)
Exemplo n.º 2
0
 def _single_create(self, dobj):
     dobj = dobj.copy()
     dobj['hashcode'] = Event.calc_hashcode(**dobj)
     dobj['account'] = self.account
     return super(EventDjangoStore, self)._single_create(dobj)
Exemplo n.º 3
0
 def _single_create(self, dobj):
     dobj = dobj.copy()
     dobj['hashcode'] = Event.calc_hashcode(**dobj)
     dobj['account'] = self.account
     return super(EventDjangoStore, self)._single_create(dobj)
Exemplo n.º 4
0
 def _single_update(self, obj, dchanges):
     dchanges = dchanges.copy()
     if dchanges.get('remote_id'):
         dchanges['hashcode'] = Event.calc_hashcode(**dchanges)
     return super(EventDjangoStore, self)._single_update(obj, dchanges)