def __on_more_popular(self, w):
     subquery = (self.__search and ("?q=" + urllib.quote(self.__search))) \
                 or self.__catname and ("?category=" + urllib.quote(self.__catname)) \
                 or ''
     libbig.show_url(urlparse.urljoin(globals.get_baseurl(),
                                      "applications%s" % (subquery,)))
     # more-info with None just means hide window
     self.emit("more-info", None)
Exemple #2
0
    def __do_download(self):
        baseurl = globals.get_baseurl()
        if not baseurl:
            raise Exception("Don't have base url yet but trying to do an http request")

        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)
    def __sync(self):
        #_logger.debug("doing sync")
        
        self.__set_message(None)        
             
        self.__box.set_child_visible(self.__dynamic_set, False)

        usage = self.__repo.get_app_usage_enabled()

        #_logger.debug("usage: %s", usage)

        if usage is False and self._model.ready and self._model.global_resource.online:
            self.__set_message("Enable application tracking", 
                               globals.get_baseurl() + "/account")        

        self.__fill_static_set()

        self.__repo.pin_stuff_if_we_have_none()
Exemple #4
0
 def __visit_person(self):
     _logger.debug("visiting person for %s", self.__current_image)
     if not self.__current_image:
         return
     libbig.show_url(urlparse.urljoin(globals.get_baseurl(), self.__current_image[0].get_home_url()))
 def __on_browse_popular_apps(self):
     libbig.show_url(urlparse.urljoin(globals.get_baseurl(), "applications"))
     self.__hide_reset()
 def __on_show_more_info(self, app):
     if app:
         _logger.debug("showing app: %s", app)
         libbig.show_url(urlparse.urljoin(globals.get_baseurl(), "application?id=" + app.get_id()))
     self.__hide_reset()