[CalendarServer-changes] [7599] CalendarServer/trunk/calendarserver/tools/dbinspect.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 16 07:08:32 PDT 2011
Revision: 7599
http://trac.macosforge.org/projects/calendarserver/changeset/7599
Author: cdaboo at apple.com
Date: 2011-06-16 07:08:30 -0700 (Thu, 16 Jun 2011)
Log Message:
-----------
Include a little more information in event by uid data.
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/dbinspect.py
Modified: CalendarServer/trunk/calendarserver/tools/dbinspect.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/dbinspect.py 2011-06-15 00:26:26 UTC (rev 7598)
+++ CalendarServer/trunk/calendarserver/tools/dbinspect.py 2011-06-16 14:08:30 UTC (rev 7599)
@@ -263,11 +263,15 @@
uid = raw_input("UID: ")
rows = yield self.getData(txn, uid)
if rows:
- for owner, calendar, data in rows:
+ for owner, calendar, resource, created, modified, data in rows:
record = txn._directory.recordWithGUID(owner)
shortname = record.shortNames[0] if record else "-"
table = tables.Table()
- table.addRow((shortname, calendar,))
+ table.addRow(("User Name:", shortname,))
+ table.addRow(("Calendar:", calendar,))
+ table.addRow(("Resource:", resource))
+ table.addRow(("Created", created))
+ table.addRow(("Modified", modified))
print "\n"
table.printTable()
print data
@@ -283,6 +287,9 @@
[
ch.OWNER_UID,
cb.CALENDAR_RESOURCE_NAME,
+ co.RESOURCE_NAME,
+ co.CREATED,
+ co.MODIFIED,
co.ICALENDAR_TEXT,
],
From=ch.join(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110616/ed8c9663/attachment.html>
More information about the calendarserver-changes
mailing list