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

All Samples(12)  |  Call(7)  |  Derive(0)  |  Import(5)

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/NZBModel.py   hellanzb(Download)
from Hellanzb.Log import *
from Hellanzb.NZBQueue import writeStateXML
from Hellanzb.Util import IDPool, UnicodeList, archiveName, getFileExtension, getMsgId, \
    hellaRename, isHellaTemp, nuke, toUnicode
from Hellanzb.NZBLeecher.ArticleDecoder import parseArticleData, setRealFileName, tryAssemble
        ## NZB file general information
        self.nzbFileName = nzbFileName
        self.archiveName = archiveName(self.nzbFileName) # pretty name
        self.msgid = None
        filename = os.path.basename(nzbFileName)
        else:
            recoveredDict = Hellanzb.recoveredState.getRecoveredDict(type,
                                                                     archiveName(target))
 
        # Pass the id in with the constructor (instead of setting it after the fact) --

src/h/e/hellanzb-HEAD/Hellanzb/NZBQueue.py   hellanzb(Download)
from Hellanzb.Log import *
from Hellanzb.NewzbinDownloader import NewzbinDownloader
from Hellanzb.Util import IDPool, UnicodeList, archiveName, hellaRename, inMainThread, \
    getFileExtension, toUnicode, validNZB
 
 
    nzbfilename = nzb.nzbFileName
    d = os.path.join(Hellanzb.POSTPONED_DIR, archiveName(nzbfilename))
    if os.path.isdir(d):
        try:
        ensureSafePostponedLoad(nzb.nzbFileName)
 
        info('Loaded postponed directory: ' + archiveName(nzbfilename))
 
        fixNZBFileName(nzb)
    for nzb in Hellanzb.nzbQueue:
        if includeIds:
            name = archiveName(os.path.basename(nzb.nzbFileName))
            rarPassword = nzb.rarPassword
 

src/h/e/hellanzb-HEAD/Hellanzb/Daemon.py   hellanzb(Download)
from Hellanzb.NZBQueue import dequeueNZBs, recoverStateFromDisk, parseNZB, \
    scanQueueDir, writeStateXML
from Hellanzb.Util import archiveName, daemonize, ensureDirs, getMsgId, hellaRename, \
    isWindows, prettyElapsed, prettySize, touch, validNZB, IDPool
 
        troll = PostProcessor.PostProcessor(archive)
 
        info('Resuming post processor: ' + archiveName(archiveDirName))
        troll.start()
 

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/NZBSegmentQueue.py   hellanzb(Download)
from xml.sax.handler import feature_external_ges, feature_namespaces
from Hellanzb.Log import *
from Hellanzb.Util import EmptyForThisPool, PoolsExhausted, PriorityQueue, OutOfDiskSpace, \
    archiveName, isHellaTemp, prettySize
from Hellanzb.PostProcessorUtil import getParRecoveryName
    def unpostpone(self, nzb):
        """ Recall a postponed NZB """
        self.nzbFilesLock.acquire()
        arName = archiveName(nzb.nzbFileName)
        found = []

src/h/e/hellanzb-HEAD/Hellanzb/HellaXMLRPC/__init__.py   hellanzb(Download)
from Hellanzb.PostProcessor import PostProcessor
from Hellanzb.PostProcessorUtil import Archive
from Hellanzb.Util import archiveName, cmHella, dupeName, flattenDoc, prettyEta, toUnicode, \
    truncateToMultiLine, IDPool