[CalendarServer-changes] [9521] CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/ test_sharing.py
source_changes at macosforge.org
source_changes at macosforge.org
Fri Aug 3 09:48:59 PDT 2012
Revision: 9521
http://trac.macosforge.org/projects/calendarserver/changeset/9521
Author: gaya at apple.com
Date: 2012-08-03 09:48:59 -0700 (Fri, 03 Aug 2012)
Log Message:
-----------
fix for latest sharing.py
Modified Paths:
--------------
CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_sharing.py
Modified: CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_sharing.py
===================================================================
--- CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_sharing.py 2012-08-03 16:43:06 UTC (rev 9520)
+++ CalendarServer/branches/users/gaya/inviteclean/twistedcaldav/test/test_sharing.py 2012-08-03 16:48:59 UTC (rev 9521)
@@ -25,7 +25,7 @@
from twistedcaldav import customxml
from twistedcaldav.config import config
from twistedcaldav.test.util import HomeTestCase, norequest
-from twistedcaldav.sharing import SharedCollectionMixin, SHARETYPE_DIRECT, WikiDirectoryService
+from twistedcaldav.sharing import SharedCollectionMixin, WikiDirectoryService
from twistedcaldav.resource import CalDAVResource
from txdav.common.datastore.test.util import buildStore, StubNotifierFactory
@@ -566,15 +566,11 @@
return True
class StubShare(object):
- def __init__(self):
- self.sharetype = SHARETYPE_DIRECT
- self.hosturl = "/wikifoo"
-
- def shareType(self):
- return self.shareType
+ def direct(self):
+ return True
- def hostURL(self):
- return self.hosturl
+ def url(self):
+ return "/wikifoo"
def uid(self):
return "012345"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120803/4db32f37/attachment.html>
More information about the calendarserver-changes
mailing list