Re: [Tutor] Restarting a module

2007-07-23 Thread Tino Dai
On 7/23/07, Alan Gauld <[EMAIL PROTECTED]> wrote: "Tino Dai" <[EMAIL PROTECTED]> wrote > Sorry about that. I think that a simpler question would be: I'm not sure what the better question is, but I think I answered it :-) > In my driver code: > > ap = apacheModule.apacheModule(configXML) >

Re: [Tutor] Restarting a module

2007-07-23 Thread Alan Gauld
"Tino Dai" <[EMAIL PROTECTED]> wrote > Sorry about that. I think that a simpler question would be: I'm not sure what the better question is, but I think I answered it :-) > In my driver code: > > ap = apacheModule.apacheModule(configXML) > while 1: > try: > rVs=ap.perf() >

Re: [Tutor] Restarting a module

2007-07-23 Thread Tino Dai
Sorry about that. I think that a simpler question would be: In my driver code: ap = apacheModule.apacheModule(configXML) while 1: try: rVs=ap.perf() for anObj in self.objList: getattr(anObj,"do")(rVs) time.sleep(1) except ArraryOutOfBoundsE

Re: [Tutor] Restarting a module

2007-07-23 Thread Alan Gauld
"Tino Dai" <[EMAIL PROTECTED]> wrote Your code confused me on several counts but in general... > I have a question about restarting a part of the program after > it dies. > I have a driver program that instantiates a class and runs methods > from that > class. Occasionally, the method gets

[Tutor] Restarting a module

2007-07-23 Thread Tino Dai
Hi Everybody, I have a question about restarting a part of the program after it dies. I have a driver program that instantiates a class and runs methods from that class. Occasionally, the method gets bad data and it bombs out. Instead of bombing out, I would like the program to grab new data