diff --git a/test-tc.py b/test-tc.py index dd8fb89..4d40e32 100755 --- a/test-tc.py +++ b/test-tc.py @@ -1,9 +1,9 @@ #!/usr/bin/env python # test-tc.py - A Test Driver For The 'tconfpy' Configuration File Parser -# Copyright (c) 2003-2004 TundraWare Inc. All Rights Reserved. +# Copyright (c) 2003-2005 TundraWare Inc. All Rights Reserved. PROGNAME = "tconfpy Test Driver" -RCSID = "$Id: test-tc.py,v 1.137 2005/01/13 20:48:50 tundra Exp $" +RCSID = "$Id: test-tc.py,v 1.138 2005/01/13 22:10:03 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -117,9 +117,12 @@ # Build A Symbol Table Using The Data Table Format Defined above ##### -def BuildSymTbl(syms): +def BuildSymTbl(syms, istemplate=False): - symtbl = SymbolTable() + if istemplate: + symtbl = SymbolTable() + else: + symtbl = Template() for sym in syms: @@ -289,10 +292,10 @@ # Support for templating # Default is no templates - tl = {} + tl = Template() if TEMPLATE: - tl = BuildSymTbl(templs) + tl = BuildSymTbl(templs, istemplate=True) # Call the parser and process the results