From: Chris W. <la...@us...> - 2005-02-19 04:26:13
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9079/OpenInteract2 Modified Files: Context.pm Log Message: OIN-54: add 'assign_datasource_config()' to allow for db configuration rewriting Index: Context.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Context.pm,v retrieving revision 1.83 retrieving revision 1.84 diff -C2 -d -r1.83 -r1.84 *** Context.pm 13 Feb 2005 20:28:41 -0000 1.83 --- Context.pm 19 Feb 2005 04:26:04 -0000 1.84 *************** *** 687,690 **** --- 687,699 ---- # Config shortcut + sub assign_datasource_config { + my ( $self, $name, $config ) = @_; + unless ( $name and $config ) { + return; + } + $self->server_config->{datasource}{ $name } = $config; + return $config; + } + sub lookup_datasource_config { my ( $self, $name ) = @_; *************** *** 1227,1230 **** --- 1236,1244 ---- L<OpenInteract2::DatasourceManager|OpenInteract2::DatasourceManager> + B<assign_datasource_config( $name, \%config )> + + Assigns datasource configuration C<\%config> for datasource named + C<$name>. + B<lookup_datasource_config( [ $name ] )> |