[Checkins] SVN: Sandbox/luciano/kirbi/src/kirbi/collection.py stopped refresh when there are pending books; pending books will tend to be there for a long time (they were not found at Amazon.com, so until we implement other sources, they'll stay pending)

Luciano Ramalho luciano at ramalho.org
Tue Aug 21 10:43:49 EDT 2007


Log message for revision 79080:
  stopped refresh when there are pending books; pending books will tend to be there for a long time (they were not found at Amazon.com, so until we implement other sources, they'll stay pending)
  

Changed:
  U   Sandbox/luciano/kirbi/src/kirbi/collection.py

-=-
Modified: Sandbox/luciano/kirbi/src/kirbi/collection.py
===================================================================
--- Sandbox/luciano/kirbi/src/kirbi/collection.py	2007-08-21 14:17:39 UTC (rev 79079)
+++ Sandbox/luciano/kirbi/src/kirbi/collection.py	2007-08-21 14:43:49 UTC (rev 79080)
@@ -127,8 +127,8 @@
         # XXX this would be great with AJAX, avoiding the ugly refresh
         # If there are no invalid_isbns in the text area, set refresh or redirect
         if not self.invalid_isbns:
-            if self.pac.getIncomplete() or self.pac.getPending():
-                # Refresh page while there are pending books
+            if self.pac.getIncomplete():
+                # Refresh page while there are incomplete books
                 self.request.response.setHeader("Refresh", "5; url=%s?refreshed=1" % self.url())
             elif refreshed:
                 # Redirect to collection if nothing is pending and we came from



More information about the Checkins mailing list