| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

gprepr.py

Go to the documentation of this file.
00001 """
00002   dress the appmgr itself
00003 
00004    want to find where the default repr is coming from and put that in the str
00005    to have access to the address ... but have yet to find where thats done, possibly
00006    is method of object base class 
00007 
00008 """
00009 
00010 
00011 
00012 import GaudiPython 
00013 import pprint 
00014 
00015 def hdr(self):
00016     return "<%s> [0x%08X] " % ( self.__class__.__name__ , id(self) )
00017 
00018 
00019 def AppMgr__repr__(self):
00020     """
00021         huh sometimes class name if AppMgr 
00022     """
00023     assert self.__class__.__name__ in ['GaudiPython.Bindings.AppMgr','AppMgr'], "invalid classname %s " % repr(self.__class__.__name__)
00024     
00025     d = []
00026     d.append("<%s> [%s] state:%s " % (self.__class__.__name__ , id(self) , self.state() ))
00027     d.append("TopAlg... [%s] " % len(self.TopAlg) ) 
00028     for a in self.TopAlg:
00029         d.append(a)
00030     return " ".join(d)
00031 
00032 
00033 def iProperty__repr__(self):
00034     d = {}
00035     for k,v in self.properties().items():
00036         d[k] = v.value()
00037     return "\n".join([hdr(self),pprint.pformat(d)])
00038 
00039 
00040 
00041 
00042 
00043 
00044 GaudiPython.Bindings.AppMgr.__repr__ = AppMgr__repr__
00045 #GaudiPython.Bindings.iAlgTool.__repr__ = iAlgTool__repr__
00046 GaudiPython.Bindings.iProperty.__repr__ = iProperty__repr__
00047 
00048 
00049 def reload_():
00050     import sys
00051     reload(sys.modules[__name__])
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:13:00 2011 for DybPython by doxygen 1.4.7