[CalendarServer-changes] [2896] CalendarServer/branches/users/sagen/mailgateway-2881/twistedcaldav/ scheduling/scheduler.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 28 13:01:38 PDT 2008


Revision: 2896
          http://trac.macosforge.org/projects/calendarserver/changeset/2896
Author:   cdaboo at apple.com
Date:     2008-08-28 13:01:37 -0700 (Thu, 28 Aug 2008)
Log Message:
-----------
Re-order some checks to make sure all the required object properties are setup beforehand.

Modified Paths:
--------------
    CalendarServer/branches/users/sagen/mailgateway-2881/twistedcaldav/scheduling/scheduler.py

Modified: CalendarServer/branches/users/sagen/mailgateway-2881/twistedcaldav/scheduling/scheduler.py
===================================================================
--- CalendarServer/branches/users/sagen/mailgateway-2881/twistedcaldav/scheduling/scheduler.py	2008-08-28 19:56:08 UTC (rev 2895)
+++ CalendarServer/branches/users/sagen/mailgateway-2881/twistedcaldav/scheduling/scheduler.py	2008-08-28 20:01:37 UTC (rev 2896)
@@ -79,14 +79,14 @@
     
         self.method = "POST"
 
-        # Do some extra authorization checks
-        self.checkAuthorization()
-
         # Load various useful bits doing some basic checks on those
         self.loadOriginatorFromRequestHeaders()
         self.loadRecipientsFromRequestHeaders()
         yield self.loadCalendarFromRequest()
 
+        # Do some extra authorization checks
+        self.checkAuthorization()
+
         result = (yield self.doScheduling())
         returnValue(result)
 
@@ -97,15 +97,15 @@
     
         self.method = "PUT"
 
-        # Do some extra authorization checks
-        self.checkAuthorization()
-
         # Load various useful bits doing some basic checks on those
         self.originator = originator
         self.recipients = recipients
         self.calendar = calendar
         self.internal_request = internal_request
 
+        # Do some extra authorization checks
+        self.checkAuthorization()
+
         return self.doScheduling()
 
     @inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080828/07d934c6/attachment-0001.html 


More information about the calendarserver-changes mailing list