[CalendarServer-changes] [2375]
CalendarServer/branches/users/wsanchez/logging/twistedcaldav/
accounting.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed May 7 09:23:03 PDT 2008
Revision: 2375
http://trac.macosforge.org/projects/calendarserver/changeset/2375
Author: cdaboo at apple.com
Date: 2008-05-07 09:22:59 -0700 (Wed, 07 May 2008)
Log Message:
-----------
principal.alternateURIs() is a tuple so needs to be iterated over.
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/logging/twistedcaldav/accounting.py
Modified: CalendarServer/branches/users/wsanchez/logging/twistedcaldav/accounting.py
===================================================================
--- CalendarServer/branches/users/wsanchez/logging/twistedcaldav/accounting.py 2008-05-06 19:47:46 UTC (rev 2374)
+++ CalendarServer/branches/users/wsanchez/logging/twistedcaldav/accounting.py 2008-05-07 16:22:59 UTC (rev 2375)
@@ -56,8 +56,9 @@
if principal.principalURL() in enabledPrincipalURIs:
return True
- if principal.alternateURIs() in enabledPrincipalURIs:
- return True
+ for principal in principal.alternateURIs():
+ if principal in enabledPrincipalURIs:
+ return True
return False
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080507/706d5c90/attachment-0001.html
More information about the calendarserver-changes
mailing list