version 1.94, 2008/12/04 21:27:00
|
version 1.96, 2008/12/17 12:05:00
|
Line 91 class ECHO_basis:
|
Line 91 class ECHO_basis:
|
# Managment for the PID |
# Managment for the PID |
def setPID(self,pid): |
def setPID(self,pid): |
"""set the pid""" |
"""set the pid""" |
|
logging.debug(self.getID()+" PID set to "+pid) |
self.pid=pid |
self.pid=pid |
return True |
return True |
|
|
def getPID(self): |
def getPID(self): |
"""get the pid""" |
"""get the pid""" |
return getattr(self,'pid',None) |
|
|
pid =getattr(self,'pid',None) |
|
|
|
if pid == self.getParentPID(): |
|
return None |
|
else: |
|
return pid |
|
|
|
|
def getParentPID(self): |
def getParentPID(self): |
"""get the PID of the parent""" |
"""get the PID of the parent""" |