From: <mk...@us...> - 2003-07-17 10:12:43
|
Update of /cvsroot/csp/APPLICATIONS/SimData/SimData In directory sc8-pr-cvs1:/tmp/cvs-serv5974/SimData Modified Files: Parse.py Log Message: see CHANGES.current Index: Parse.py =================================================================== RCS file: /cvsroot/csp/APPLICATIONS/SimData/SimData/Parse.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Parse.py 10 Jun 2003 23:31:31 -0000 1.6 --- Parse.py 17 Jul 2003 10:12:40 -0000 1.7 *************** *** 208,212 **** return 0 return name in ('List', 'Enum', 'Path', 'Int', 'Bool', 'Number', 'Float', ! 'String', 'Date', 'Vector', 'Matrix', 'External', 'Object', 'Quat', 'LLA', "UTM", "ECEF") --- 208,212 ---- return 0 return name in ('List', 'Enum', 'Path', 'Int', 'Bool', 'Number', 'Float', ! 'String', 'Date', 'Vector', 'Matrix', 'External', 'Key', 'Object', 'Quat', 'LLA', "UTM", "ECEF") *************** *** 239,242 **** --- 239,244 ---- f = external self._externals.extend(list) + elif self._type == "key": + f = SimData.Key else: msg = "Unknown LIST type (%s)" % self._type *************** *** 478,481 **** --- 480,492 ---- # ext.setSource(self._element) + + class KeyHandler(SimpleHandler): + + def __init__(self, id, base, name, attrs): + SimpleHandler.__init__(self, id, base, name, attrs) + + def end(self): + id = self._c.encode('ascii') + self._element = SimData.Key(id) |