예제 #1
0
    def __init__( self, *args, **kwargs  ):
        Browser.__init__( self, *args, **kwargs )
        self.curList = []  # Current list of item/category
        
        #self.racineDisplayList  = [ Item.TYPE_SCRIPT, Item.TYPE_PLUGIN ]
        self.racineDisplayList  = [ Item.TYPE_NEW, Item.TYPE_SCRIPT_CAT, Item.TYPE_PLUGIN ]

        # Create History instance in order to store browsing history
        self.history = History()
예제 #2
0
    def __init__(self, *args, **kwargs):
        Browser.__init__(self, *args, **kwargs)

        # Creation du configCtrl
        from CONF import configCtrl
        self.configManager = configCtrl()
        if not self.configManager.is_conf_valid: raise

        self.host = self.configManager.host
        self.user = self.configManager.user
        self.password = self.configManager.password
        self.remotedirList = self.configManager.remotedirList

        #self.localdirList       = self.configManager.localdirList
        #self.downloadTypeList   = self.configManager.downloadTypeLst

        self.racineDisplayList = [
            Item.TYPE_SKIN, Item.TYPE_SCRAPER, Item.TYPE_SCRIPT,
            Item.TYPE_PLUGIN
        ]
        self.pluginDisplayList = [
            Item.TYPE_PLUGIN_MUSIC, Item.TYPE_PLUGIN_PICTURES,
            Item.TYPE_PLUGIN_PROGRAMS, Item.TYPE_PLUGIN_VIDEO
        ]
        self.scraperDisplayList = [
            Item.TYPE_SCRAPER_MUSIC, Item.TYPE_SCRAPER_VIDEO
        ]

        self.connected = False  # status de la connection ( inutile pour le moment )
        self.index = ""
        self.rightstest = ""
        self.CACHEDIR = self.configManager.CACHEDIR

        # Connection to FTP server
        try:

            self.passionFTPCtrl = FtpDownloadCtrl(self.host, self.user,
                                                  self.password,
                                                  self.remotedirList,
                                                  self.CACHEDIR)
            self.connected = True
        except:
            print "PassionFtpBrowser::__init__: Exception durant la connection FTP"
            print "Impossible de se connecter au serveur FTP: %s" % self.host
            print_exc()

        # Creons ItemInfosManager afin de recuperer les descriptions des items
        self.itemInfosManager = ItemInfosManager(mainwin=self)
        self.infoswarehouse = self.itemInfosManager.get_info_warehouse()
예제 #3
0
    def __init__(self, *args, **kwargs):
        Browser.__init__(self, *args, **kwargs)

        # Creation du configCtrl
        from CONF import configCtrl

        self.configManager = configCtrl()
        if not self.configManager.is_conf_valid:
            raise

        self.host = self.configManager.host
        self.user = self.configManager.user
        self.password = self.configManager.password
        self.remotedirList = self.configManager.remotedirList

        # self.localdirList       = self.configManager.localdirList
        # self.downloadTypeList   = self.configManager.downloadTypeLst

        self.racineDisplayList = [Item.TYPE_SKIN, Item.TYPE_SCRAPER, Item.TYPE_SCRIPT, Item.TYPE_PLUGIN]
        self.pluginDisplayList = [
            Item.TYPE_PLUGIN_MUSIC,
            Item.TYPE_PLUGIN_PICTURES,
            Item.TYPE_PLUGIN_PROGRAMS,
            Item.TYPE_PLUGIN_VIDEO,
        ]
        self.scraperDisplayList = [Item.TYPE_SCRAPER_MUSIC, Item.TYPE_SCRAPER_VIDEO]

        self.connected = False  # status de la connection ( inutile pour le moment )
        self.index = ""
        self.rightstest = ""
        self.CACHEDIR = self.configManager.CACHEDIR

        # Connection to FTP server
        try:

            self.passionFTPCtrl = FtpDownloadCtrl(
                self.host, self.user, self.password, self.remotedirList, self.CACHEDIR
            )
            self.connected = True
        except:
            print "PassionFtpBrowser::__init__: Exception durant la connection FTP"
            print "Impossible de se connecter au serveur FTP: %s" % self.host
            print_exc()

        # Creons ItemInfosManager afin de recuperer les descriptions des items
        self.itemInfosManager = ItemInfosManager(mainwin=self)
        self.infoswarehouse = self.itemInfosManager.get_info_warehouse()
예제 #4
0
    def __init__(self, *args, **kwargs):
        Browser.__init__(self, *args, **kwargs)
        #self.db  = kwargs[ "database" ] # Database file

        import CONF
        #TODO: check if we still need those vars
        self.baseURL = CONF.getBaseURLDbCrossway(
        )  # http://passion-xbmc.org/dbcrossway/
        self.catcontentURL = "all/downloads/idparent=%d"
        self.xbmctypecontentURL = "all/downloads/type=file;xbmc_type=%s"
        self.newcontentURL = "all/downloads/type=file"

        self.baseURLDownloadFile = CONF.getBaseURLDownloadFile()
        self.baseURLPreviewPicture = CONF.getBaseURLPreviewPicture()
        del CONF

        self.currentItemId = 0

        # Create History instance in order to store browsing history
        self.history = History()
예제 #5
0
    def __init__( self, *args, **kwargs  ):
        Browser.__init__( self, *args, **kwargs )
        #self.db  = kwargs[ "database" ] # Database file


        import CONF
        #TODO: check if we still need those vars
        self.baseURL = CONF.getBaseURLDbCrossway() # http://passion-xbmc.org/dbcrossway/
        self.catcontentURL = "all/downloads/idparent=%d"
        self.xbmctypecontentURL = "all/downloads/type=file;xbmc_type=%s"
        self.newcontentURL = "all/downloads/type=file"
        
        self.baseURLDownloadFile   = CONF.getBaseURLDownloadFile()
        self.baseURLPreviewPicture = CONF.getBaseURLPreviewPicture()
        del CONF

        self.currentItemId = 0
        
        # Create History instance in order to store browsing history
        self.history = History()