예제 #1
0
 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
예제 #2
0
	def _pre(self, name, *args, **args):
		if name != 'register_callback':
			TimerHookProxy._pre(self, name, *args, **kwds)
예제 #3
0
	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
예제 #4
0
	def _post(self, name, *args, **args):
		TimerHookProxy._post(self, name, *args, **kwds)
		if len(name.split('get_')) > 1:
			rval = kwds['rval_intercepted']
예제 #5
0
	def __init__(self, *args, **args):
		TimerHookProxy.__init__(self, *args, **kwds)