equal
deleted
inserted
replaced
371 |
371 |
372 |
372 |
373 def check_concurrent_edition(self, formparams, eid): |
373 def check_concurrent_edition(self, formparams, eid): |
374 req = self._cw |
374 req = self._cw |
375 try: |
375 try: |
376 form_ts = datetime.fromtimestamp(float(formparams['__form_generation_time'])) |
376 form_ts = datetime.utcfromtimestamp(float(formparams['__form_generation_time'])) |
377 except KeyError: |
377 except KeyError: |
378 # Backward and tests compatibility : if no timestamp consider edition OK |
378 # Backward and tests compatibility : if no timestamp consider edition OK |
379 return |
379 return |
380 if req.execute("Any X WHERE X modification_date > %(fts)s, X eid %(eid)s", |
380 if req.execute("Any X WHERE X modification_date > %(fts)s, X eid %(eid)s", |
381 {'eid': eid, 'fts': form_ts}): |
381 {'eid': eid, 'fts': form_ts}): |