[CalendarServer-changes] [9080] CalendarServer/branches/users/glyph/ipv6-client/calendarserver/ platform/darwin/wiki.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Apr 13 11:46:07 PDT 2012
Revision: 9080
http://trac.macosforge.org/projects/calendarserver/changeset/9080
Author: glyph at apple.com
Date: 2012-04-13 11:46:07 -0700 (Fri, 13 Apr 2012)
Log Message:
-----------
change connectTCP to GAIEndpoint in calendarserver.platform.darwin.wiki
Modified Paths:
--------------
CalendarServer/branches/users/glyph/ipv6-client/calendarserver/platform/darwin/wiki.py
Modified: CalendarServer/branches/users/glyph/ipv6-client/calendarserver/platform/darwin/wiki.py
===================================================================
--- CalendarServer/branches/users/glyph/ipv6-client/calendarserver/platform/darwin/wiki.py 2012-04-13 18:46:02 UTC (rev 9079)
+++ CalendarServer/branches/users/glyph/ipv6-client/calendarserver/platform/darwin/wiki.py 2012-04-13 18:46:07 UTC (rev 9080)
@@ -14,10 +14,15 @@
# limitations under the License.
##
+
from twext.python.log import Logger
+from twext.internet.gaiendpoint import GAIEndpoint
+from twext.internet.adaptendpoint import connect
+
from twisted.web.client import HTTPPageGetter, HTTPClientFactory
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks, returnValue
+
import json
log = Logger()
@@ -83,7 +88,7 @@
"""
factory = HTTPClientFactory(url)
factory.protocol = HTTPPageGetter
- reactor.connectTCP(host, port, factory)
+ connect(GAIEndpoint(reactor, host, port), factory)
return factory.deferred
class WebAuthError(RuntimeError):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120413/c421e6f1/attachment.html>
More information about the calendarserver-changes
mailing list