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

All Samples(22)  |  Call(14)  |  Derive(0)  |  Import(8)
a rotating writable file like object.

src/h/a/haufe.requestmonitoring-0.4.0/haufe/requestmonitoring/successlogging.py   haufe.requestmonitoring(Download)
from ZPublisher.interfaces import IPubSuccess, IPubFailure
 
from Rotator import Rotator
 
from interfaces import ISuccessFull, IStatus
    if config is None: return # not configured
    global _log_good, _log_bad
    _log_good = Rotator(config['filebase'] + '_good', lock=True)
    _log_bad = Rotator(config['filebase'] + '_bad', lock=True)
    # register publication observers

src/h/a/haufe.requestmonitoring-HEAD/haufe/requestmonitoring/successlogging.py   haufe.requestmonitoring(Download)
from ZPublisher.interfaces import IPubSuccess, IPubFailure
 
from Rotator import Rotator
 
from interfaces import ISuccessFull, IStatus
    if config is None: return # not configured
    global _log_good, _log_bad
    _log_good = Rotator(config['filebase'] + '_good', lock=True)
    _log_bad = Rotator(config['filebase'] + '_bad', lock=True)
    # register publication observers

src/h/a/haufe.requestmonitoring-0.4.0/haufe/requestmonitoring/timelogging.py   haufe.requestmonitoring(Download)
from ZPublisher.interfaces import IPubStart, IPubSuccess, IPubFailure
 
from Rotator import Rotator
 
from interfaces import ITicket, IInfo, IStatus
    if config is None: return # not configured
    global _logfile
    _logfile = Rotator(config['filebase'], lock=True)
    # indicate restart
    _log('0', info='restarted')

src/h/a/haufe.requestmonitoring-HEAD/haufe/requestmonitoring/timelogging.py   haufe.requestmonitoring(Download)
from ZPublisher.interfaces import IPubStart, IPubSuccess, IPubFailure
 
from Rotator import Rotator
 
from interfaces import ITicket, IInfo, IStatus
    if config is None: return # not configured
    global _logfile
    _logfile = Rotator(config['filebase'], lock=True)
    # indicate restart
    _log('0', info='restarted')