[open-ils-commits] r9365 -
trunk/Open-ILS/src/perlmods/OpenILS/Application
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 15 13:55:30 EDT 2008
Author: miker
Date: 2008-04-15 13:17:22 -0400 (Tue, 15 Apr 2008)
New Revision: 9365
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm
Log:
getting perl fieldmapper class name from idl
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm 2008-04-15 17:09:40 UTC (rev 9364)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Fielder.pm 2008-04-15 17:17:22 UTC (rev 9365)
@@ -62,9 +62,10 @@
my $fields = $obj->{fields};
my $obj_class = $self->{class_hint};
+ my $fm_class = $self->{class_name};
if (!$fields) {
- $fields = [ "Fieldmapper::$obj_class"->real_fields ];
+ $fields = [ $fm_class->real_fields ];
}
$log->debug( 'Field list: '. OpenSRF::Utils::JSON->perl2JSON( $fields ) );
@@ -96,12 +97,14 @@
try {
for my $class_node ( $xpc->findnodes( '//idl:class[@oils_persist:field_safe="true"]', $idl->documentElement ) ) {
my $hint = $class_node->getAttribute('id');
+ my $fm = $class_node->getAttributeNS('http://open-ils.org/spec/opensrf/IDL/objects/v1','fieldmapper');
$log->debug("Fielder class_node $hint");
__PACKAGE__->register_method(
method => 'fielder_fetch',
api_name => 'open-ils.fielder.' . $hint,
class_hint => $hint,
+ class_name => "Fieldmapper::$fm",
stream => 1,
argc => 1
);
More information about the open-ils-commits
mailing list