[open-ils-commits] r9363 - in trunk/Open-ILS: examples
src/perlmods/OpenILS/Application
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 15 13:20:19 EDT 2008
Author: miker
Date: 2008-04-15 12:42:11 -0400 (Tue, 15 Apr 2008)
New Revision: 9363
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm
Log:
default to pulling all fields from field_safe classes
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2008-04-15 16:02:42 UTC (rev 9362)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2008-04-15 16:42:11 UTC (rev 9363)
@@ -2819,7 +2819,7 @@
<link field="usr" reltype="has_a" key="id" map="" class="au"/>
</links>
</class>
- <class id="i18n" controller="open-ils.cstore" oils_obj:fieldmapper="config::i18n_core" oils_persist:tablename="config.i18n_core">
+ <class id="i18n" controller="open-ils.cstore" oils_obj:fieldmapper="config::i18n_core" oils_persist:tablename="config.i18n_core" oils_persist:field_safe="true">
<fields oils_persist:primary="id" oils_persist:sequence="config.i18n_core_id_se">
<field name="isnew" oils_obj:array_position="0" oils_persist:virtual="true" />
<field name="ischanged" oils_obj:array_position="1" oils_persist:virtual="true" />
@@ -2831,6 +2831,14 @@
<field name="string" oils_obj:array_position="7" oils_persist:virtual="false" reporter:datatype="text"/>
</fields>
<links/>
+ <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
+ <actions>
+ <create permission="CREATE_TRANSLATION" global_required="true"/>
+ <retrieve permission="CREATE_TRANSLATION|UPDATE_TRANSLATION|DELETE_TRANSLATION" global_required="true"/>
+ <update permission="UPDATE_TRANSLATION" global_required="true"/>
+ <delete permission="DELETE_TRANSLATION" global_required="true"/>
+ </actions>
+ </permacrud>
</class>
<class id="rof" controller="open-ils.reporter-store" oils_obj:fieldmapper="reporter::output_folder" oils_persist:tablename="reporter.output_folder">
<fields oils_persist:primary="id" oils_persist:sequence="reporter.output_folder_id_seq">
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm 2008-04-15 16:02:42 UTC (rev 9362)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm 2008-04-15 16:42:11 UTC (rev 9363)
@@ -61,6 +61,10 @@
my $query = $obj->{query};
my $fields = $obj->{fields};
+ if (!$fields) {
+ $fields = [ $obj->real_fields ];
+ }
+
$log->debug( 'Field list: '. OpenSRF::Utils::JSON->perl2JSON( $fields ) );
$log->debug( 'Query: '. OpenSRF::Utils::JSON->perl2JSON( $query ) );
More information about the open-ils-commits
mailing list