summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNima Talebi <nima@autonomy.net.au>2009-05-23 15:21:42 +1000
committerNima Talebi <nima@autonomy.net.au>2009-05-23 15:21:42 +1000
commitf17fca75b0766caeba992bd62ab9c87cc6a79acc (patch)
tree8b2b4187a01b9fe26c76f37ca76ca8218ed54873 /src
parenta18a72fab2a622077d5257003b09be30ab283339 (diff)
Completed test case
Removed trailing spaces from xml data file. Commented out fprintf()s for now (Perhapse should add them to the debug build at least).
Diffstat (limited to 'src')
-rw-r--r--src/pythonmap.xml2
-rw-r--r--src/xmlpythonizer.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pythonmap.xml b/src/pythonmap.xml
index b2d2d31..f4f8336 100644
--- a/src/pythonmap.xml
+++ b/src/pythonmap.xml
@@ -288,7 +288,7 @@
<Map keytype="constant" key="data" valuetype="dict">
<Map keytype="constant" key="Designation" valuetype="string" value="Designation"/>
<Map keytype="constant" key="Current Usage" valuetype="string" value="CurrentUsage"/>
- <Map keytype="constant" key="Characteristics"
+ <Map keytype="constant" key="Characteristics"
valuetype="list:string" value="SlotCharacteristics/Characteristic"
fixedsize="10" index_attr="index"/>
<Map keytype="constant" key="SlotLength" valuetype="string" value="SlotLength"/>
diff --git a/src/xmlpythonizer.c b/src/xmlpythonizer.c
index dceeaa2..f1d755e 100644
--- a/src/xmlpythonizer.c
+++ b/src/xmlpythonizer.c
@@ -672,7 +672,7 @@ PyObject *_deep_pythonize(PyObject *retdata, ptzMAP *map_p, xmlNode *data_n, int
char msg[8094];
snprintf(msg, 8092, "Could not locate XML path node: %s (Defining key: %s)%c",
map_p->value, map_p->key, 0);
- fprintf(stderr, msg);
+ //fprintf(stderr, msg);
PyErr_SetString(PyExc_LookupError, msg);
if( xpo != NULL ) {
@@ -765,7 +765,7 @@ PyObject *pythonizeXMLnode(ptzMAP *in_map, xmlNode *data_n) {
char msg[8094];
snprintf(msg, 8092, "Could not locate XML path node: %s (Defining key: %s)%c",
map_p->rootpath, map_p->key, 0);
- fprintf(stderr, msg);
+ //fprintf(stderr, msg);
PyErr_SetString(PyExc_LookupError, msg);
if( xpo != NULL ) {