[CalendarServer-changes] [5715] CalendarServer/trunk/twistedcaldav/accounting.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 10 08:53:44 PDT 2010


Revision: 5715
          http://trac.macosforge.org/projects/calendarserver/changeset/5715
Author:   sagen at apple.com
Date:     2010-06-10 08:53:42 -0700 (Thu, 10 Jun 2010)
Log Message:
-----------
Append ".txt" to accounting log files so that Finder can "QuickLook" them.

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/accounting.py

Modified: CalendarServer/trunk/twistedcaldav/accounting.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/accounting.py	2010-06-10 15:17:29 UTC (rev 5714)
+++ CalendarServer/trunk/twistedcaldav/accounting.py	2010-06-10 15:53:42 UTC (rev 5715)
@@ -113,12 +113,14 @@
             logFilename = "%s-01" % (logFilename,)
             if tag:
                 logFilename += " (%s)" % (tag,)
+            logFilename += ".txt"
         else:
             index = 1
             while True:
                 path = "%s-%02d" % (logFilename, index)
                 if tag:
                     path += " (%s)" % (tag,)
+                path += ".txt"
                 if not os.path.isfile(os.path.join(logRoot, path)):
                     logFilename = path
                     break
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100610/2f3a51d2/attachment.html>


More information about the calendarserver-changes mailing list