[CalendarServer-changes] [8620] CalDAVClientLibrary/trunk/caldavclientlibrary/client
source_changes at macosforge.org
source_changes at macosforge.org
Wed Feb 1 09:53:05 PST 2012
Revision: 8620
http://trac.macosforge.org/projects/calendarserver/changeset/8620
Author: cdaboo at apple.com
Date: 2012-02-01 09:53:05 -0800 (Wed, 01 Feb 2012)
Log Message:
-----------
When the user is changed, also reset the cached principal.
Modified Paths:
--------------
CalDAVClientLibrary/trunk/caldavclientlibrary/client/account.py
CalDAVClientLibrary/trunk/caldavclientlibrary/client/clientsession.py
Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/client/account.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/client/account.py 2012-02-01 02:54:37 UTC (rev 8619)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/client/account.py 2012-02-01 17:53:05 UTC (rev 8620)
@@ -1,5 +1,5 @@
##
-# Copyright (c) 2006-2010 Apple Inc. All rights reserved.
+# Copyright (c) 2006-2012 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@
def setUserPswd(self, user, pswd):
self.session.setUserPswd(user, pswd)
+ self.principal = principalCache.getPrincipal(self.session, self.session.principalPath)
def getPrincipal(self, path=None, refresh=False):
if path:
Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/client/clientsession.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/client/clientsession.py 2012-02-01 02:54:37 UTC (rev 8619)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/client/clientsession.py 2012-02-01 17:53:05 UTC (rev 8620)
@@ -1,5 +1,5 @@
##
-# Copyright (c) 2006-2011 Apple Inc. All rights reserved.
+# Copyright (c) 2006-2012 Apple Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -105,6 +105,7 @@
self.user = user
self.pswd = pswd
self.authorization = None
+ self._discoverPrincipal()
def testResource(self, rurl):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120201/c76b2dfb/attachment.html>
More information about the calendarserver-changes
mailing list