Re: Online Desktop run-through



On Tue, Apr 8, 2008 at 3:07 PM, Marco Pesenti Gritti <mpgritti gmail com> wrote:
>  >  -- There is a "Show in sidebar" check box for pinning the application in
>  > the Applications widget.
>
>  All of these seem to work inconsistently. "Nibbles" for example misses
>  all of the details.
>
>  http://bugzilla.gnome.org/show_bug.cgi?id=526937

This is because we are not successfully fetching all the applications:

"14:51:21 [46912496198016] bigboard.stocks.AppsStock DEBUG don't have
local cache for http://online.gnome.org:80/xml/allapplications";
"14:51:21 [46912496198016] bigboard.stocks.AppsStock DEBUG Got 0 apps
for all apps from http"
"14:51:21 [46912496198016] bigboard.stocks.AppsStock DEBUG all apps are loaded"

The following patches fixes it, but I couldn't track down why we are
using cache-only there. Anyone knows it?

Marco

Index: bigboard/stocks/apps/apps.py
===================================================================
--- bigboard/stocks/apps/apps.py        (revision 7285)
+++ bigboard/stocks/apps/apps.py        (working copy)
@@ -247,11 +247,11 @@
         url = urlparse.urljoin(baseurl, self.__relative_url)
         _logger.debug("Sending http request for %s" % url)

-        AsyncHTTPFetcher().xml_method_refetch(url,
-                                              {},
-                                              self.__on_got_xml,
-                                              self.__on_error,
-                                              self.__on_error)
+        AsyncHTTPFetcher().xml_method(url,
+                                      {},
+                                      self.__on_got_xml,
+                                      self.__on_error,
+                                      self.__on_error)

     def go(self):
         self.__do_download()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]