[PATCH] Fix static set of initial applications



Looks like the code was moved from AppsStock to AppsRepo but these
constants was forgot.

I gave a quick try to pylint on the code base and I found other
similar problems. It would be useful to do it more systematically,
except pygobject causes too many false positives. Someone on the Sugar
team is working on that.

Index: bigboard/stocks/apps/apps.py
===================================================================
--- bigboard/stocks/apps/apps.py        (revision 7295)
+++ bigboard/stocks/apps/apps.py        (working copy)
@@ -257,6 +257,8 @@
         self.__do_download()

 class AppsRepo(gobject.GObject):
+    STATIC_SET_SIZE = 4
+    STATIFICATION_TIME_SEC = 60 * 60 #* 24 * 3; # 3 days
     __gsignals__ = {
         "enabled-changed" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
         "all-apps-loaded" : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
Index: bigboard/stocks/apps/AppsStock.py
===================================================================
--- bigboard/stocks/apps/AppsStock.py   (revision 7295)
+++ bigboard/stocks/apps/AppsStock.py   (working copy)
@@ -33,9 +33,6 @@


 class AppsStock(bigboard.stock.AbstractMugshotStock):
-    STATIC_SET_SIZE = 4
-    DYNAMIC_SET_SIZE = 0
-    STATIFICATION_TIME_SEC = 60 * 60 #* 24 * 3; # 3 days
     __gsignals__ = {

     }


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