[CalendarServer-changes] [13155] CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/util. py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 4 09:32:37 PDT 2014
Revision: 13155
http://trac.calendarserver.org//changeset/13155
Author: sagen at apple.com
Date: 2014-04-04 09:32:37 -0700 (Fri, 04 Apr 2014)
Log Message:
-----------
actually remove the old normalizationLookup
Modified Paths:
--------------
CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/util.py
Modified: CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/util.py
===================================================================
--- CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/util.py 2014-04-04 16:31:48 UTC (rev 13154)
+++ CalendarServer/branches/users/sagen/move2who-4/twistedcaldav/util.py 2014-04-04 16:32:37 UTC (rev 13155)
@@ -23,7 +23,6 @@
from hashlib import md5, sha1
from twisted.internet import ssl, reactor
-# from twisted.internet.defer import inlineCallbacks, returnValue
from twisted.web import client
from twisted.python import failure
from twext.python.log import Logger
@@ -496,42 +495,7 @@
-# @inlineCallbacks
-# def normalizationLookup(cuaddr, recordFunction, config):
-# """
-# Lookup function to be passed to ical.normalizeCalendarUserAddresses.
-# Returns a tuple of (Full name C{str}, guid C{UUID}, and calendar user address list C{str})
-# for the given cuaddr. The recordFunction is called to retrieve the
-# record for the cuaddr.
-# """
-# try:
-# record = yield recordFunction(cuaddr)
-# except Exception, e:
-# log.debug("Lookup of %s failed: %s" % (cuaddr, e))
-# record = None
-# if record is None:
-# returnValue((None, None, None))
-# else:
-
-# # RFC5545 syntax does not allow backslash escaping in
-# # parameter values. A double-quote is thus not allowed
-# # in a parameter value except as the start/end delimiters.
-# # Single quotes are allowed, so we convert any double-quotes
-# # to single-quotes.
-# fullName = record.displayName.replace('"', "'").encode("utf-8")
-# cuas = set(
-# [cua.encode("utf-8") for cua in record.calendarUserAddresses]
-# )
-# try:
-# guid = record.guid
-# except AttributeError:
-# guid = None
-
-# returnValue((fullName, guid, cuas))
-
-
-
def bestAcceptType(accepts, allowedTypes):
"""
Given a set of Accept headers and the set of types the server can return, determine the best choice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140404/89861711/attachment.html>
More information about the calendarserver-changes
mailing list