Example #1
0
def _scrollEnd():
    """ Let the logger know we're done scrolling """
    # FIXME: what happens if we are CTRL-Ced in the middle of this?
    Hellanzb.scroller.killHistory()

    stdinEchoOn()
    ScrollableHandler.scrollFlag = False

    info('', saveRecent=False)
Example #2
0
def _scrollEnd():
    """ Let the logger know we're done scrolling """
    # FIXME: what happens if we are CTRL-Ced in the middle of this?
    Hellanzb.scroller.killHistory()
    
    stdinEchoOn()
    ScrollableHandler.scrollFlag = False

    info('', saveRecent = False)
Example #3
0
def finishShutdown():
    """ Last minute calls prior to shutdown """
    # Just in case we left it off
    stdinEchoOn()

    if hasattr(Hellanzb, 'DOWNLOAD_TEMP_DIR'):
        # Remove the temporary files with the encoded data. Any errors causing hellanzb to
        # shut down prematurely (like can't bind to specific port -- maybe another
        # hellanzb is running?) should unset this var so this doesn't get called
        try:
            rmtree(Hellanzb.DOWNLOAD_TEMP_DIR)
        except OSError:
            pass
    if hasattr(Hellanzb, 'DEQUEUED_NZBS_DIR'):
        rmtree(Hellanzb.DEQUEUED_NZBS_DIR)

    if Hellanzb.shutdownMessage:
        logShutdown(Hellanzb.shutdownMessage)
Example #4
0
def finishShutdown():
    """ Last minute calls prior to shutdown """
    # Just in case we left it off
    stdinEchoOn()

    if hasattr(Hellanzb, 'DOWNLOAD_TEMP_DIR'):
        # Remove the temporary files with the encoded data. Any errors causing hellanzb to
        # shut down prematurely (like can't bind to specific port -- maybe another
        # hellanzb is running?) should unset this var so this doesn't get called
        try:
            rmtree(Hellanzb.DOWNLOAD_TEMP_DIR)
        except OSError:
            pass
    if hasattr(Hellanzb, 'DEQUEUED_NZBS_DIR'):
        rmtree(Hellanzb.DEQUEUED_NZBS_DIR)

    if Hellanzb.shutdownMessage:
        logShutdown(Hellanzb.shutdownMessage)