예제 #1
0
파일: action.py 프로젝트: WoLpH/tribler
    def procRESUME(self, workinglist = None, skipcheck = False):
        fulllist = self.utility.torrents["inactive"].keys()
        if workinglist is None:
            workinglist = fulllist
        else:
            workinglist = intersection(fulllist, workinglist)
        
        update = [1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.actions.resume(skipcheck)]

        if update:
            self.queue.updateAndInvoke(invokeLater = False)
예제 #2
0
파일: action.py 프로젝트: WoLpH/tribler
    def procPAUSE(self, workinglist = None, release = False):
        fulllist = self.utility.torrents["active"].keys()
        if workinglist is None:
            workinglist = fulllist
        else:
            workinglist = intersection(fulllist, workinglist)

        update = [1 for ABCTorrentTemp in workinglist if ABCTorrentTemp.actions.pause(release)]

        if update:
            self.queue.UpdateRunningTorrentCounters()
예제 #3
0
파일: action.py 프로젝트: WoLpH/tribler
    def procUNSTOP(self, workinglist = None):
        fulllist = self.utility.torrents["inactive"].keys()
        if workinglist is None:
            workinglist = fulllist
        else:
            workinglist = intersection(fulllist, workinglist)

        update = [1 for ABCTorrentTemp in workinglist
                    if ABCTorrentTemp.status.value == STATUS_STOP
                       and ABCTorrentTemp.actions.queue()]

        if update:
            self.queue.updateAndInvoke()
예제 #4
0
    def procRESUME(self, workinglist=None, skipcheck=False):
        fulllist = self.utility.torrents["inactive"].keys()
        if workinglist is None:
            workinglist = fulllist
        else:
            workinglist = intersection(fulllist, workinglist)

        update = [
            1 for ABCTorrentTemp in workinglist
            if ABCTorrentTemp.actions.resume(skipcheck)
        ]

        if update:
            self.queue.updateAndInvoke(invokeLater=False)
예제 #5
0
    def procPAUSE(self, workinglist=None, release=False):
        fulllist = self.utility.torrents["active"].keys()
        if workinglist is None:
            workinglist = fulllist
        else:
            workinglist = intersection(fulllist, workinglist)

        update = [
            1 for ABCTorrentTemp in workinglist
            if ABCTorrentTemp.actions.pause(release)
        ]

        if update:
            self.queue.UpdateRunningTorrentCounters()
예제 #6
0
    def procUNSTOP(self, workinglist=None):
        fulllist = self.utility.torrents["inactive"].keys()
        if workinglist is None:
            workinglist = fulllist
        else:
            workinglist = intersection(fulllist, workinglist)

        update = [
            1 for ABCTorrentTemp in workinglist
            if ABCTorrentTemp.status.value == STATUS_STOP
            and ABCTorrentTemp.actions.queue()
        ]

        if update:
            self.queue.updateAndInvoke()