def _post(self, name, *args, **kwds): TimerHookProxy._post(self, name, *args, **kwds) if len(name.split('get_')) > 1: rval = kwds['rval_intercepted'] print >> self._file, 'check_%s(rval, %s)' % ( name.split('get_')[-1], rval) return None
def _pre(self, name, *args, **args): if name != 'register_callback': TimerHookProxy._pre(self, name, *args, **kwds)
def __init__(self, *args, **args): TimerHookProxy.__init__(self, *args, **kwds) print >> self._file, '#!/usr/bin/python2.5\nfrom wydvd import Wydvd\nfrom wydvd.dvdchecker import *\nimport time\nimport sys\n' print >> self._file, '%s = Wydvd()' % self._objname
def _post(self, name, *args, **args): TimerHookProxy._post(self, name, *args, **kwds) if len(name.split('get_')) > 1: rval = kwds['rval_intercepted']
def __init__(self, *args, **args): TimerHookProxy.__init__(self, *args, **kwds)