Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21363/OpenInteract2/Config
Modified Files:
Initializer.pm
Log Message:
OIN-154: add data to object_description and make it a runtime process rather than a mostly-startup-time one
Index: Initializer.pm
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config/Initializer.pm,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** Initializer.pm 4 Mar 2005 03:35:56 -0000 1.22
--- Initializer.pm 17 Mar 2005 20:30:45 -0000 1.23
***************
*** 178,212 ****
}
- # NOTE: This requires that the action table is already read in. The
- # process defined in OI2::Context/Setup ensures this, but if you're
- # doing initialization some other way: YOU'VE BEEN WARNED.
-
- sub _spops_display_info {
- my ( $init, $type, $config ) = @_;
- return unless ( $type eq 'spops' );
- my $display_info = $config->{display};
- return unless ( ref $display_info eq 'HASH' );
- $log ||= get_logger( LOG_INIT );
- $log->info( "Translating correct URL for 'display' in '$config->{key}'" );
- my $u = OpenInteract2::URL->new();
- if ( $display_info->{url} ) {
- $display_info->{url} =
- $u->create( $display_info->{url} );
- }
- elsif ( $display_info->{ACTION} ) {
- $display_info->{url} =
- $u->create_from_action( $display_info->{ACTION},
- $display_info->{TASK} );
- delete $display_info->{TASK};
- if ( $display_info->{TASK_EDIT} ) {
- $display_info->{url_edit} = $u->create_from_action(
- $display_info->{ACTION}, $display_info->{TASK_EDIT} );
- delete $display_info->{TASK_EDIT};
- }
- delete $display_info->{ACTION};
- }
- }
-
-
# Changes:
# [user has_a]
--- 178,181 ----
***************
*** 305,309 ****
__PACKAGE__->add_observer( \&_spops_date_conversion );
__PACKAGE__->add_observer( \&_spops_fulltext );
- __PACKAGE__->add_observer( \&_spops_display_info );
__PACKAGE__->add_observer( \&_spops_set_hasa );
__PACKAGE__->add_observer( \&_spops_set_dbi );
--- 274,277 ----
***************
*** 593,602 ****
long as at least one field is listed in 'fulltext_field'.
- =item B<Display Munging>
-
- Configurations defining 'display' with 'ACTION' and 'TASK' keys get a
- 'url' key with the properly rewritten URL; those with both 'ACTION'
- and 'TASK_EDIT' keys get a 'url_edit' key as well.
-
=item B<Field Discovery>
--- 561,564 ----
|