[CalendarServer-changes] [1170] CalendarServer/branches/users/cdaboo/security-1150/twistedcaldav/tap .py

source_changes at macosforge.org source_changes at macosforge.org
Mon Feb 12 16:30:41 PST 2007


Revision: 1170
          http://trac.macosforge.org/projects/calendarserver/changeset/1170
Author:   wsanchez at apple.com
Date:     2007-02-12 16:30:41 -0800 (Mon, 12 Feb 2007)

Log Message:
-----------
Pretty sure that you want to raise, not just instantiate, the error.

Modified Paths:
--------------
    CalendarServer/branches/users/cdaboo/security-1150/twistedcaldav/tap.py

Modified: CalendarServer/branches/users/cdaboo/security-1150/twistedcaldav/tap.py
===================================================================
--- CalendarServer/branches/users/cdaboo/security-1150/twistedcaldav/tap.py	2007-02-13 00:29:58 UTC (rev 1169)
+++ CalendarServer/branches/users/cdaboo/security-1150/twistedcaldav/tap.py	2007-02-13 00:30:41 UTC (rev 1170)
@@ -208,7 +208,7 @@
     def securityCheck(self, path, description, fail=False, permissions=None, uname=None, gname=None):
         def raiseOrPrint(txt):
             if fail:
-                ConfigurationError(txt)
+                raise ConfigurationError(txt)
             else:
                 print "WARNING: %s" % (txt,)
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20070212/2467efac/attachment.html


More information about the calendarserver-changes mailing list