[MOBY-guts] biomoby commit

Eddie Kawas kawas at dev.open-bio.org
Fri Oct 2 15:15:48 UTC 2009


kawas
Fri Oct  2 11:15:48 EDT 2009
Update of /home/repository/moby/moby-live/Perl/MOSES-MOBY/lib/MOSES/MOBY/Generators/templates
In directory dev.open-bio.org:/tmp/cvs-serv9568/MOSES-MOBY/lib/MOSES/MOBY/Generators/templates

Modified Files:
	service.tt 
Log Message:
make sure that we dont see undefined variables in hash warnings (thanks pieter)
moby-live/Perl/MOSES-MOBY/lib/MOSES/MOBY/Generators/templates service.tt,1.5,1.6
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOSES-MOBY/lib/MOSES/MOBY/Generators/templates/service.tt,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- /home/repository/moby/moby-live/Perl/MOSES-MOBY/lib/MOSES/MOBY/Generators/templates/service.tt	2008/11/19 14:24:14	1.5
+++ /home/repository/moby/moby-live/Perl/MOSES-MOBY/lib/MOSES/MOBY/Generators/templates/service.tt	2009/10/02 15:15:48	1.6
@@ -239,7 +239,7 @@
 #       $response->record_error ( { code => INPUT_INCORRECT_NAMESPACE,
 #                                   msg  => 'This service requires inputs under the namespaces: {"' . join(',', keys %valid_namespaces) . '"}' } );
 #       return;
-#   } unless $valid_namespaces{$namespace};
+#   } unless defined($namespace) && $valid_namespaces{$namespace};
     [%- ELSE %]
     if (defined $[% input.name %]_collection) {
         foreach my $[% input.name %]_element (@{ $[% input.name %]_collection }) {
@@ -250,7 +250,7 @@
         #       $response->record_error ( { code => INPUT_INCORRECT_NAMESPACE,
         #                                   msg  => 'This service requires inputs under the namespaces: { "' . join(',', keys %valid_namespaces) . '"}' } );
         #       return;
-        #   } unless $valid_namespaces{$namespace};
+        #   } unless defined($namespace) && $valid_namespaces{$namespace};
         }
     }
     [%- END %]




More information about the MOBY-guts mailing list