Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(4)  |  Derive(0)  |  Import(7)

src/h/e/hellanzb-HEAD/Hellanzb/Daemon.py   hellanzb(Download)
def resumePostProcessors():
    """ Pickup left off Post Processors that were cancelled via CTRL-C """
    # FIXME: with the new queue, could kill the processing dir sym links (for windows)
    from Hellanzb.NZBLeecher.NZBModel import NZB
    for archiveDirName in os.listdir(Hellanzb.PROCESSING_DIR):
    if not len(Hellanzb.queue.nzbs):
        # No need to actually 'force'
        from Hellanzb.NZBLeecher.NZBModel import NZB
        return parseNZB(NZB(nzbfilename))
            if nzb is None:
                from Hellanzb.NZBLeecher.NZBModel import NZB
                nzb = NZB(nzbfilename)

src/h/e/hellanzb-HEAD/Hellanzb/PostProcessor.py   hellanzb(Download)
    def isNZBArchive(self):
        """ Whether or not the current archive was downloaded from an NZB file """
        from Hellanzb.NZBLeecher.NZBModel import NZB # FIXME:
        return isinstance(self.archive, NZB)

src/h/e/hellanzb-HEAD/Hellanzb/NZBQueue.py   hellanzb(Download)
def scanQueueDir(firstRun = False, justScan = False):
    """ Find new/resume old NZB download sessions """
    #t = time.time()
    from Hellanzb.NZBLeecher.NZBModel import NZB
            from Hellanzb.NZBLeecher.NZBModel import NZB
            name = os.path.basename(nzbFile)
            nzb = NZB.fromStateXML('queued', nzbFile)

src/h/e/hellanzb-HEAD/Hellanzb/test/StateXMLTestCase.py   hellanzb(Download)
from Hellanzb.test import HellanzbTestCase, EVIL_STRINGS
from Hellanzb.Log import *
from Hellanzb.NZBLeecher.NZBModel import NZB, NZBFile
from Hellanzb.NZBQueue import recoverStateFromDisk
from Hellanzb.NZBLeecher.NZBSegmentQueue import NZBSegmentQueue
    def assertRecoveredArchiveName(self, name):
        n = NZB(name)
        n.rarPassword = rarPassword = 'recoverme'
        archiveName = n.archiveName
    def assertRecoveredSkippedPar(self, subject):
        n = NZB('test.nzb')
        n.isParRecovery = True
        n.parPrefix = 'test'
        n.parType = PAR2