| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# Configurable::PropertyReference Class Reference

Allow references to options as in old style. More...

List of all members.

## Public Member Functions
def | __init__
def | __repr__
def | __resolve__
def | getFullName
## Public Attributes
| name

## Detailed Description

Allow references to options as in old style.

Definition at line 56 of file Configurable.py.

## Member Function Documentation

def Configurable::PropertyReference::__init__ | ( |  | self,
|  |  | propname |
| ) |  |  |

Definition at line 57 of file Configurable.py.

    00058                                :
            self.name = propname

def Configurable::PropertyReference::__repr__ | ( |  | self | ) |

Definition at line 59 of file Configurable.py.

    00060                       :
            return "@%s"%self.name

def Configurable::PropertyReference::__resolve__ | ( |  | self | ) |

Definition at line 61 of file Configurable.py.

    00062                          :
    00063         # late binding for property references
    00064         retval = None
    00065         refname, refprop = self.name.rsplit('.',1)
    00066         if refname in Configurable.allConfigurables:
    00067             conf = Configurable.allConfigurables[refname]
    00068             retval = getattr(conf,refprop)
    00069             if hasattr(retval,"getFullName"):
    00070                 retval = retval.getFullName()
    00071         else:
    00072             raise NameError("name '%s' not found resolving '%s'"%(refname,self))
            return retval

def Configurable::PropertyReference::getFullName | ( |  | self | ) |

    This function allow transparent integration with
    Configurable.getValuedProperties.

Definition at line 73 of file Configurable.py.

    00074                          :
    00075         """This function allow transparent integration with
    00076         Configurable.getValuedProperties.
    00077         """
    00078         try:
    00079             return self.__resolve__()
    00080         except NameError:
    00081             # ignore the error if we cannot resolve the name yet
    00082             return self
    00083         except AttributeError:
    00084             # ignore the error if we cannot resolve the attribute yet
    00085             return self

## Member Data Documentation

Configurable::PropertyReference::name

Definition at line 58 of file Configurable.py.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiKernel/python/GaudiKernel/Configurable.py

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines