Changed initial namespace to always be "" even if the user selects
limitns.
1 parent b0c5260 commit 7b8b0d764fec7e5bf99c6572da676f423a77d2e5
@tundra tundra authored on 17 Apr 2004
Showing 1 changed file
View
6
test-tc.py
# test-tc.py - A Test Driver For The 'tconfpy' Configuration File Parser
# Copyright (c) 2003-2004 TundraWare Inc. All Rights Reserved.
 
PROGNAME = "tconfpy Test Driver"
RCSID = "$Id: test-tc.py,v 1.132 2004/04/16 19:50:47 tundra Exp $"
RCSID = "$Id: test-tc.py,v 1.133 2004/04/17 19:31:04 tundra Exp $"
VERSION = RCSID.split()[2]
 
# Copyright Information
 
if LIMITNS:
 
# Limit the number of namespaces the user can use
des = VarDescriptor()
des.Value = "NS0" # This is the initial namespace
des.LegalVals = [r"^NS.*", ]
des.Value = "" # This is the initial namespace
des.LegalVals = [r"^NS.*", ] # List of permitted namespace regexes
des.Min = 3
des.Max = 8
st["NAMESPACE"] = des