[open-ils-commits] r11559 - in trunk/Open-ILS: examples src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 15 00:48:32 EST 2008
Author: miker
Date: 2008-12-15 00:48:29 -0500 (Mon, 15 Dec 2008)
New Revision: 11559
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/c-apps/oils_idl-core.c
Log:
attampt namespace-less attribute fetching
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2008-12-15 04:59:50 UTC (rev 11558)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2008-12-15 05:48:29 UTC (rev 11559)
@@ -2246,7 +2246,7 @@
<field reporter:label="ID" name="id" oils_obj:array_position="3" oils_persist:virtual="false" reporter:datatype="id"/>
<field reporter:label="Active" name="active" oils_obj:array_position="4" oils_persist:virtual="false" reporter:datatype="bool"/>
<field reporter:label="Index Field" name="field" oils_obj:array_position="5" oils_persist:virtual="false" reporter:datatype="link"/>
- <field reporter:label="Bump Type" name="bump" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
+ <field reporter:label="Bump Type" name="bump_type" oils_obj:array_position="6" oils_persist:virtual="false" reporter:datatype="text"/>
<field reporter:label="Multiplier" name="multiplier" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="number"/>
</fields>
<links>
Modified: trunk/Open-ILS/src/c-apps/oils_idl-core.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_idl-core.c 2008-12-15 04:59:50 UTC (rev 11558)
+++ trunk/Open-ILS/src/c-apps/oils_idl-core.c 2008-12-15 05:48:29 UTC (rev 11559)
@@ -321,16 +321,16 @@
osrfStringArray* map = osrfNewStringArray(0);
string_tmp = NULL;
- if( (string_tmp = (char*)xmlGetProp(_a, BAD_CAST "permission") )) {
+ if( (string_tmp = (char*)xmlGetNoNsProp(_a, BAD_CAST "permission") )) {
char* map_list = strdup( string_tmp );
osrfLogDebug(OSRF_LOG_MARK, "Permacrud permission list is %s", string_tmp );
if (strlen( map_list ) > 0) {
char* st_tmp = NULL;
- char* _map_class = strtok_r(map_list, "|", &st_tmp);
+ char* _map_class = strtok_r(map_list, " ", &st_tmp);
osrfStringArrayAdd(map, strdup(_map_class));
- while ((_map_class = strtok_r(NULL, "|", &st_tmp))) {
+ while ((_map_class = strtok_r(NULL, " ", &st_tmp))) {
osrfStringArrayAdd(map, strdup(_map_class));
}
}
@@ -338,20 +338,20 @@
}
osrfHashSet( _tmp, map, "permission");
- osrfHashSet( _tmp, (char*)xmlGetProp(_a, BAD_CAST "global_required"), "global_required");
+ osrfHashSet( _tmp, (char*)xmlGetNoNsProp(_a, BAD_CAST "global_required"), "global_required");
map = osrfNewStringArray(0);
string_tmp = NULL;
- if( (string_tmp = (char*)xmlGetProp(_a, BAD_CAST "context_field") )) {
+ if( (string_tmp = (char*)xmlGetNoNsProp(_a, BAD_CAST "context_field") )) {
char* map_list = strdup( string_tmp );
osrfLogDebug(OSRF_LOG_MARK, "Permacrud context_field list is %s", string_tmp );
if (strlen( map_list ) > 0) {
char* st_tmp = NULL;
- char* _map_class = strtok_r(map_list, "|", &st_tmp);
+ char* _map_class = strtok_r(map_list, " ", &st_tmp);
osrfStringArrayAdd(map, strdup(_map_class));
- while ((_map_class = strtok_r(NULL, "|", &st_tmp))) {
+ while ((_map_class = strtok_r(NULL, " ", &st_tmp))) {
osrfStringArrayAdd(map, strdup(_map_class));
}
}
@@ -371,7 +371,7 @@
}
string_tmp = NULL;
- if( (string_tmp = (char*)xmlGetProp(_f, BAD_CAST "link")) ) {
+ if( (string_tmp = (char*)xmlGetNoNsProp(_f, BAD_CAST "link")) ) {
osrfLogDebug(OSRF_LOG_MARK, "Permacrud context link definition is %s", string_tmp );
osrfHash* _flink = oilsIDLFindPath("/%s/links/%s", osrfHashGet(usrData, "classname"), string_tmp);
@@ -384,16 +384,16 @@
map = osrfNewStringArray(0);
string_tmp = NULL;
- if( (string_tmp = (char*)xmlGetProp(_f, BAD_CAST "field") )) {
+ if( (string_tmp = (char*)xmlGetNoNsProp(_f, BAD_CAST "field") )) {
char* map_list = strdup( string_tmp );
osrfLogDebug(OSRF_LOG_MARK, "Permacrud foreign context field list is %s", string_tmp );
if (strlen( map_list ) > 0) {
char* st_tmp = NULL;
- char* _map_class = strtok_r(map_list, "|", &st_tmp);
+ char* _map_class = strtok_r(map_list, " ", &st_tmp);
osrfStringArrayAdd(map, strdup(_map_class));
- while ((_map_class = strtok_r(NULL, "|", &st_tmp))) {
+ while ((_map_class = strtok_r(NULL, " ", &st_tmp))) {
osrfStringArrayAdd(map, strdup(_map_class));
}
}
@@ -403,16 +403,16 @@
} else {
- if( (string_tmp = (char*)xmlGetProp(_f, BAD_CAST "field") )) {
+ if( (string_tmp = (char*)xmlGetNoNsProp(_f, BAD_CAST "field") )) {
char* map_list = strdup( string_tmp );
osrfLogDebug(OSRF_LOG_MARK, "Permacrud foreign context field list is %s", string_tmp );
if (strlen( map_list ) > 0) {
char* st_tmp = NULL;
- char* _map_class = strtok_r(map_list, "|", &st_tmp);
+ char* _map_class = strtok_r(map_list, " ", &st_tmp);
osrfStringArrayAdd(osrfHashGet( _tmp, "local_context"), strdup(_map_class));
- while ((_map_class = strtok_r(NULL, "|", &st_tmp))) {
+ while ((_map_class = strtok_r(NULL, " ", &st_tmp))) {
osrfStringArrayAdd(osrfHashGet( _tmp, "local_context"), strdup(_map_class));
}
}
More information about the open-ils-commits
mailing list