Modified: CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py (9334 => 9335)
--- CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py 2012-06-06 00:35:42 UTC (rev 9334)
+++ CalendarServer/trunk/twistedcaldav/directory/calendaruserproxy.py 2012-06-06 00:37:39 UTC (rev 9335)
@@ -788,6 +788,10 @@
@inlineCallbacks
def _maybeNormalizeUUIDs(self):
+ """
+ Normalize the UUIDs in the proxy database so they correspond to the
+ normalized UUIDs in the main calendar database.
+ """
alreadyDone = yield self._db_value_for_sql(
"select VALUE from CALDAV where KEY = 'UUIDS_NORMALIZED'"
)
@@ -876,7 +880,7 @@
"""
def __init__(self, dbpath):
-
+
ADBAPISqliteMixin.__init__(self)
ProxyDB.__init__(self, "Proxies", "sqlite3", (fullServerPath(config.DataRoot, dbpath),))
@@ -886,12 +890,23 @@
"""
def __init__(self, host, database, user=None, password=None, dbtype=None):
-
+
ADBAPIPostgreSQLMixin.__init__(self, )
ProxyDB.__init__(self, "Proxies", "pgdb", (), host=host, database=database, user=user, password=password,)
if dbtype:
ProxyDB.schema_type = dbtype
+
+ def _maybeNormalizeUUIDs(self):
+ """
+ Don't bother normalizing UUIDs for postgres yet; users of postgres
+ databases for proxy data are even less likely to have UUID
+ case-normalization issues than the general population.
+ """
+ return succeed(None)
+
+
+
##
# Utilities
##