[CalendarServer-changes] [2978] CalendarServer/trunk/twistedcaldav

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 11 08:52:29 PDT 2008


Revision: 2978
          http://trac.macosforge.org/projects/calendarserver/changeset/2978
Author:   sagen at apple.com
Date:     2008-09-11 08:52:28 -0700 (Thu, 11 Sep 2008)
Log Message:
-----------
Return a -1 instead of a blank link when requested playback is empty

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/notify.py
    CalendarServer/trunk/twistedcaldav/test/test_notify.py

Modified: CalendarServer/trunk/twistedcaldav/notify.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/notify.py	2008-09-11 15:35:44 UTC (rev 2977)
+++ CalendarServer/trunk/twistedcaldav/notify.py	2008-09-11 15:52:28 UTC (rev 2978)
@@ -467,7 +467,7 @@
                 self.log_debug("Sending %s" % (msg,))
                 observer.sendLine(msg)
         else:
-            observer.sendLine("")
+            observer.sendLine("-1")
 
 
 

Modified: CalendarServer/trunk/twistedcaldav/test/test_notify.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/test_notify.py	2008-09-11 15:35:44 UTC (rev 2977)
+++ CalendarServer/trunk/twistedcaldav/test/test_notify.py	2008-09-11 15:52:28 UTC (rev 2978)
@@ -258,7 +258,7 @@
         self.assertEquals(protocol.lines, ["2 B", "3 C"])
         protocol.reset()
         self.notifier.playback(protocol, 5)
-        self.assertEquals(protocol.lines, [""])
+        self.assertEquals(protocol.lines, ["-1"])
 
     def test_reset(self):
         self.notifier.enqueue("update", "A")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080911/986026d6/attachment.html 


More information about the calendarserver-changes mailing list