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

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/h/e/hellanzb-HEAD/Hellanzb/Log.py   hellanzb(Download)
from threading import Lock
from traceback import print_exc
from Hellanzb.Logging import LogOutputStream, lockScrollableHandlers, prettyException, \
    stdinEchoOff, stdinEchoOn, ScrollableHandler
from Hellanzb.Growl import *
def error(message, exception = None, appendLF = True):
    """ Log a message at the error level. Optionally log exception information """
    prettyEx = prettyException(exception)
    if prettyEx != '':
        message = '%s: %s' % (message, prettyEx)
def debug(message, exception = None, appendLF = True):
    """ Log a message at the debug level """
    if Hellanzb.DEBUG_MODE_ENABLED:
        if exception != None:
            prettyEx = prettyException(exception)
def logFile(message, exception = None, appendLF = True):
    """ Log a message to only the log file (and not the console) """
    prettyEx = prettyException(exception)
    if prettyEx != '':
        message = '%s: %s' % (message, prettyEx)

src/h/e/hellanzb-HEAD/Hellanzb/PostProcessor.py   hellanzb(Download)
from threading import Thread, Condition, Lock, RLock
from Hellanzb.Log import *
from Hellanzb.Logging import prettyException
from Hellanzb.PostProcessorUtil import *
from Hellanzb.Util import *
                raise
 
            pe = prettyException(fe)
            lines = pe.split('\n')
            archive = archiveName(self.dirName)

src/h/e/hellanzb-HEAD/Hellanzb/Daemon.py   hellanzb(Download)
from Hellanzb.HellaXMLRPC import initXMLRPCServer, HellaXMLRPCServer
from Hellanzb.Log import *
from Hellanzb.Logging import prettyException, LogOutputStream
from Hellanzb.NZBQueue import dequeueNZBs, recoverStateFromDisk, parseNZB, \
    scanQueueDir, writeStateXML

src/h/e/hellanzb-HEAD/Hellanzb/NZBLeecher/ArticleDecoder.py   hellanzb(Download)
from Hellanzb.Daemon import beginDownload, endDownload, handleNZBDone, pauseCurrent
from Hellanzb.Log import *
from Hellanzb.Logging import prettyException
from Hellanzb.Util import BUF_SIZE, checkShutdown, isHellaTemp, nuke, touch, \
    OutOfDiskSpace, PoolsExhausted