ConfigTreeNode.py
changeset 1767 c74815729afd
parent 1765 ccf59c1f0b45
child 1778 1c6a704bd39c
equal deleted inserted replaced
1766:c1e5b9f19483 1767:c74815729afd
   528         # Check that adding this confnode is allowed
   528         # Check that adding this confnode is allowed
   529         try:
   529         try:
   530             CTNClass, CTNHelp = CTNChildrenTypes[CTNType]
   530             CTNClass, CTNHelp = CTNChildrenTypes[CTNType]
   531         except KeyError:
   531         except KeyError:
   532             raise Exception(_("Cannot create child {a1} of type {a2} ").
   532             raise Exception(_("Cannot create child {a1} of type {a2} ").
   533                              format(a1=CTNName, a2=CTNType))
   533                             format(a1=CTNName, a2=CTNType))
   534 
   534 
   535         # if CTNClass is a class factory, call it. (prevent unneeded imports)
   535         # if CTNClass is a class factory, call it. (prevent unneeded imports)
   536         if type(CTNClass) == types.FunctionType:
   536         if type(CTNClass) == types.FunctionType:
   537             CTNClass = CTNClass()
   537             CTNClass = CTNClass()
   538 
   538