equal
deleted
inserted
replaced
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 |