[CalendarServer-changes] [10603] CalendarServer/branches/users/gaya/sharedgroups/twistedcaldav/ sharing.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Jan 30 13:41:29 PST 2013


Revision: 10603
          http://trac.calendarserver.org//changeset/10603
Author:   gaya at apple.com
Date:     2013-01-30 13:41:29 -0800 (Wed, 30 Jan 2013)
Log Message:
-----------
only look for ownerGroup in owned home children

Modified Paths:
--------------
    CalendarServer/branches/users/gaya/sharedgroups/twistedcaldav/sharing.py

Modified: CalendarServer/branches/users/gaya/sharedgroups/twistedcaldav/sharing.py
===================================================================
--- CalendarServer/branches/users/gaya/sharedgroups/twistedcaldav/sharing.py	2013-01-30 00:27:44 UTC (rev 10602)
+++ CalendarServer/branches/users/gaya/sharedgroups/twistedcaldav/sharing.py	2013-01-30 21:41:29 UTC (rev 10603)
@@ -1036,11 +1036,12 @@
             share = Share(shareeHomeChild=child, sharerHomeChildOrGroup=sharerHomeChild, url=url)
         else:
             for sharerHomeChild in (yield child.ownerHome().children()):
-                sharedGroup = yield sharerHomeChild.objectResourceWithID(child._resourceID)
-                if sharedGroup:
-                    url = joinURL(sharerHomeCollection.url(), sharerHomeChild.name(), sharedGroup.name())
-                    share = Share(shareeHomeChild=child, sharerHomeChildOrGroup=sharedGroup, url=url)
-                    break
+                if sharerHomeChild.owned():
+                    sharedGroup = yield sharerHomeChild.objectResourceWithID(child._resourceID)
+                    if sharedGroup:
+                        url = joinURL(sharerHomeCollection.url(), sharerHomeChild.name(), sharedGroup.name())
+                        share = Share(shareeHomeChild=child, sharerHomeChildOrGroup=sharedGroup, url=url)
+                        break
 
         returnValue(share)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130130/b0740fbb/attachment.html>


More information about the calendarserver-changes mailing list