You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(381) |
Nov
(176) |
Dec
(310) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(334) |
Feb
(96) |
Mar
(149) |
Apr
(214) |
May
(120) |
Jun
(56) |
Jul
(10) |
Aug
(273) |
Sep
(182) |
Oct
(56) |
Nov
(125) |
Dec
(22) |
2003 |
Jan
(63) |
Feb
(181) |
Mar
(498) |
Apr
(433) |
May
(39) |
Jun
(512) |
Jul
(276) |
Aug
(156) |
Sep
(101) |
Oct
(66) |
Nov
(24) |
Dec
(161) |
2004 |
Jan
(1) |
Feb
(377) |
Mar
(68) |
Apr
(26) |
May
(107) |
Jun
(333) |
Jul
(13) |
Aug
|
Sep
(76) |
Oct
(88) |
Nov
(170) |
Dec
(91) |
2005 |
Jan
(52) |
Feb
(239) |
Mar
(402) |
Apr
(15) |
May
(2) |
Jun
(1) |
Jul
(13) |
Aug
|
Sep
(71) |
Oct
(34) |
Nov
|
Dec
|
2006 |
Jan
(5) |
Feb
(5) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(7) |
Oct
(2) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Chris W. <la...@us...> - 2004-09-27 03:52:17
|
Update of /cvsroot/openinteract/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31938 Modified Files: Build.PL Makefile.PL Log Message: OIN-78: fix dependencies Index: Build.PL =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/Build.PL,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Build.PL 6 Jun 2004 06:15:12 -0000 1.19 --- Build.PL 27 Sep 2004 03:51:56 -0000 1.20 *************** *** 32,35 **** --- 32,36 ---- 'HTML::Entities' => 1.13, 'Lingua::Stem' => 0.50, + 'Locale::Maketext' => 1.06, 'Log::Dispatch' => 2.00, 'Log::Log4perl' => 0.34, Index: Makefile.PL =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/Makefile.PL,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Makefile.PL 6 Jun 2004 06:15:12 -0000 1.24 --- Makefile.PL 27 Sep 2004 03:51:56 -0000 1.25 *************** *** 32,35 **** --- 32,36 ---- 'HTML::Entities' => 1.13, 'Lingua::Stem' => 0.50, + 'Locale::Maketext' => 1.06, 'Log::Dispatch' => 2.00, 'Log::Log4perl' => 0.34, |
From: Chris W. <la...@us...> - 2004-09-27 03:47:02
|
Update of /cvsroot/openinteract/OpenInteract2/script In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31116 Modified Files: oi2_manage Log Message: OIN-80; never reuse the website configuration/logfile Index: oi2_manage =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/script/oi2_manage,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** oi2_manage 26 Sep 2004 01:47:59 -0000 1.26 --- oi2_manage 27 Sep 2004 03:46:53 -0000 1.27 *************** *** 70,76 **** } ! my $log = ( -d $OPT{website_dir} and $OPT_task ne 'create_website' ) ! ? OpenInteract2::Log->init_from_website( $OPT{website_dir} ) ! : OpenInteract2::Log->init_file( 'oi2_manage.log' ); if ( $OPT_debug ) { --- 70,79 ---- } ! # Previously we re-used the log for the website if it was ! # available, but that's too confusing b/c of permission issues and ! # the fact that you could be mingling your oi2_manage messages ! # with your live website ! ! my $log = OpenInteract2::Log->init_file( 'oi2_manage.log' ); if ( $OPT_debug ) { |
From: Chris W. <la...@us...> - 2004-09-27 03:39:01
|
Update of /cvsroot/openinteract/OpenInteract2/doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29300 Modified Files: Intro.pod Log Message: OIN-55: fix typo Index: Intro.pod =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/doc/Manual/Intro.pod,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** Intro.pod 14 Jul 2004 03:25:28 -0000 1.11 --- Intro.pod 27 Sep 2004 03:38:52 -0000 1.12 *************** *** 23,30 **** A very flexible separation of presentation and data access: you can ! use one template for accessing data from different sources using one ! template (e.g., a listing of users from the system, from an LDAP ! server, from an NT/SMB authentication controller, etc.) or you can use ! one set of data to fill multiple templates. =item * --- 23,30 ---- A very flexible separation of presentation and data access: you can ! use one template for accessing data from different sources (e.g., a ! listing of users from the system, from an LDAP server, from an NT/SMB ! authentication controller, etc.) or you can use one set of data to ! fill multiple templates. =item * |
From: Chris W. <la...@us...> - 2004-09-27 03:35:23
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28321 Modified Files: URL.pm Log Message: OIN-81: get rid of various warnings under -w Index: URL.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/URL.pm,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** URL.pm 7 Jun 2004 01:20:34 -0000 1.21 --- URL.pm 27 Sep 2004 03:35:14 -0000 1.22 *************** *** 6,9 **** --- 6,10 ---- use Log::Log4perl qw( get_logger ); use OpenInteract2::Constants qw( :log ); + use OpenInteract2::Context qw( CTX DEPLOY_URL DEPLOY_IMAGE_URL DEPLOY_STATIC_URL ); use OpenInteract2::Log qw( uchk ); use URI; *************** *** 11,31 **** use constant QUERY_ARG_SEPARATOR => '&'; - # This is kind of ugly but necessary to import the Context constants - - sub CTX {} - sub DEPLOY_URL {} - sub DEPLOY_IMAGE_URL {} - sub DEPLOY_STATIC_URL {} - - { - BEGIN { $^W = 0 } - require OpenInteract2::Context; - OpenInteract2::Context->import( - qw( CTX DEPLOY_URL DEPLOY_IMAGE_URL DEPLOY_STATIC_URL ) - ); - } - - # Done with the ugly stuff... - my ( $log ); --- 12,15 ---- |
From: Chris W. <la...@us...> - 2004-09-27 03:35:23
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28321/Config Modified Files: PackageChanges.pm Initializer.pm Log Message: OIN-81: get rid of various warnings under -w Index: PackageChanges.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config/PackageChanges.pm,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PackageChanges.pm 10 Jun 2004 03:20:34 -0000 1.9 --- PackageChanges.pm 27 Sep 2004 03:35:14 -0000 1.10 *************** *** 190,194 **** unless ( $version and $version =~ /^\d+\.\d+$/ ) { oi_error "Version argument '$version' is invalid, it ", ! "should match '\d+\.\d+'"; } return $version; --- 190,194 ---- unless ( $version and $version =~ /^\d+\.\d+$/ ) { oi_error "Version argument '$version' is invalid, it ", ! "should match '\\d+\\.\\d+'"; } return $version; Index: Initializer.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config/Initializer.pm,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Initializer.pm 26 Sep 2004 23:53:33 -0000 1.17 --- Initializer.pm 27 Sep 2004 03:35:14 -0000 1.18 *************** *** 218,222 **** return unless ( ref $hasa_conf eq 'HASH' ); $log ||= get_logger( LOG_INIT ); ! $log->info( "Modifying has_a for '$config->{key}'" ); foreach my $hasa_class ( keys %{ $hasa_conf } ) { --- 218,222 ---- return unless ( ref $hasa_conf eq 'HASH' ); $log ||= get_logger( LOG_INIT ); ! $log->is_info && $log->info( "Modifying has_a for '$config->{key}'" ); foreach my $hasa_class ( keys %{ $hasa_conf } ) { *************** *** 225,235 **** $mappings = join( '; ', @{ $mappings } ); } ! $log->info( "Will replace: $mappings" ); my @pieces = split /\s*;\s*/, $mappings; my %replacement = (); foreach my $piece ( @pieces ) { my ( $name, $field ) = split /\s*:\s*/, $piece, 2; $replacement{ $name } = $field; ! $log->info( "Setting $name = $field" ); } $config->{ $hasa_class } = \%replacement; --- 225,238 ---- $mappings = join( '; ', @{ $mappings } ); } ! $log->is_info && ! $log->info( "Will replace '$mappings' within ", ! "'$config->{key}.has_a'" ); my @pieces = split /\s*;\s*/, $mappings; my %replacement = (); foreach my $piece ( @pieces ) { my ( $name, $field ) = split /\s*:\s*/, $piece, 2; + next unless ( $name and $field ); $replacement{ $name } = $field; ! $log->is_info && $log->info( "Setting $name = $field" ); } $config->{ $hasa_class } = \%replacement; |
From: Chris W. <la...@us...> - 2004-09-27 03:25:41
|
Update of /cvsroot/openinteract/OpenInteract2/pkg/base_security/OpenInteract2/Action In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25750/OpenInteract2/Action Modified Files: Security.pm Log Message: OIN-81: get rid of warning in security action Index: Security.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/pkg/base_security/OpenInteract2/Action/Security.pm,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Security.pm 9 Jun 2004 01:40:19 -0000 1.12 --- Security.pm 27 Sep 2004 03:25:22 -0000 1.13 *************** *** 131,137 **** sub _display_action_security { my ( $self ) = @_; - my ( $action ); my $request = CTX->request; - my $name = $self->param( 'action_name' ) || $request->param( 'action_name' ); --- 131,135 ---- *************** *** 139,144 **** unless ( $action->is_secure ) { ! return $self->execute({ task => 'display_not_secured', ! object_class => ref( $action ) }); } --- 137,144 ---- unless ( $action->is_secure ) { ! return $self->execute({ ! task => 'display_not_secured', ! object_class => ref( $action ) ! }); } |
From: Chris W. <la...@us...> - 2004-09-27 03:25:41
|
Update of /cvsroot/openinteract/OpenInteract2/pkg/base_security In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25750 Modified Files: package.conf Changes Log Message: OIN-81: get rid of warning in security action Index: package.conf =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/pkg/base_security/package.conf,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** package.conf 9 Jun 2004 01:40:19 -0000 1.17 --- package.conf 27 Sep 2004 03:25:23 -0000 1.18 *************** *** 1,4 **** name base_security ! version 2.16 author Chris Winters (ch...@cw...) url http://www.openinteract.org/ --- 1,4 ---- name base_security ! version 2.17 author Chris Winters (ch...@cw...) url http://www.openinteract.org/ Index: Changes =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/pkg/base_security/Changes,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Changes 9 Jun 2004 01:40:19 -0000 1.16 --- Changes 27 Sep 2004 03:25:23 -0000 1.17 *************** *** 1,4 **** --- 1,8 ---- Revision history for OpenInteract package base_security. + 2.17 Sun Sep 26 23:24:25 EDT 2004 + + Fix warning in action class. + 2.16 Tue Jun 8 21:36:30 EDT 2004 |
From: Chris W. <la...@us...> - 2004-09-27 03:19:03
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/ContentGenerator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23973 Modified Files: TT2Process.pm Log Message: OIN-67: eval the TT->process call and catch the error thrown, returning the error content instead of just die()ing Index: TT2Process.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/ContentGenerator/TT2Process.pm,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** TT2Process.pm 18 Feb 2004 05:25:27 -0000 1.18 --- TT2Process.pm 27 Sep 2004 03:18:45 -0000 1.19 *************** *** 81,87 **** my ( $html ); ! $template->process( $source, $template_vars, \$html ) ! || oi_error "Cannot process template '$template_name': ", ! $template->error(); $log->is_info && $log->info( "Processed template '$template_name' ok" ); --- 81,93 ---- my ( $html ); ! eval { ! $template->process( $source, $template_vars, \$html ) ! || die "Cannot process template '$template_name': ", ! $template->error(), "\n"; ! }; ! if ( $@ ) { ! $log->error( "Failed to process template '$template_name': $@" ); ! return $@; ! } $log->is_info && $log->info( "Processed template '$template_name' ok" ); *************** *** 515,517 **** =head1 AUTHORS ! Chris Winters E<lt>ch...@cw...E<gt> \ No newline at end of file --- 521,523 ---- =head1 AUTHORS ! Chris Winters E<lt>ch...@cw...E<gt> |
From: Chris W. <la...@us...> - 2004-09-26 23:54:57
|
Update of /cvsroot/openinteract/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14402 Modified Files: MANIFEST Log Message: add the allcaps sample filter; change OI2::Filter to OI2::Observer, and modify the test too Index: MANIFEST =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/MANIFEST,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** MANIFEST 26 Sep 2004 00:59:05 -0000 1.86 --- MANIFEST 26 Sep 2004 23:54:48 -0000 1.87 *************** *** 64,68 **** lib/OpenInteract2/Exception/Security.pm lib/OpenInteract2/File.pm ! lib/OpenInteract2/Filter.pm lib/OpenInteract2/FullTextIndexer.pm lib/OpenInteract2/FullTextIterator.pm --- 64,68 ---- lib/OpenInteract2/Exception/Security.pm lib/OpenInteract2/File.pm ! lib/OpenInteract2/Filter/AllCaps.pm lib/OpenInteract2/FullTextIndexer.pm lib/OpenInteract2/FullTextIterator.pm *************** *** 125,128 **** --- 125,129 ---- lib/OpenInteract2/Manual/TutorialAdvanced.pod lib/OpenInteract2/Manual/Widgets.pod + lib/OpenInteract2/Observer.pm lib/OpenInteract2/Package.pm lib/OpenInteract2/Repository.pm *************** *** 203,208 **** sample/website/conf/README sample/website/conf/base.conf - sample/website/conf/filter.ini sample/website/conf/log4perl.conf sample/website/conf/sample-action_override.ini sample/website/conf/sample-spops_override.ini --- 204,209 ---- sample/website/conf/README sample/website/conf/base.conf sample/website/conf/log4perl.conf + sample/website/conf/observer.ini sample/website/conf/sample-action_override.ini sample/website/conf/sample-spops_override.ini *************** *** 313,317 **** t/exception.t t/file.t - t/filter.t t/manage_check_package.t t/manage_clean_sessions.t --- 314,317 ---- *************** *** 337,340 **** --- 337,341 ---- t/manage_upgrade.t t/manage_view_session.t + t/observer.t t/package.t t/repository.t |
From: Chris W. <la...@us...> - 2004-09-26 23:54:08
|
Update of /cvsroot/openinteract/OpenInteract2/doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14247/doc/Manual Modified Files: Changes.pod Log Message: latest changes Index: Changes.pod =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/doc/Manual/Changes.pod,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** Changes.pod 25 Sep 2004 18:21:49 -0000 1.46 --- Changes.pod 26 Sep 2004 23:53:57 -0000 1.47 *************** *** 20,25 **** =head1 THE FUTURE ! OI2 is currently at 1.99_04, equivalent to 2.0 beta 4. The next ! release should be a release candidate (1.99_05/2.0 RC1) -- it will have new features (see below) but everything else should be bugfixes after that or pushed off to 2.01. --- 20,25 ---- =head1 THE FUTURE ! OI2 is currently at 1.99_05, equivalent to 2.0 beta 5. The next ! release should be a release candidate (1.99_06/2.0 RC1) -- it will have new features (see below) but everything else should be bugfixes after that or pushed off to 2.01. *************** *** 52,55 **** --- 52,75 ---- ini_reader = OpenInteract2::Config::Ini + [request] + apache = OpenInteract2::Request::Apache + apache2 = OpenInteract2::Request::Apache2 + cgi = OpenInteract2::Request::CGI + lwp = OpenInteract2::Request::LWP + standalone = OpenInteract2::Request::Standalone + + [response] + apache = OpenInteract2::Response::Apache + apache2 = OpenInteract2::Response::Apache2 + cgi = OpenInteract2::Response::CGI + lwp = OpenInteract2::Response::LWP + standalone = OpenInteract2::Response::Standalone + + You no longer declare filter-action mappings in 'server.ini'. Both the + observer declarations and mapping observers to actions go into a new + 'observer.ini' file. This replaces 'filter.ini' as filters are just a + particular type of observer. See L<OpenInteract2::Observer> for more + information. + =head2 Major Changes *************** *** 103,106 **** --- 123,138 ---- =item * + Request and Response implementations are now listed in the server + configuration rather than just in code. + + =item * + + Since filters are just specific instances of observers we changed all + references from 'filter' to 'observer' -- L<OpenInteract2::Filter> is + now L<OpenInteract2::Observer>, and the package configuration key + 'filter' is now 'observer'. + + =item * + Lots of changes to the packages included in the distribution. *************** *** 198,202 **** =back ! L<OpenInteract2::Config::Initializer|OpenInteract2::Config::Initializer> =over 4 --- 230,234 ---- =back ! L<OpenInteract2::Config::Initializer> =over 4 *************** *** 210,213 **** --- 242,254 ---- =back + L<OpenInteract2::Config::Package> + + =over 4 + + =item * + + Change all 'filter' references to 'observer'. + + =back L<OpenInteract2::Config::PackageChanges> *************** *** 258,261 **** --- 299,312 ---- =back + L<OpenInteract2::Filter::AllCaps> + + =over 4 + + =item * + + Added sample filter to change content to all caps. + + =back + L<OpenInteract2::FullTextRules> *************** *** 354,358 **** =back ! L<OpenInteract::Response> and L<OpenInteract::Request>, plus subclasses =over 4 --- 405,409 ---- =back ! L<OpenInteract::Response> and L<OpenInteract::Request> =over 4 *************** *** 360,366 **** =item * ! OIN-62: Parent class no longer has a notion of the 'current' request/response. Just get them from the CTX object. =back --- 411,424 ---- =item * ! OIN-82: Parent class no longer has a notion of the 'current' request/response. Just get them from the CTX object. + =item * + + OIN-68: Move all type-to-class mappings from code into server + configuration. This makes it easy to use your custom implementations + where necessary -- you can remap 'apache' to + 'OI2::Request::Apache::MyCustom. + =back *************** *** 400,403 **** --- 458,482 ---- =back + C<sample/website/filter.ini> + + =over 4 + + =item * + + Removed in favor of 'observer.ini'; you can delete it if you like. + + =back + + C<sample/website/observer.ini> + + =over 4 + + =item * + + New file used for registering all observers and mapping them to + actions. + + =back + C<sample/website/server.ini> *************** *** 485,488 **** --- 564,568 ---- + =head1 1.99_04 (2.0 beta 4), 22 May 2004 |
From: Chris W. <la...@us...> - 2004-09-26 23:53:45
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14214/lib/OpenInteract2/Config Modified Files: Initializer.pm IniFile.pm Log Message: change filter references to observer Index: Initializer.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config/Initializer.pm,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Initializer.pm 5 Jul 2004 12:55:17 -0000 1.16 --- Initializer.pm 26 Sep 2004 23:53:33 -0000 1.17 *************** *** 451,458 **** my ( $class, $type, $config ) = @_; return unless ( $type eq 'action' ); ! ! if ( $config->{is_googlable} eq 'yes' ) { ! OpenInteract2::Filter->add_filter_to_action( ! 'google', $config->{class} ); } } --- 451,456 ---- my ( $class, $type, $config ) = @_; return unless ( $type eq 'action' ); ! if ( 'yes' eq lc $config->{is_googlable} ) { ! CTX->map_observer( google => $config->{class} ); } } *************** *** 501,505 **** is_secure = yes ! In 1.x you had to add a class to the ISA. Or to enable fulltext searching of your object you can just add to --- 499,504 ---- is_secure = yes ! In 1.x you had to add a class to the ISA. Which do you think is easier ! to read and maintain? Or to enable fulltext searching of your object you can just add to *************** *** 508,512 **** is_searchable = yes ! and list the fields whose contentyou would like indexed B<without caring about how they are indexed>. These are both implemented using this same event-based scheme. --- 507,511 ---- is_searchable = yes ! and list the fields whose content you would like indexed B<without caring about how they are indexed>. These are both implemented using this same event-based scheme. Index: IniFile.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config/IniFile.pm,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** IniFile.pm 13 Jun 2004 02:05:31 -0000 1.7 --- IniFile.pm 26 Sep 2004 23:53:33 -0000 1.8 *************** *** 118,122 **** the server configuration -- since it is in INI format! -- and your custom reader will be used for everything else (SPOPS, action, ! repository, filter, global overrides, etc.). =head1 METHODS --- 118,122 ---- the server configuration -- since it is in INI format! -- and your custom reader will be used for everything else (SPOPS, action, ! repository, observer, global overrides, etc.). =head1 METHODS |
From: Chris W. <la...@us...> - 2004-09-26 23:52:52
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14045/lib/OpenInteract2 Modified Files: Controller.pm Log Message: modify call to map an observer to an action Index: Controller.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Controller.pm,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Controller.pm 13 Jun 2004 04:54:37 -0000 1.22 --- Controller.pm 26 Sep 2004 23:52:42 -0000 1.23 *************** *** 48,52 **** # cases... ! # Add a filter at runtime to the main action. So you could do: # # /news/display/?news_id=55&OI_FILTER=pittsburghese --- 48,53 ---- # cases... ! # Add a filter (observer) at runtime to the main action. So you ! # could do: # # /news/display/?news_id=55&OI_FILTER=pittsburghese *************** *** 62,66 **** if ( scalar @filter_add ) { foreach my $filter_name ( @filter_add ) { ! OpenInteract2::Filter->add_filter_to_action( $filter_name, $action ); } } --- 63,67 ---- if ( scalar @filter_add ) { foreach my $filter_name ( @filter_add ) { ! CTX->map_observer( $filter_name, $action ); } } |
From: Chris W. <la...@us...> - 2004-09-26 23:52:06
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13920/lib/OpenInteract2 Modified Files: Action.pm Log Message: modify observer/filter docs Index: Action.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Action.pm,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** Action.pm 25 Sep 2004 17:40:48 -0000 1.53 --- Action.pm 26 Sep 2004 23:51:47 -0000 1.54 *************** *** 1363,1372 **** All actions are B<observable>. This means that any number of classes, ! objects or subroutines can register themselves with a type of action ! and be activated when that action publishes a notification. It is a ! great way to decouple an object from other functions that want to ! operate on the results of that object. The observed object (in this ! case, the action) does not know how many observers there are, or even ! if any exist at all. =head2 Observable Scenario --- 1363,1372 ---- All actions are B<observable>. This means that any number of classes, ! objects or subroutines can register themselves with an action class ! (or a specific action instance) and be activated when that action ! publishes a notification. It is a great way to decouple an object from ! other functions that want to operate on the results of that ! object. The observed object (in this case, the action) does not know ! how many observers there are, or even if any exist at all. =head2 Observable Scenario *************** *** 1385,1394 **** How to implement: ! package OpenInteract2::NewUserPublish; use strict; sub update { ! my ( $class, $action, $notify_type ) = @_; if ( $notify_type eq 'register-confirm' ) { my $user = $action->param( 'user' ); --- 1385,1394 ---- How to implement: ! package OpenInteract2::Observer::NewUserPublish; use strict; sub update { ! my ( $class, $action, $notify_type, $user ) = @_; if ( $notify_type eq 'register-confirm' ) { my $user = $action->param( 'user' ); *************** *** 1396,1405 **** foreach my $server_name ( @{ $network_servers } ) { my $server = CTX->queue_connect( $server_name ); ! $server->publish( 'new_user', $user ); } } } ! ! OpenInteract2::Action::NewUser->add_observer( __PACKAGE__ ); And the action would notify all observers like this: --- 1396,1409 ---- foreach my $server_name ( @{ $network_servers } ) { my $server = CTX->queue_connect( $server_name ); ! $server->publish( 'new user', $user ); } } } ! ! You would register this observer in C<$WEBSITE_DIR/conf/observer.ini> ! like this: ! ! [observer] ! newuserpublish = OpenInteract2::Observer::NewUserPublish And the action would notify all observers like this: *************** *** 1411,1414 **** --- 1415,1420 ---- sub confirm_registration { my ( $self ) = @_; + my $user = create_user_object_somehow( ... ); + # ... check registration ... if ( $registration_ok ) { *************** *** 1416,1420 **** # This notifies all observers of the 'register-confirm' event ! $self->notify_observers( 'register-confirm' ); return $self->generate_content( {}, { name => 'base_user::newuser_confirm_ok' } ); --- 1422,1426 ---- # This notifies all observers of the 'register-confirm' event ! $self->notify_observers( 'register-confirm', $user ); return $self->generate_content( {}, { name => 'base_user::newuser_confirm_ok' } ); *************** *** 1422,1429 **** } ! And in the documentation for the package 'base_user' (since this ! action lives there), you would have information about what notifications are published by the C<OpenInteract2::Action::NewUser> ! action. =head2 Built-in Observations --- 1428,1442 ---- } ! In the same C<observer.ini> file you registered the observer you would ! map the observer to the action (assuming the action is named ! 'newuser'): ! ! [observer action] ! newuserpublish = newuser ! ! Finally, in the documentation for the package 'base_user' (since the ! 'newuser' action lives there), you would have information about what notifications are published by the C<OpenInteract2::Action::NewUser> ! action so other observers could register themselves. =head2 Built-in Observations *************** *** 1452,1489 **** } ! You can register filters via the server-wide C<conf/filter.ini> ! file. Here's how you'd register the above filter to work on the 'news' ! and 'page' actions. ! [filters wiki] ! class = OpenInteract2::WikiFilter ! ! [filter_action] ! news = wiki ! page = wiki ! The general configuration to declare a filter is: ! [filters filtername] ! observation-type = value ! The observation types are 'class', 'object' and 'sub' (see ! L<Class::Observable|Class::Observable> for what these mean and how ! they are setup), so you could have: ! [filters foo_obj] ! object = OpenInteract2::FooFilter ! ! [filters foo_sub] ! sub = OpenInteract2::FooFilter::other_sub ! ! [filter_action] ! news = foo_obj ! page = foo_sub ! Most of the time you'll likely use 'class' since it's the easiest. ! See L<OpenInteract2::Filter|OpenInteract2::Filter> for more ! information. =head1 MAPPING URL TO ACTION --- 1465,1498 ---- } ! Since a filter is just another type of observer you register them in ! the same place, C<$WEBSITE_DIR/conf/observer.ini>: ! [observer] ! wiki = OpenInteract2::WikiFilter ! And then map the observer to one or more actions: ! [observer action] ! wiki = news ! wiki = page ! See L<OpenInteract2::Observer|OpenInteract2::Observer> for more ! information. ! B<pre/post common> ! See the common actions for a number of observations they ! publish. Generally, the actions fire an observation before they ! perform their action and after: ! =over 4 ! ! =item B<OpenInteract2::Action::CommonAdd> ! ! =item B<OpenInteract2::Action::CommonRemove> ! ! =item B<OpenInteract2::Action::CommonUpdate> ! ! =back =head1 MAPPING URL TO ACTION |
From: Chris W. <la...@us...> - 2004-09-26 19:56:43
|
Update of /cvsroot/openinteract/OpenInteract2/doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21196 Modified Files: Architecture.pod Log Message: OIN-69: fix typo Index: Architecture.pod =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/doc/Manual/Architecture.pod,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Architecture.pod 19 Mar 2004 18:03:11 -0000 1.7 --- Architecture.pod 26 Sep 2004 19:56:26 -0000 1.8 *************** *** 442,446 **** =item * ! Is listed among the tasks in in C<task_valid> if that property is defined. --- 442,446 ---- =item * ! Is listed among the tasks in C<task_valid> if that property is defined. |
From: Chris W. <la...@us...> - 2004-09-26 19:35:38
|
Update of /cvsroot/openinteract/OpenInteract2/doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15370 Modified Files: Tutorial.pod Log Message: OIN-75: use consistent references to CommonSearch Index: Tutorial.pod =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/doc/Manual/Tutorial.pod,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Tutorial.pod 6 Sep 2004 15:09:08 -0000 1.24 --- Tutorial.pod 26 Sep 2004 19:35:22 -0000 1.25 *************** *** 733,743 **** Previously we'd placed our search results in an arrayref named ! 'book_list'. The C<CommonSearch> class instead puts the results in an ! iterator named 'iterator'. So we'll have to change our ! C<search_results> template. However, instead of modifying our package ! we'll first modify the template in the website itself so we can do ! tight iterations of template design, then we'll copy the template back ! into our package. Here's what the new template looks like; (full copy ! since it's got changes throughout): [% INCLUDE examples/tut_template_search_results_iterator | linenum %] --- 733,744 ---- Previously we'd placed our search results in an arrayref named ! 'book_list'. The ! L<OpenInteract2::Action::CommonSearch|OpenInteract2::Action::CommonSearch> ! class instead puts the results in an iterator named 'iterator'. So ! we'll have to change our C<search_results> template. However, instead ! of modifying our package we'll first modify the template in the ! website itself so we can do tight iterations of template design, then ! we'll copy the template back into our package. Here's what the new ! template looks like; (full copy since it's got changes throughout): [% INCLUDE examples/tut_template_search_results_iterator | linenum %] *************** *** 747,764 **** search criteria given to us, displaying each with the value searched. You'll probably notice when you see the results that they're ! not exactly user-friendly. The C<CommonSearch> class doesn't have the ! means to map human-readable names to fieldnames, but you can do so ! either in C<_search_customize()> or in the template itself. On line 16 there's another change: since we're using an iterator we can't ask it how many members it has. It could have ten or a thousand, it doesn't care and will keep unwinding as long as there are more ! entries. So C<CommonSearch> provides another parameter to the ! template, 'total_hits', which we can use to display how many entries ! we found. (Note that 'total_hits' is only provided when you're using ! paged results, but since that's the default and we didn't change the ! setting we can use the parameter. See L<OpenInteract2::Action::CommonSearch|OpenInteract2::Action::CommonSearch> ! for more.) Finally, on line 25 we had to modify our 'FOREACH' loop into a 'WHILE' --- 748,767 ---- search criteria given to us, displaying each with the value searched. You'll probably notice when you see the results that they're ! not exactly user-friendly. The ! L<OpenInteract2::Action::CommonSearch|OpenInteract2::Action::CommonSearch> ! class doesn't have the means to map human-readable names to ! fieldnames, but you can do so either in C<_search_customize()> or in ! the template itself. On line 16 there's another change: since we're using an iterator we can't ask it how many members it has. It could have ten or a thousand, it doesn't care and will keep unwinding as long as there are more ! entries. So L<OpenInteract2::Action::CommonSearch|OpenInteract2::Action::CommonSearch> ! provides another parameter to the template, 'total_hits', which we can ! use to display how many entries we found. (Note that 'total_hits' is ! only provided when you're using paged results, but since that's the ! default and we didn't change the setting we can use the parameter. See ! the docs for more.) Finally, on line 25 we had to modify our 'FOREACH' loop into a 'WHILE' |
From: Chris W. <la...@us...> - 2004-09-26 19:26:31
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12476/lib/OpenInteract2 Modified Files: Request.pm Response.pm Setup.pm Context.pm Log Message: OIN-68: move request/response implementation to configuration Index: Request.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Request.pm,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** Request.pm 22 Sep 2004 03:09:34 -0000 1.45 --- Request.pm 26 Sep 2004 19:26:18 -0000 1.46 *************** *** 505,519 **** } - OpenInteract2::Request->register_factory_type( - apache => 'OpenInteract2::Request::Apache' ); - OpenInteract2::Request->register_factory_type( - apache2 => 'OpenInteract2::Request::Apache2' ); - OpenInteract2::Request->register_factory_type( - cgi => 'OpenInteract2::Request::CGI' ); - OpenInteract2::Request->register_factory_type( - lwp => 'OpenInteract2::Request::LWP' ); - OpenInteract2::Request->register_factory_type( - standalone => 'OpenInteract2::Request::Standalone' ); - ######################################## --- 505,508 ---- Index: Response.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Response.pm,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** Response.pm 22 Sep 2004 03:09:34 -0000 1.23 --- Response.pm 26 Sep 2004 19:26:18 -0000 1.24 *************** *** 215,229 **** } - __PACKAGE__->register_factory_type( - apache => 'OpenInteract2::Response::Apache' ); - __PACKAGE__->register_factory_type( - apache2 => 'OpenInteract2::Response::Apache2' ); - __PACKAGE__->register_factory_type( - cgi => 'OpenInteract2::Response::CGI' ); - __PACKAGE__->register_factory_type( - lwp => 'OpenInteract2::Response::LWP' ); - __PACKAGE__->register_factory_type( - standalone => 'OpenInteract2::Response::Standalone' ); - ######################################## --- 215,218 ---- Index: Setup.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Setup.pm,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** Setup.pm 26 Sep 2004 19:13:50 -0000 1.51 --- Setup.pm 26 Sep 2004 19:26:18 -0000 1.52 *************** *** 614,621 **** --- 614,635 ---- sub read_system_classes { my ( $self ) = @_; + + # first read the system classes... + my $system_classes = CTX->lookup_class; return $self->require_module({ class => [ values %{ $system_classes } ] }); } + sub register_in_factory { + my ( $self, $mappings, $factory ) = @_; + $log ||= get_logger( LOG_INIT ); + while ( my ( $impl_name, $impl_class ) = each %{ $mappings } ) { + $log->is_info && + $log->info( "Registering in factory $factory: ", + "$impl_name => $impl_class" ); + $factory->register_factory_type( $impl_name, $impl_class ); + } + } + ######################################## Index: Context.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Context.pm,v retrieving revision 1.73 retrieving revision 1.74 diff -C2 -d -r1.73 -r1.74 *** Context.pm 26 Sep 2004 19:22:54 -0000 1.73 --- Context.pm 26 Sep 2004 19:26:18 -0000 1.74 *************** *** 273,276 **** --- 273,283 ---- join( ', ', @{ $system_classes } ) ); + # Also not optional... + + $setup->register_in_factory( + $server_config->{request}, 'OpenInteract2::Request' ); + $setup->register_in_factory( + $server_config->{response}, 'OpenInteract2::Response' ); + unless ( $skip{ 'initialize session' } ) { $setup->require_session_classes( $server_config->{session_info} ); |
From: Chris W. <la...@us...> - 2004-09-26 19:26:31
|
Update of /cvsroot/openinteract/OpenInteract2/sample/website/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12476/sample/website/conf Modified Files: server.ini Log Message: OIN-68: move request/response implementation to configuration Index: server.ini =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/sample/website/conf/server.ini,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** server.ini 14 Jun 2004 11:30:56 -0000 1.46 --- server.ini 26 Sep 2004 19:26:19 -0000 1.47 *************** *** 386,389 **** --- 386,407 ---- ini_reader = OpenInteract2::Config::Ini + # List your OI2::Request and OI2::Response implementations; these are + # registered at server startup but not included until you request them + + [request] + apache = OpenInteract2::Request::Apache + apache2 = OpenInteract2::Request::Apache2 + cgi = OpenInteract2::Request::CGI + lwp = OpenInteract2::Request::LWP + standalone = OpenInteract2::Request::Standalone + + [response] + apache = OpenInteract2::Response::Apache + apache2 = OpenInteract2::Response::Apache2 + cgi = OpenInteract2::Response::CGI + lwp = OpenInteract2::Response::LWP + standalone = OpenInteract2::Response::Standalone + + # # Define what your system uses for certain IDs. Defaults are fine |
From: Chris W. <la...@us...> - 2004-09-26 19:23:10
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11447 Modified Files: Context.pm Log Message: s/filter/observer/; add 'map_observer() shortcut Index: Context.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Context.pm,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** Context.pm 14 Jul 2004 03:33:36 -0000 1.72 --- Context.pm 26 Sep 2004 19:22:54 -0000 1.73 *************** *** 43,47 **** require OpenInteract2::Config::Base; require OpenInteract2::DatasourceManager; ! require OpenInteract2::Filter; require OpenInteract2::Request; require OpenInteract2::Response; --- 43,47 ---- require OpenInteract2::Config::Base; require OpenInteract2::DatasourceManager; ! require OpenInteract2::Observer; require OpenInteract2::Request; require OpenInteract2::Response; *************** *** 648,671 **** ######################################## ! # FILTERS ! sub lookup_filter { my ( $self, $name ) = @_; if ( $name ) { ! return $self->{filters}{ $name }; } ! return $self->{filters}; } ! sub set_filter_registry { my ( $self, $registry ) = @_; ! $self->{filters} = $registry; return; } ! sub add_filter { ! my ( $self, $filter_name, $filter_info ) = @_; ! OpenInteract2::Filter->register_filter( ! $filter_name, $filter_info, $self->{filters} ); } --- 648,676 ---- ######################################## ! # OBSERVERS ! sub lookup_observer { my ( $self, $name ) = @_; if ( $name ) { ! return $self->{observers}{ $name }; } ! return $self->{observers}; } ! sub set_observer_registry { my ( $self, $registry ) = @_; ! $self->{observers} = $registry; return; } ! sub add_observer { ! my ( $self, $observer_name, $observer_info ) = @_; ! OpenInteract2::Observer->register_observer( ! $observer_name, $observer_info, $self->{observers} ); ! } ! ! sub map_observer { ! my ( $self, $observer_name, $action_or_name ) = @_; ! OpenInteract2::Observer->add_observer_to_action( $observer_name, $action_or_name ); } *************** *** 1395,1415 **** Returns the datasource name in 'datasource_config.ldap'. ! =head2 Object Methods: Filters ! B<lookup_filter( [ $name ] )> ! Returns filter mapped to C<$name>, or returns hashref of all ! name-to-filter pairs ! B<set_filter_registry( \%registry )> ! Assigns a full filter registry to the context. The registry is a ! hashref of name-to-filter pairs. ! B<add_filter( $name, \%info )> ! Shortcut to C<register_filter> method of ! L<OpenInteract2::Filter|OpenInteract2::Filter> that passes the context ! filter registry as the last argument. =head2 Object Methods: Controller --- 1400,1425 ---- Returns the datasource name in 'datasource_config.ldap'. ! =head2 Object Methods: Observers ! B<lookup_observer( [ $observer_name ] )> ! Returns observer mapped to C<$observer_name>, or returns hashref of ! all name-to-observer pairs ! B<set_observer_registry( \%registry )> ! Assigns a full observer registry to the context. The registry is a ! hashref of name-to-observer pairs. ! B<add_observer( $observer_name, \%info )> ! Shortcut to C<register_observer()> method of ! L<OpenInteract2::Observer|OpenInteract2::Observer> that passes the ! context observer registry as the last argument. ! ! B<map_observer( $observer_name, $action_name )> ! ! Shortcut to C<add_observer_to_action()> method of ! L<OpenInteract2::Observer|OpenInteract2::Observer>. =head2 Object Methods: Controller |
From: Chris W. <la...@us...> - 2004-09-26 19:14:03
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8392 Modified Files: Setup.pm Log Message: s/filter/observer/g Index: Setup.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Setup.pm,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** Setup.pm 14 Jun 2004 11:59:36 -0000 1.50 --- Setup.pm 26 Sep 2004 19:13:50 -0000 1.51 *************** *** 15,21 **** use OpenInteract2::Constants qw( :log ); use OpenInteract2::Exception qw( oi_error ); - use OpenInteract2::Filter; use OpenInteract2::I18N::Initializer; use OpenInteract2::Manage; use OpenInteract2::Package; use OpenInteract2::Repository; --- 15,21 ---- use OpenInteract2::Constants qw( :log ); use OpenInteract2::Exception qw( oi_error ); use OpenInteract2::I18N::Initializer; use OpenInteract2::Manage; + use OpenInteract2::Observer; use OpenInteract2::Package; use OpenInteract2::Repository; *************** *** 323,327 **** # INITIALIZE OBSERVERS ! # sets the filter registry in CTX, adds config watchers to # OI2::Config::Initializer --- 323,327 ---- # INITIALIZE OBSERVERS ! # sets the observer registry in CTX, adds config watchers to # OI2::Config::Initializer *************** *** 329,334 **** my ( $self ) = @_; ! # Filters ! OpenInteract2::Filter->initialize; # Configuration watchers --- 329,334 ---- my ( $self ) = @_; ! # Observers ! OpenInteract2::Observer->initialize; # Configuration watchers *************** *** 931,936 **** B<initialize_observers()> ! Initializes the filter observers from the server and packages (see ! L<OpenInteract2::Filter|OpenInteract2::Filter>), reads the configuration observers from the server and packages (see L<OpenInteract2::Config::Initializer|OpenInteract2::Config::Initializer>). --- 931,936 ---- B<initialize_observers()> ! Initializes the observers from the server and packages (see ! L<OpenInteract2::Observer|OpenInteract2::Observer>), reads the configuration observers from the server and packages (see L<OpenInteract2::Config::Initializer|OpenInteract2::Config::Initializer>). |
From: Chris W. <la...@us...> - 2004-09-26 18:52:05
|
Update of /cvsroot/openinteract/OpenInteract2/sample/website/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2311 Modified Files: FILES Added Files: observer.ini Removed Files: filter.ini Log Message: use observer.ini instead of filter.ini --- NEW FILE: observer.ini --- # observer.ini: Specify observers that can react to observations # published by actions or other objects. Filters are the most common # example of these. # # Example, declare observers: # # [observer] # wiki = OpenInteract2::Filter::WikiFormat # useperl = OpenInteract2::Observer::UsePerlPost # # Example, map observer to action # # [map] # wiki = page # useperl = news # See docs for OpenInteract2::Action under OBSERVABLE ACTIONS for more Index: FILES =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/sample/website/conf/FILES,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** FILES 12 Jun 2004 23:25:15 -0000 1.5 --- FILES 26 Sep 2004 18:51:54 -0000 1.6 *************** *** 4,6 **** server.ini --> conf server.ini log4perl.conf --> conf log4perl.conf ! filter.ini --> conf filter.ini --- 4,6 ---- server.ini --> conf server.ini log4perl.conf --> conf log4perl.conf ! observer.ini --> conf observer.ini --- filter.ini DELETED --- |
From: Chris W. <la...@us...> - 2004-09-26 16:06:39
|
Update of /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19737 Modified Files: Package.pm Log Message: change reference to "filter" in package configuration Index: Package.pm =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/lib/OpenInteract2/Config/Package.pm,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Package.pm 18 Feb 2004 05:25:27 -0000 1.18 --- Package.pm 26 Sep 2004 16:06:30 -0000 1.19 *************** *** 22,26 **** spops_file action_file message_file module sql_installer template_plugin ! filter config_watcher description ); my @OBJECT_FIELDS = qw( filename package_dir ); --- 22,26 ---- spops_file action_file message_file module sql_installer template_plugin ! observer config_watcher description ); my @OBJECT_FIELDS = qw( filename package_dir ); *************** *** 45,49 **** # NOTE: If you add a field here you must also add it to @SERIAL_FIELDS ! my %HASH_FIELDS = map { $_ => 1 } qw( template_plugin filter ); my @FIELDS = ( @SERIAL_FIELDS, @OBJECT_FIELDS ); --- 45,49 ---- # NOTE: If you add a field here you must also add it to @SERIAL_FIELDS ! my %HASH_FIELDS = map { $_ => 1 } qw( template_plugin observer ); my @FIELDS = ( @SERIAL_FIELDS, @OBJECT_FIELDS ); *************** *** 282,286 **** url http://www.oirox.com/ template_plugin TestPlugin OpenInteract2::Plugin::Test ! filter mywiki OpenInteract2::Filter::MyWiki description This package rocks! --- 282,286 ---- url http://www.oirox.com/ template_plugin TestPlugin OpenInteract2::Plugin::Test ! observer mywiki OpenInteract2::Filter::MyWiki description This package rocks! *************** *** 338,342 **** template_plugin MyPlugin OpenInteract2::Template::Plugin::MyPlugin template_plugin MyPluginNew OpenInteract2::Template::Plugin::MyPluginNew ! filter mywiki OpenInteract2::Filter::MyWiki Additionally, all data below the last entry C<description> is used as --- 338,342 ---- template_plugin MyPlugin OpenInteract2::Template::Plugin::MyPlugin template_plugin MyPluginNew OpenInteract2::Template::Plugin::MyPluginNew ! observer mywiki OpenInteract2::Filter::MyWiki Additionally, all data below the last entry C<description> is used as *************** *** 557,565 **** the plugin by the key, the value is used to instantiate the plugin. ! B<filter> (\%) ! Filters defined by this package. It should be in a space-separated ! key/value pair simiilar to C<template_plugin>, where the key defines ! the filter name and the value defines the filter class. B<config_watcher> (\@) --- 557,566 ---- the plugin by the key, the value is used to instantiate the plugin. ! B<observers> (\%) ! Observers (commonly in the guise of filters) defined by this ! package. It should be in a space-separated key/value pair simiilar to ! C<template_plugin>, where the key defines the observer name and the ! value defines the observer class. B<config_watcher> (\@) *************** *** 570,574 **** directives for your SPOPS and/or Action configurations that get expanded into either more meaningful information or into data that can ! only be found at runtime. That's a little abstract: see L<OpenInteract2::Config::Initializer|OpenInteract2::Config::Initializer> for examples. --- 571,575 ---- directives for your SPOPS and/or Action configurations that get expanded into either more meaningful information or into data that can ! only be found at runtime. That may be a little abstract: see L<OpenInteract2::Config::Initializer|OpenInteract2::Config::Initializer> for examples. |
From: Chris W. <la...@us...> - 2004-09-26 16:06:11
|
Update of /cvsroot/openinteract/OpenInteract2/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19574 Modified Files: config_package.t Log Message: change reference to "filter" in package configuration Index: config_package.t =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/t/config_package.t,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** config_package.t 25 May 2004 00:13:30 -0000 1.8 --- config_package.t 26 Sep 2004 16:06:01 -0000 1.9 *************** *** 43,48 **** is_deeply( $c->config_watcher( \@config_watch ), \@config_watch, 'Config watcher set' ); ! is_deeply( $c->filter( \%filter ), \%filter, ! 'Filter set' ); is( $c->description( $description ), $description, 'Description set' ); --- 43,48 ---- is_deeply( $c->config_watcher( \@config_watch ), \@config_watch, 'Config watcher set' ); ! is_deeply( $c->observer( \%filter ), \%filter, ! 'Observer set' ); is( $c->description( $description ), $description, 'Description set' ); *************** *** 85,90 **** is_deeply( $c->config_watcher, \@config_watch, 'Config watcher read' ); ! is_deeply( $c->filter, \%filter, ! 'Filter read' ); is( $c->description(), $description, 'Description set' ); --- 85,90 ---- is_deeply( $c->config_watcher, \@config_watch, 'Config watcher read' ); ! is_deeply( $c->observer, \%filter, ! 'Observer read' ); is( $c->description(), $description, 'Description set' ); |
From: Chris W. <la...@us...> - 2004-09-26 16:06:11
|
Update of /cvsroot/openinteract/OpenInteract2/t/use In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19574/use Modified Files: test_package.conf Log Message: change reference to "filter" in package configuration Index: test_package.conf =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/t/use/test_package.conf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test_package.conf 24 Jul 2003 02:53:51 -0000 1.2 --- test_package.conf 26 Sep 2004 16:06:02 -0000 1.3 *************** *** 9,13 **** sql_installer OpenInteract2::SQLInstall::OITest template_plugin TestPlugin OpenInteract2::Plugin::Test ! filter myfilter OpenInteract2::Filter::My config_watcher OpenInteract2::MyWatcher description --- 9,13 ---- sql_installer OpenInteract2::SQLInstall::OITest template_plugin TestPlugin OpenInteract2::Plugin::Test ! observer myfilter OpenInteract2::Filter::My config_watcher OpenInteract2::MyWatcher description |
From: Chris W. <la...@us...> - 2004-09-26 16:05:30
|
Update of /cvsroot/openinteract/OpenInteract2/t In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19361 Added Files: observer.t Removed Files: filter.t Log Message: rename filter to observer --- NEW FILE: observer.t --- # -*-perl-*- # $Id: observer.t,v 1.1 2004/09/26 16:05:16 lachoy Exp $ use strict; use lib 't/'; require 'utils.pl'; use Test::More tests => 1; require_ok( 'OpenInteract2::Observer' ); --- filter.t DELETED --- |
From: Chris W. <la...@us...> - 2004-09-26 01:50:33
|
Update of /cvsroot/openinteract/OpenInteract2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26256 Modified Files: META.yml Log Message: meta updates Index: META.yml =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/META.yml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** META.yml 11 Jun 2004 03:57:54 -0000 1.8 --- META.yml 26 Sep 2004 01:50:12 -0000 1.9 *************** *** 59,63 **** OpenInteract2::Action::Common: file: lib/OpenInteract2/Action/Common.pm ! version: 1.15 OpenInteract2::Action::CommonAdd: file: lib/OpenInteract2/Action/CommonAdd.pm --- 59,63 ---- OpenInteract2::Action::Common: file: lib/OpenInteract2/Action/Common.pm ! version: 1.16 OpenInteract2::Action::CommonAdd: file: lib/OpenInteract2/Action/CommonAdd.pm *************** *** 68,77 **** OpenInteract2::Action::CommonSearch: file: lib/OpenInteract2/Action/CommonSearch.pm ! version: 1.13 OpenInteract2::Action::CommonUpdate: file: lib/OpenInteract2/Action/CommonUpdate.pm OpenInteract2::Action::TemplateOnly: file: lib/OpenInteract2/Action/TemplateOnly.pm ! version: 1.05 OpenInteract2::Auth: file: lib/OpenInteract2/Auth.pm --- 68,77 ---- OpenInteract2::Action::CommonSearch: file: lib/OpenInteract2/Action/CommonSearch.pm ! version: 1.14 OpenInteract2::Action::CommonUpdate: file: lib/OpenInteract2/Action/CommonUpdate.pm OpenInteract2::Action::TemplateOnly: file: lib/OpenInteract2/Action/TemplateOnly.pm ! version: 1.06 OpenInteract2::Auth: file: lib/OpenInteract2/Auth.pm *************** *** 93,97 **** OpenInteract2::Config: file: lib/OpenInteract2/Config.pm ! version: 1.12 OpenInteract2::Config::Base: file: lib/OpenInteract2/Config/Base.pm --- 93,97 ---- OpenInteract2::Config: file: lib/OpenInteract2/Config.pm ! version: 1.13 OpenInteract2::Config::Base: file: lib/OpenInteract2/Config/Base.pm *************** *** 99,112 **** OpenInteract2::Config::GlobalOverride: file: lib/OpenInteract2/Config/GlobalOverride.pm ! version: 1.05 OpenInteract2::Config::Ini: file: lib/OpenInteract2/Config/Ini.pm ! version: 1.12 OpenInteract2::Config::IniFile: file: lib/OpenInteract2/Config/IniFile.pm ! version: 1.06 OpenInteract2::Config::Initializer: file: lib/OpenInteract2/Config/Initializer.pm ! version: 1.14 OpenInteract2::Config::Package: file: lib/OpenInteract2/Config/Package.pm --- 99,112 ---- OpenInteract2::Config::GlobalOverride: file: lib/OpenInteract2/Config/GlobalOverride.pm ! version: 1.07 OpenInteract2::Config::Ini: file: lib/OpenInteract2/Config/Ini.pm ! version: 1.15 OpenInteract2::Config::IniFile: file: lib/OpenInteract2/Config/IniFile.pm ! version: 1.07 OpenInteract2::Config::Initializer: file: lib/OpenInteract2/Config/Initializer.pm ! version: 1.15 OpenInteract2::Config::Package: file: lib/OpenInteract2/Config/Package.pm *************** *** 114,118 **** OpenInteract2::Config::PackageChanges: file: lib/OpenInteract2/Config/PackageChanges.pm ! version: 1.08 OpenInteract2::Config::PerlFile: file: lib/OpenInteract2/Config/PerlFile.pm --- 114,118 ---- OpenInteract2::Config::PackageChanges: file: lib/OpenInteract2/Config/PackageChanges.pm ! version: 1.09 OpenInteract2::Config::PerlFile: file: lib/OpenInteract2/Config/PerlFile.pm *************** *** 144,151 **** OpenInteract2::Context: file: lib/OpenInteract2/Context.pm ! version: 1.59 OpenInteract2::Controller: file: lib/OpenInteract2/Controller.pm ! version: 1.21 OpenInteract2::Controller::MainTemplate: file: lib/OpenInteract2/Controller/MainTemplate.pm --- 144,151 ---- OpenInteract2::Context: file: lib/OpenInteract2/Context.pm ! version: 1.71 OpenInteract2::Controller: file: lib/OpenInteract2/Controller.pm ! version: 1.22 OpenInteract2::Controller::MainTemplate: file: lib/OpenInteract2/Controller/MainTemplate.pm *************** *** 174,178 **** OpenInteract2::Datasource::DBI: file: lib/OpenInteract2/Datasource/DBI.pm ! version: 1.10 OpenInteract2::Datasource::LDAP: file: lib/OpenInteract2/Datasource/LDAP.pm --- 174,178 ---- OpenInteract2::Datasource::DBI: file: lib/OpenInteract2/Datasource/DBI.pm ! version: 1.12 OpenInteract2::Datasource::LDAP: file: lib/OpenInteract2/Datasource/LDAP.pm *************** *** 189,193 **** OpenInteract2::Exception::Security: file: lib/OpenInteract2/Exception/Security.pm ! version: 1.06 OpenInteract2::File: file: lib/OpenInteract2/File.pm --- 189,193 ---- OpenInteract2::Exception::Security: file: lib/OpenInteract2/Exception/Security.pm ! version: 1.10 OpenInteract2::File: file: lib/OpenInteract2/File.pm *************** *** 195,199 **** OpenInteract2::Filter: file: lib/OpenInteract2/Filter.pm ! version: 1.03 OpenInteract2::FullTextIndexer: file: lib/OpenInteract2/FullTextIndexer.pm --- 195,199 ---- OpenInteract2::Filter: file: lib/OpenInteract2/Filter.pm ! version: 1.06 OpenInteract2::FullTextIndexer: file: lib/OpenInteract2/FullTextIndexer.pm *************** *** 203,207 **** OpenInteract2::FullTextRules: file: lib/OpenInteract2/FullTextRules.pm ! version: 1.01 OpenInteract2::I18N: file: lib/OpenInteract2/I18N.pm --- 203,207 ---- OpenInteract2::FullTextRules: file: lib/OpenInteract2/FullTextRules.pm ! version: 1.02 OpenInteract2::I18N: file: lib/OpenInteract2/I18N.pm *************** *** 216,223 **** OpenInteract2::Manage: file: lib/OpenInteract2/Manage.pm ! version: 1.38 OpenInteract2::Manage::CreateSourceDirectory: file: lib/OpenInteract2/Manage/CreateSourceDirectory.pm ! version: 1.04 OpenInteract2::Manage::Package: file: lib/OpenInteract2/Manage/Package.pm --- 216,223 ---- OpenInteract2::Manage: file: lib/OpenInteract2/Manage.pm ! version: 1.40 OpenInteract2::Manage::CreateSourceDirectory: file: lib/OpenInteract2/Manage/CreateSourceDirectory.pm ! version: 1.06 OpenInteract2::Manage::Package: file: lib/OpenInteract2/Manage/Package.pm *************** *** 225,238 **** OpenInteract2::Manage::Package::Check: file: lib/OpenInteract2/Manage/Package/Check.pm ! version: 1.09 OpenInteract2::Manage::Package::CreatePackage: file: lib/OpenInteract2/Manage/Package/CreatePackage.pm ! version: 1.12 OpenInteract2::Manage::Package::Export: file: lib/OpenInteract2/Manage/Package/Export.pm ! version: 1.11 OpenInteract2::Manage::Website: file: lib/OpenInteract2/Manage/Website.pm ! version: 1.18 ? |- OpenInteract2::Manage::Website::CleanExpiredSessions --- 225,238 ---- OpenInteract2::Manage::Package::Check: file: lib/OpenInteract2/Manage/Package/Check.pm ! version: 1.10 OpenInteract2::Manage::Package::CreatePackage: file: lib/OpenInteract2/Manage/Package/CreatePackage.pm ! version: 1.13 OpenInteract2::Manage::Package::Export: file: lib/OpenInteract2/Manage/Package/Export.pm ! version: 1.12 OpenInteract2::Manage::Website: file: lib/OpenInteract2/Manage/Website.pm ! version: 1.20 ? |- OpenInteract2::Manage::Website::CleanExpiredSessions *************** *** 240,250 **** file: |- lib/OpenInteract2/Manage/Website/CleanExpiredSessions.pm ! version: 1.02 OpenInteract2::Manage::Website::Create: file: lib/OpenInteract2/Manage/Website/Create.pm ! version: 1.21 OpenInteract2::Manage::Website::CreateSecurity: file: lib/OpenInteract2/Manage/Website/CreateSecurity.pm ! version: 1.03 ? |- OpenInteract2::Manage::Website::CreateSuperuserPassword --- 240,250 ---- file: |- lib/OpenInteract2/Manage/Website/CleanExpiredSessions.pm ! version: 1.04 OpenInteract2::Manage::Website::Create: file: lib/OpenInteract2/Manage/Website/Create.pm ! version: 1.22 OpenInteract2::Manage::Website::CreateSecurity: file: lib/OpenInteract2/Manage/Website/CreateSecurity.pm ! version: 1.04 ? |- OpenInteract2::Manage::Website::CreateSuperuserPassword *************** *** 252,263 **** file: |- lib/OpenInteract2/Manage/Website/CreateSuperuserPassword.pm ! version: 1.09 OpenInteract2::Manage::Website::InstallPackage: file: lib/OpenInteract2/Manage/Website/InstallPackage.pm ! version: 1.12 OpenInteract2::Manage::Website::InstallPackageData: file: |- lib/OpenInteract2/Manage/Website/InstallPackageData.pm ! version: 1.08 ? |- OpenInteract2::Manage::Website::InstallPackageSecurity --- 252,263 ---- file: |- lib/OpenInteract2/Manage/Website/CreateSuperuserPassword.pm ! version: 1.10 OpenInteract2::Manage::Website::InstallPackage: file: lib/OpenInteract2/Manage/Website/InstallPackage.pm ! version: 1.13 OpenInteract2::Manage::Website::InstallPackageData: file: |- lib/OpenInteract2/Manage/Website/InstallPackageData.pm ! version: 1.09 ? |- OpenInteract2::Manage::Website::InstallPackageSecurity *************** *** 265,273 **** file: |- lib/OpenInteract2/Manage/Website/InstallPackageSecurity.pm ! version: 1.08 OpenInteract2::Manage::Website::InstallPackageSql: file: |- lib/OpenInteract2/Manage/Website/InstallPackageSql.pm ! version: 1.10 ? |- OpenInteract2::Manage::Website::InstallPackageStructure --- 265,273 ---- file: |- lib/OpenInteract2/Manage/Website/InstallPackageSecurity.pm ! version: 1.09 OpenInteract2::Manage::Website::InstallPackageSql: file: |- lib/OpenInteract2/Manage/Website/InstallPackageSql.pm ! version: 1.11 ? |- OpenInteract2::Manage::Website::InstallPackageStructure *************** *** 275,288 **** file: |- lib/OpenInteract2/Manage/Website/InstallPackageStructure.pm ! version: 1.11 OpenInteract2::Manage::Website::ListActions: file: lib/OpenInteract2/Manage/Website/ListActions.pm ! version: 1.10 OpenInteract2::Manage::Website::ListObjects: file: lib/OpenInteract2/Manage/Website/ListObjects.pm ! version: 1.08 OpenInteract2::Manage::Website::ListPackages: file: lib/OpenInteract2/Manage/Website/ListPackages.pm ! version: 1.09 ? |- OpenInteract2::Manage::Website::PackageCheckExportInstall --- 275,288 ---- file: |- lib/OpenInteract2/Manage/Website/InstallPackageStructure.pm ! version: 1.12 OpenInteract2::Manage::Website::ListActions: file: lib/OpenInteract2/Manage/Website/ListActions.pm ! version: 1.11 OpenInteract2::Manage::Website::ListObjects: file: lib/OpenInteract2/Manage/Website/ListObjects.pm ! version: 1.09 OpenInteract2::Manage::Website::ListPackages: file: lib/OpenInteract2/Manage/Website/ListPackages.pm ! version: 1.10 ? |- OpenInteract2::Manage::Website::PackageCheckExportInstall *************** *** 290,318 **** file: |- lib/OpenInteract2/Manage/Website/PackageCheckExportInstall.pm ! version: 1.02 OpenInteract2::Manage::Website::ReindexObjects: file: lib/OpenInteract2/Manage/Website/ReindexObjects.pm ! version: 1.04 OpenInteract2::Manage::Website::RemovePackage: file: lib/OpenInteract2/Manage/Website/RemovePackage.pm ! version: 1.05 OpenInteract2::Manage::Website::TestDB: file: lib/OpenInteract2/Manage/Website/TestDB.pm ! version: 1.11 OpenInteract2::Manage::Website::TestLDAP: file: lib/OpenInteract2/Manage/Website/TestLDAP.pm ! version: 1.11 OpenInteract2::Manage::Website::ThemeDump: file: lib/OpenInteract2/Manage/Website/ThemeDump.pm ! version: 1.08 OpenInteract2::Manage::Website::ThemeInstall: file: lib/OpenInteract2/Manage/Website/ThemeInstall.pm ! version: 1.09 OpenInteract2::Manage::Website::Upgrade: file: lib/OpenInteract2/Manage/Website/Upgrade.pm ! version: 1.12 OpenInteract2::Manage::Website::ViewSession: file: lib/OpenInteract2/Manage/Website/ViewSession.pm ! version: 1.09 OpenInteract2::Package: file: lib/OpenInteract2/Package.pm --- 290,324 ---- file: |- lib/OpenInteract2/Manage/Website/PackageCheckExportInstall.pm ! version: 1.03 OpenInteract2::Manage::Website::ReindexObjects: file: lib/OpenInteract2/Manage/Website/ReindexObjects.pm ! version: 1.06 OpenInteract2::Manage::Website::RemovePackage: file: lib/OpenInteract2/Manage/Website/RemovePackage.pm ! version: 1.06 OpenInteract2::Manage::Website::TestDB: file: lib/OpenInteract2/Manage/Website/TestDB.pm ! version: 1.12 OpenInteract2::Manage::Website::TestLDAP: file: lib/OpenInteract2/Manage/Website/TestLDAP.pm ! version: 1.12 OpenInteract2::Manage::Website::ThemeDump: file: lib/OpenInteract2/Manage/Website/ThemeDump.pm ! version: 1.09 OpenInteract2::Manage::Website::ThemeInstall: file: lib/OpenInteract2/Manage/Website/ThemeInstall.pm ! version: 1.10 ! ? |- ! OpenInteract2::Manage::Website::UpdatePackageFromWebsite ! : ! file: |- ! lib/OpenInteract2/Manage/Website/UpdatePackageFromWebsite.pm ! version: 1.02 OpenInteract2::Manage::Website::Upgrade: file: lib/OpenInteract2/Manage/Website/Upgrade.pm ! version: 1.13 OpenInteract2::Manage::Website::ViewSession: file: lib/OpenInteract2/Manage/Website/ViewSession.pm ! version: 1.10 OpenInteract2::Package: file: lib/OpenInteract2/Package.pm *************** *** 320,324 **** OpenInteract2::Repository: file: lib/OpenInteract2/Repository.pm ! version: 1.19 OpenInteract2::Request: file: lib/OpenInteract2/Request.pm --- 326,330 ---- OpenInteract2::Repository: file: lib/OpenInteract2/Repository.pm ! version: 1.20 OpenInteract2::Request: file: lib/OpenInteract2/Request.pm *************** *** 374,378 **** OpenInteract2::SQLInstall: file: lib/OpenInteract2/SQLInstall.pm ! version: 1.22 OpenInteract2::SessionManager: file: lib/OpenInteract2/SessionManager.pm --- 380,384 ---- OpenInteract2::SQLInstall: file: lib/OpenInteract2/SQLInstall.pm ! version: 1.23 OpenInteract2::SessionManager: file: lib/OpenInteract2/SessionManager.pm *************** *** 383,387 **** OpenInteract2::SessionManager::File: file: lib/OpenInteract2/SessionManager/File.pm ! version: 1.04 OpenInteract2::SessionManager::SQLite: file: lib/OpenInteract2/SessionManager/SQLite.pm --- 389,393 ---- OpenInteract2::SessionManager::File: file: lib/OpenInteract2/SessionManager/File.pm ! version: 1.05 OpenInteract2::SessionManager::SQLite: file: lib/OpenInteract2/SessionManager/SQLite.pm *************** *** 389,393 **** OpenInteract2::Setup: file: lib/OpenInteract2/Setup.pm ! version: 1.44 OpenInteract2::TT2::Context: file: lib/OpenInteract2/TT2/Context.pm --- 395,399 ---- OpenInteract2::Setup: file: lib/OpenInteract2/Setup.pm ! version: 1.50 OpenInteract2::TT2::Context: file: lib/OpenInteract2/TT2/Context.pm |