Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

principal.alternateURIs() is a tuple so needs to be iterated over.

  • Loading branch information
cyrusdaboo committed May 7, 2008
1 parent c79cf0f commit ae8eba533c26576afc9246bf336d83ac32b2e699
Showing with 3 additions and 2 deletions.
  1. +3 −2 twistedcaldav/
@@ -56,8 +56,9 @@ def accountingEnabledForPrincipal(principal):
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

0 comments on commit ae8eba5

Please sign in to comment.
You can’t perform that action at this time.