From: Kern S. <ke...@us...> - 2005-04-30 19:39:58
|
Update of /cvsroot/bacula/bacula/examples/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13239/examples/python Modified Files: DirStartUp.py Log Message: Start Python documentation Index: DirStartUp.py =================================================================== RCS file: /cvsroot/bacula/bacula/examples/python/DirStartUp.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- DirStartUp.py 30 Apr 2005 14:47:47 -0000 1.3 +++ DirStartUp.py 30 Apr 2005 19:39:50 -0000 1.4 @@ -21,7 +21,8 @@ """ events = JobEvents() # create instance of Job class events.job = job # save Bacula's job pointer - job.set_events = events # register events desired +# job.set_events = events # register events desired + job.set_events(events) # register events desired sys.stderr = events # send error output to Bacula sys.stdout = events # send stdout to Bacula jobid = job.JobId; client = job.Client |