r29228 - in /trunk/libcgi-application-perl: Changes MANIFEST META.yml debian/changelog debian/control debian/copyright lib/CGI/Application.pm t/lib/TestApp13.pm t/lib/TestApp14.pm t/query.t
ansgar-guest at users.alioth.debian.org
ansgar-guest at users.alioth.debian.org
Sun Jan 4 12:48:12 UTC 2009
Author: ansgar-guest
Date: Sun Jan 4 12:48:09 2009
New Revision: 29228
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=29228
Log:
* New upstream release.
* debian/control: Add myself to Uploaders.
* Convert debian/copyright to proposed machine-readable format.
* debain/copyright: List all copyright holders for debian/*. The list
of contributors was taken from debian/changelog.
Added:
trunk/libcgi-application-perl/t/lib/TestApp13.pm
- copied unchanged from r29226, branches/upstream/libcgi-application-perl/current/t/lib/TestApp13.pm
trunk/libcgi-application-perl/t/lib/TestApp14.pm
- copied unchanged from r29226, branches/upstream/libcgi-application-perl/current/t/lib/TestApp14.pm
trunk/libcgi-application-perl/t/query.t
- copied unchanged from r29226, branches/upstream/libcgi-application-perl/current/t/query.t
Modified:
trunk/libcgi-application-perl/Changes
trunk/libcgi-application-perl/MANIFEST
trunk/libcgi-application-perl/META.yml
trunk/libcgi-application-perl/debian/changelog
trunk/libcgi-application-perl/debian/control
trunk/libcgi-application-perl/debian/copyright
trunk/libcgi-application-perl/lib/CGI/Application.pm
Modified: trunk/libcgi-application-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-perl/Changes?rev=29228&op=diff
==============================================================================
--- trunk/libcgi-application-perl/Changes (original)
+++ trunk/libcgi-application-perl/Changes Sun Jan 4 12:48:09 2009
@@ -1,4 +1,15 @@
Revision history for CGI::Application.
+
+4.21 Sat Jan 3, 2009
+
+ [FEATURES]
+ - This now works:
+ $webapp->query($new_query_object);
+ Setting a new query object can be useful in combination with
+ CGI::Application::Server. (Jaldhar Vyas)
+
+ [DOCUMENTATION]
+ - More typo fixes (Lyle)
4.20 Sat Nov 1, 2008
Modified: trunk/libcgi-application-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-perl/MANIFEST?rev=29228&op=diff
==============================================================================
--- trunk/libcgi-application-perl/MANIFEST (original)
+++ trunk/libcgi-application-perl/MANIFEST Sun Jan 4 12:48:09 2009
@@ -27,6 +27,7 @@
t/mode_param_path_info.t
t/mode_param_overwritten.t
t/load_tmpl_hook.t
+t/query.t
t/lib/TestApp.pm
t/lib/TestApp2.pm
t/lib/TestApp3.pm
@@ -39,5 +40,7 @@
t/lib/TestApp10.pm
t/lib/TestApp11.pm
t/lib/TestApp12.pm
+t/lib/TestApp13.pm
+t/lib/TestApp14.pm
t/lib/TestCGI.pm
t/lib/templates/test.tmpl
Modified: trunk/libcgi-application-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-perl/META.yml?rev=29228&op=diff
==============================================================================
--- trunk/libcgi-application-perl/META.yml (original)
+++ trunk/libcgi-application-perl/META.yml Sun Jan 4 12:48:09 2009
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: CGI-Application
-version: 4.11
+version: 4.21
author:
- Jesse Erlbaum <jesse at erlbaum.net>
- Mark Stosberg <mark at summersault.com>
@@ -16,7 +16,7 @@
provides:
CGI::Application:
file: lib/CGI/Application.pm
- version: 4.11
+ version: 4.21
CGI::Application::Mailform:
file: lib/CGI/Application/Mailform.pm
generated_by: Module::Build version 0.2611
Modified: trunk/libcgi-application-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-perl/debian/changelog?rev=29228&op=diff
==============================================================================
--- trunk/libcgi-application-perl/debian/changelog (original)
+++ trunk/libcgi-application-perl/debian/changelog Sun Jan 4 12:48:09 2009
@@ -1,9 +1,17 @@
-libcgi-application-perl (4.20-2) UNRELEASED; urgency=low
+libcgi-application-perl (4.21-1) UNRELEASED; urgency=low
+ [ gregor herrmann ]
* debian/control: Changed: Switched Vcs-Browser field to ViewSVN
(source stanza).
- -- gregor herrmann <gregoa at debian.org> Sun, 16 Nov 2008 20:40:17 +0100
+ [ Ansgar Burchardt ]
+ * New upstream release.
+ * debian/control: Add myself to Uploaders.
+ * Convert debian/copyright to proposed machine-readable format.
+ * debain/copyright: List all copyright holders for debian/*. The list
+ of contributors was taken from debian/changelog.
+
+ -- Ansgar Burchardt <ansgar at 43-1.org> Sun, 04 Jan 2009 13:22:35 +0100
libcgi-application-perl (4.20-1) unstable; urgency=low
Modified: trunk/libcgi-application-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-perl/debian/control?rev=29228&op=diff
==============================================================================
--- trunk/libcgi-application-perl/debian/control (original)
+++ trunk/libcgi-application-perl/debian/control Sun Jan 4 12:48:09 2009
@@ -3,7 +3,8 @@
Priority: optional
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
Uploaders: Jaldhar H. Vyas <jaldhar at debian.org>, Niko Tyni <ntyni at iki.fi>,
- Damyan Ivanov <dmn at debian.org>, Rene Mayorga <rmayorga at debian.org.sv>
+ Damyan Ivanov <dmn at debian.org>, Rene Mayorga <rmayorga at debian.org.sv>,
+ Ansgar Burchardt <ansgar at 43-1.org>
Build-Depends: debhelper (>= 7)
Build-Depends-Indep: perl (>= 5.8.0-7), libhtml-template-perl
Standards-Version: 3.8.0
Modified: trunk/libcgi-application-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-perl/debian/copyright?rev=29228&op=diff
==============================================================================
--- trunk/libcgi-application-perl/debian/copyright (original)
+++ trunk/libcgi-application-perl/debian/copyright Sun Jan 4 12:48:09 2009
@@ -1,35 +1,36 @@
-This package was debianized by Shell Hung <shell at shellhung.org> on
-Mon, 13 Aug 2001 16:26:50 +0800. and is Maintained by the Debian Perl Group
-(pkg-perl)
-
-It was downloaded from: http://search.cpan.org/dist/CGI-Application/
-
-Upstream Author: Jesse Erlbaum <jesse at vm.com>
+Format-Specification:
+ http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196
+Upstream-Maintainer: Mark Stosberg <markstos at cpan.org>
+Upstream-Source: http://search.cpan.org/dist/CGI-Application/
+Upstream-Name: CGI-Application
Files: *
Copyright: © 2000-2003 Jesse Erlbaum <jesse at erlbaum.net>
License: GPL-1+ | Artistic
- This module is free software; you can redistribute it and/or modify it
- under the terms of Perl itself.
Files: debian/*
-Copyright: © 2001 Shell Hung <shell at shellhung.org>
- © 2008 Debian Perl Group
- <pkg-perl-maintainers at lists.alioth.debian.org>
+Copyright:
+ © 2001-2004, Shell Hung <shell at shellhung.org>
+ © 2004-2008, Jaldhar H. Vyas <jaldhar at debian.org>
+ © 2006, Niko Tyni <ntyni at iki.fi>
+ © 2008, Damyan Ivanov <dmn at debian.org>
+ © 2008, Frank Lichtenheld
+ © 2008, gregor herrmann <gregoa at debian.org>
+ © 2008, Rene Mayorga <rmayorga at debian.org.sv>
+ © 2009, Ansgar Burchardt <ansgar at 43-1.org>
License: GPL-1+ | Artistic
- This module is free software; you can redistribute it and/or modify it
- under the terms of Perl itself.
-The Perl license is:
+License: GPL-1+
This program is free software; you can redistribute it and/or modify
- it under the terms of either:
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ On Debian GNU/Linux systems, the complete text of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL'
- a) the GNU General Public License as published by the Free Software
- Foundation; either version 1, or (at your option) any later
- version, or
+License: Artistic
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ On Debian GNU/Linux systems, the complete text of the Artistic License
+ can be found in `/usr/share/common-licenses/Artistic'
- b) the "Artistic License" which comes with Perl.
-
-On Debian GNU/Linux systems, the complete text of the GNU General Public
-License can be found in `/usr/share/common-licenses/GPL' and the Artistic
-Licence in `/usr/share/common-licenses/Artistic'.
Modified: trunk/libcgi-application-perl/lib/CGI/Application.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-application-perl/lib/CGI/Application.pm?rev=29228&op=diff
==============================================================================
--- trunk/libcgi-application-perl/lib/CGI/Application.pm (original)
+++ trunk/libcgi-application-perl/lib/CGI/Application.pm Sun Jan 4 12:48:09 2009
@@ -3,7 +3,7 @@
use strict;
use Class::ISA;
-$CGI::Application::VERSION = '4.20';
+$CGI::Application::VERSION = '4.21';
my %INSTALLED_CALLBACKS = (
# hook name package sub
@@ -464,18 +464,14 @@
my $self = shift;
my ($query) = @_;
- # We're only allowed to set a new query object if one does not yet exist!
- unless (exists($self->{__QUERY_OBJ})) {
- my $new_query_obj;
-
- # If data is provided, set it! Otherwise, create a new one.
- if (defined($query)) {
- $new_query_obj = $query;
- } else {
- $new_query_obj = $self->cgiapp_get_query();
+ # If data is provided, set it! Otherwise, create a new one.
+ if (defined($query)) {
+ $self->{__QUERY_OBJ} = $query;
+ } else {
+ # We're only allowed to create a new query object if one does not yet exist!
+ unless (exists($self->{__QUERY_OBJ})) {
+ $self->{__QUERY_OBJ} = $self->cgiapp_get_query();
}
-
- $self->{__QUERY_OBJ} = $new_query_obj;
}
return $self->{__QUERY_OBJ};
@@ -1037,7 +1033,7 @@
all the arguments which were sent to the new() method.
An example of the benefits provided by utilizing this hook is
-creating a custom "application super-class" from which which all
+creating a custom "application super-class" from which all
your web applications would inherit, instead of CGI::Application.
Consider the following:
@@ -1165,13 +1161,13 @@
Override this method to retrieve the query object if you wish to use a
different query interface instead of CGI.pm.
-CGI.pm is only loaded to provided query object is only loaded if it used on a given request.
+CGI.pm is only loaded if it is used on a given request.
If you can use an alternative to CGI.pm, it needs to have some compatibility
with the CGI.pm API. For normal use, just having a compatible C<param> method
should be sufficient.
-If use the C<path_info> option to the mode_param() method, then we will call
+If you use the C<path_info> option to the mode_param() method, then we will call
the C<path_info()> method on the query object.
If you use the C<Dump> method in CGI::Application, we will call the C<Dump> and
@@ -1345,6 +1341,12 @@
method supports passing in your existing query object on construction using
the QUERY attribute.
+There are a few rare situations where you want your own query object to be
+used after your Application Module has already been constructed. In that case
+you can pass it to c<query()> like this:
+
+ $webapp->query($new_query_object);
+ my $q = $webapp->query(); # now uses $new_query_object
=head3 run_modes()
More information about the Pkg-perl-cvs-commits
mailing list