[CalendarServer-changes] [187]
CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 22 11:43:06 PDT 2006
Revision: 187
http://trac.macosforge.org/projects/calendarserver/changeset/187
Author: cdaboo at apple.com
Date: 2006-09-22 11:43:06 -0700 (Fri, 22 Sep 2006)
Log Message:
-----------
Remove these.
Removed Paths:
-------------
CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.pyhton.versions.patch
CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.dav.static
Deleted: CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.pyhton.versions.patch
===================================================================
--- CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.pyhton.versions.patch 2006-09-22 18:13:38 UTC (rev 186)
+++ CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.pyhton.versions.patch 2006-09-22 18:43:06 UTC (rev 187)
@@ -1,13 +0,0 @@
-Index: twisted/python/versions.py
-===================================================================
---- twisted/python/versions.py (revision 18219)
-+++ twisted/python/versions.py (working copy)
-@@ -91,7 +91,7 @@
- mod = sys.modules.get(self.package)
- if mod:
- rev = os.popen("svnversion %r" % (os.path.dirname(mod.__file__),)).read()
-- return rev
-+ return rev.replace("\n", "")
-
- def _formatSVNVersion(self):
- ver = self._getSVNVersion()
Deleted: CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.dav.static
===================================================================
--- CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.dav.static 2006-09-22 18:13:38 UTC (rev 186)
+++ CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.dav.static 2006-09-22 18:43:06 UTC (rev 187)
@@ -1,55 +0,0 @@
-Index: twisted/web2/dav/static.py
-===================================================================
---- twisted/web2/dav/static.py (revision 18219)
-+++ twisted/web2/dav/static.py (working copy)
-@@ -98,6 +98,50 @@
- return succeed(davPrivilegeSet)
-
- ##
-+ # Quota
-+ ##
-+
-+ def quotaSize(self, request):
-+ """
-+ Get the size of this resource.
-+ TODO: Take into account size of dead-properties. Does stat
-+ include xattrs size?
-+
-+ @return: an L{Deferred} with a C{int} result containing the size of the resource.
-+ """
-+ if self.isCollection():
-+ def walktree(top):
-+ """
-+ Recursively descend the directory tree rooted at top,
-+ calling the callback function for each regular file
-+
-+ @param top: L{FilePath} for the directory to walk.
-+ """
-+
-+ total = 0
-+ for f in top.listdir():
-+ child = top.child(f)
-+ if child.isdir():
-+ # It's a directory, recurse into it
-+ result = waitForDeferred(walktree(child))
-+ yield result
-+ total += result.getResult()
-+ elif child.isfile():
-+ # It's a file, call the callback function
-+ total += child.getsize()
-+ else:
-+ # Unknown file type, print a message
-+ pass
-+
-+ yield total
-+
-+ walktree = deferredGenerator(walktree)
-+
-+ return walktree(self.fp)
-+ else:
-+ return succeed(self.fp.getsize())
-+
-+ ##
- # Workarounds for issues with File
- ##
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20060922/fdf3f4f2/attachment.html
More information about the calendarserver-changes
mailing list