[open-ils-commits] r17180 - trunk/Open-ILS/src/c-apps (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Aug 11 23:22:13 EDT 2010
Author: scottmk
Date: 2010-08-11 23:22:10 -0400 (Wed, 11 Aug 2010)
New Revision: 17180
Modified:
trunk/Open-ILS/src/c-apps/idlval.c
Log:
Complain when a sequence name is not qualified by a schema.
M Open-ILS/src/c-apps/idlval.c
Modified: trunk/Open-ILS/src/c-apps/idlval.c
===================================================================
--- trunk/Open-ILS/src/c-apps/idlval.c 2010-08-12 01:23:58 UTC (rev 17179)
+++ trunk/Open-ILS/src/c-apps/idlval.c 2010-08-12 03:22:10 UTC (rev 17180)
@@ -733,13 +733,18 @@
xmlGetLineNo( fields ), id );
rc = 1;
}
- } else if( !strcmp( attr_name, "sequence" ) ) {
+ } else if( !strcmp( attr_name, "sequence" )) {
sequence = xmlGetProp( fields, (xmlChar*) "sequence" );
if( '\0' == sequence[0] ) {
printf(
"Line %ld: value of sequence attribute is an empty string for class \"%s\"\n",
xmlGetLineNo( fields ), id );
rc = 1;
+ } else if( !strchr( (const char*) sequence, '.' )) {
+ printf(
+ "Line %ld: name of sequence for class \"%s\" is not qualified by schema\n",
+ xmlGetLineNo( fields ), id );
+ rc = 1;
}
} else {
printf( "Line %ld: Unexpected fields attribute \"%s\" in class \"%s\"\n",
More information about the open-ils-commits
mailing list