[CalendarServer-changes] [7023] CalendarServer/branches/users/glyph/dalify/txdav/caldav/datastore/ sql.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Feb 16 07:10:27 PST 2011


Revision: 7023
          http://trac.macosforge.org/projects/calendarserver/changeset/7023
Author:   glyph at apple.com
Date:     2011-02-16 07:10:23 -0800 (Wed, 16 Feb 2011)
Log Message:
-----------
Set MODIFIED on Update.  To do: figure out how to unit test for database-originated timestamps.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/dalify/txdav/caldav/datastore/sql.py

Modified: CalendarServer/branches/users/glyph/dalify/txdav/caldav/datastore/sql.py
===================================================================
--- CalendarServer/branches/users/glyph/dalify/txdav/caldav/datastore/sql.py	2011-02-16 14:43:05 UTC (rev 7022)
+++ CalendarServer/branches/users/glyph/dalify/txdav/caldav/datastore/sql.py	2011-02-16 15:10:23 UTC (rev 7023)
@@ -526,6 +526,7 @@
                 yield Insert(values, Return=(
                     co.RESOURCE_ID, co.CREATED, co.MODIFIED)).on(self._txn))[0]
         else:
+            values[co.MODIFIED] = utcNowSQL
             self._modified = (
                 yield Update(values, Return=co.MODIFIED,
                              Where=co.RESOURCE_ID == self._resourceID
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110216/31105248/attachment.html>


More information about the calendarserver-changes mailing list