[CalendarServer-changes] [9960] CalendarServer/branches/users/glyph/always-abort-txn-on-error

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 22 16:09:15 PDT 2012


Revision: 9960
          http://trac.calendarserver.org//changeset/9960
Author:   glyph at apple.com
Date:     2012-10-22 16:09:14 -0700 (Mon, 22 Oct 2012)
Log Message:
-----------
Remove lots of debug prints.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/always-abort-txn-on-error/twistedcaldav/test/test_wrapping.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/always-abort-txn-on-error/

Modified: CalendarServer/branches/users/glyph/always-abort-txn-on-error/twistedcaldav/test/test_wrapping.py
===================================================================
--- CalendarServer/branches/users/glyph/always-abort-txn-on-error/twistedcaldav/test/test_wrapping.py	2012-10-22 23:09:14 UTC (rev 9959)
+++ CalendarServer/branches/users/glyph/always-abort-txn-on-error/twistedcaldav/test/test_wrapping.py	2012-10-22 23:09:14 UTC (rev 9960)
@@ -524,17 +524,11 @@
         """
         Assert that a user's calendar is empty (their default calendar by default).
         """
-        print 'txn'
         txn = self.calendarStore.newTransaction()
         self.addCleanup(txn.commit)
-        print 'looking at:'
         home = yield txn.calendarHomeWithUID(user, create=True)
-        print home, [cal.name() for cal in (yield home.calendars())]
         cal = yield home.calendarWithName(calendarName)
-        print 'cal'
-        print cal
         objects = yield cal.calendarObjects()
-        print 'objects?', objects
         self.assertEquals(len(objects), 0)
 
 
@@ -563,6 +557,7 @@
                 "/calendars/users/wsanchez/calendar/1.ics",
                 "PUT", "wsanchez"
             )
+            print 'obj?', calendarObject, type(calendarObject)
             self.requestUnderTest.stream = MemoryStream(txt)
             returnValue(
                 ((yield calendarObject.renderHTTP(self.requestUnderTest)),
@@ -613,26 +608,11 @@
 DURATION:PT1H
 SUMMARY:Test
 END:VEVENT""".format(wsanchez=wsanchez, cdaboo=cdaboo)
+        #txn = self.requestUnderTest._newStoreTransaction
         invalidEvent = eventTemplate.format(invalidInstance, wsanchez=wsanchez, cdaboo=cdaboo).replace(CR, CRLF)
-        # resp1, rsrc1 = yield putEvt(validEvent)
-        # self.assertEquals(resp1.code, CREATED)
-        # self.requestUnderTest = None
         resp2, rsrc2 = yield putEvt(invalidEvent)
-        # self.addCleanup(self.commit)
-        print 'Request?', self.requestUnderTest.authzUser, self.requestUnderTest.authnUser
-        txn = self.requestUnderTest._newStoreTransaction
-        #print calendarObject._associatedTransaction
-        #calendarObject._associatedTransaction._whoCompletesMe = True
-        #txn = calendarObject._associatedTransaction
-        print txn, txn._sqlTxn._completed
         self.requestUnderTest = None
-        # result = yield calendarObject.http_PUT(self.requestUnderTest)
-        #print result
-        print '---CHECKING---'
         yield self.assertCalendarEmpty(wsanchez)
         yield self.assertCalendarEmpty(cdaboo)
-        # self.assertDoesntExist("/calendars/users/wsanchez")
-        #finally:
-            #yield self.commit()
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20121022/cdb19731/attachment-0001.html>


More information about the calendarserver-changes mailing list