[Jppy-commit] [SCM] jppy - Python bindings and API for jpilot databases and a GTK2 GUI branch, devel-calendar, updated. releases/0.0.48-70-g2b34252

Jon Schewe jpschewe@mtu.net
Sun Nov 2 16:42:13 GMT 2008


The following commit has been merged in the devel-calendar branch:
commit ea87330bf653f828d73ca827546dc18e986b2b9c
Author: Jon Schewe <jpschewe@mtu.net>
Date:   Sat Nov 1 14:00:08 2008 -0500

    Added more information to the print out of the timezones. Seems to be working!

diff --git a/tests/eventTests.py b/tests/eventTests.py
index a67a2fd..3d7bad8 100644
--- a/tests/eventTests.py
+++ b/tests/eventTests.py
@@ -36,7 +36,11 @@ class eventTest(baseclass.baseTest):
                 print d
     def testTimezone(self):
         for r in self.calendar.records():
-            print "Timezone: %s" % (r["timezone"])
+            timezone = r["timezone"]
+            if timezone:
+                print "Timezone: %s" % timezone["name"]
+                print "\toffset: %d" % timezone["offset"]
+                print "\tdstObserved: %s" % timezone["dstObserved"]
     
 def suite():
     suite = unittest.TestSuite((unittest.makeSuite(eventTest),))

-- 
jppy - Python bindings and API for jpilot databases and a GTK2 GUI



More information about the Jppy-commit mailing list