r38896 - in /trunk/libtitanium-perl: Changes META.yml README debian/changelog lib/Titanium.pm
nhandler-guest at users.alioth.debian.org
nhandler-guest at users.alioth.debian.org
Mon Jun 29 12:02:49 UTC 2009
Author: nhandler-guest
Date: Mon Jun 29 12:02:35 2009
New Revision: 38896
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=38896
Log:
Update for 1.03
Modified:
trunk/libtitanium-perl/Changes
trunk/libtitanium-perl/META.yml
trunk/libtitanium-perl/README
trunk/libtitanium-perl/debian/changelog
trunk/libtitanium-perl/lib/Titanium.pm
Modified: trunk/libtitanium-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtitanium-perl/Changes?rev=38896&op=diff
==============================================================================
--- trunk/libtitanium-perl/Changes (original)
+++ trunk/libtitanium-perl/Changes Mon Jun 29 12:02:35 2009
@@ -1,4 +1,8 @@
Revision history for Titantium.
+
+1.03 June 26, 2009
+ (No code changes)
+ * Update AUTOLOAD docs reflect that we load the ErrorPage plugin.
1.02 June 22, 2009
(No code changes in this release)
Modified: trunk/libtitanium-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtitanium-perl/META.yml?rev=38896&op=diff
==============================================================================
--- trunk/libtitanium-perl/META.yml (original)
+++ trunk/libtitanium-perl/META.yml Mon Jun 29 12:02:35 2009
@@ -1,6 +1,6 @@
---
name: Titanium
-version: 1.02
+version: 1.03
author:
- 'Mark Stosberg <mark at summersault.com>'
abstract: A strong, lightweight web application framework
@@ -31,6 +31,6 @@
provides:
Titanium:
file: lib/Titanium.pm
- version: 1.02
+ version: 1.03
resources:
license: ~
Modified: trunk/libtitanium-perl/README
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtitanium-perl/README?rev=38896&op=diff
==============================================================================
--- trunk/libtitanium-perl/README (original)
+++ trunk/libtitanium-perl/README Mon Jun 29 12:02:35 2009
@@ -464,19 +464,28 @@
THE RUN MODE OF LAST RESORT: "AUTOLOAD"
- If Titanium is asked to go to a run mode which doesn't exist it will
- usually croak() with errors. If this is not your desired behavior, it is
- possible to catch this exception by implementing a run mode with the
- reserved name "AUTOLOAD":
+ If Titanium is asked to go to a run mode which doesn't exist, by default
+ it will return an error page to the user, implemented like this:
+
+ return $c->error(
+ title => 'The requested page was not found.',
+ msg => "(The page tried was: ".$c->get_current_runmode.")"
+ );
+
+ See CGI::Application::Plugin::ErrorPage for more details on the built-in
+ error page system. If this is not your desired behavior for handling
+ unknown run mode requests, implement your own run mode with the reserved
+ name "AUTOLOAD":
$c->run_modes(
"AUTOLOAD" => \&catch_my_exception
);
- Before Titanium calls croak() it will check for the existence of a run
- mode called "AUTOLOAD". If specified, this run mode will in invoked just
- like a regular run mode, with one exception: It will receive, as an
- argument, the name of the run mode which invoked it:
+ Before Titanium invokes its own error page handling it will check for
+ the existence of a run mode called "AUTOLOAD". If specified, this run
+ mode will in invoked just like a regular run mode, with one exception:
+ It will receive, as an argument, the name of the run mode which invoked
+ it:
sub catch_my_exception {
my $c = shift;
@@ -486,8 +495,8 @@
return $output;
}
- This functionality could be used for a simple human-readable error
- screen, or for more sophisticated application behaviors.
+ This functionality could be for more sophisticated application
+ behaviors.
start_mode()
$c->start_mode('mode1');
Modified: trunk/libtitanium-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtitanium-perl/debian/changelog?rev=38896&op=diff
==============================================================================
--- trunk/libtitanium-perl/debian/changelog (original)
+++ trunk/libtitanium-perl/debian/changelog Mon Jun 29 12:02:35 2009
@@ -1,4 +1,4 @@
-libtitanium-perl (1.02-1) unstable; urgency=low
+libtitanium-perl (1.03-1) unstable; urgency=low
* New upstream release
* debian/watch:
@@ -12,7 +12,7 @@
- Add year to upstream copyright
- Add License-Alias
- -- Nathan Handler <nhandler at ubuntu.com> Fri, 26 Jun 2009 22:52:56 +0000
+ -- Nathan Handler <nhandler at ubuntu.com> Mon, 29 Jun 2009 12:02:10 +0000
libtitanium-perl (1.01-1) unstable; urgency=low
Modified: trunk/libtitanium-perl/lib/Titanium.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtitanium-perl/lib/Titanium.pm?rev=38896&op=diff
==============================================================================
--- trunk/libtitanium-perl/lib/Titanium.pm (original)
+++ trunk/libtitanium-perl/lib/Titanium.pm Mon Jun 29 12:02:35 2009
@@ -2,7 +2,7 @@
use base 'CGI::Application';
use vars '$VERSION';
-$VERSION = '1.02';
+$VERSION = '1.03';
# Just load a few recommended plugins by default.
use CGI::Application::Plugin::Forward;
@@ -495,19 +495,28 @@
B<THE RUN MODE OF LAST RESORT: "AUTOLOAD">
-If Titanium is asked to go to a run mode which doesn't exist
-it will usually croak() with errors. If this is not your desired
-behavior, it is possible to catch this exception by implementing
-a run mode with the reserved name "AUTOLOAD":
+If Titanium is asked to go to a run mode which doesn't exist,
+by default it will return an error page to the user, implemented
+like this:
+
+ return $c->error(
+ title => 'The requested page was not found.',
+ msg => "(The page tried was: ".$c->get_current_runmode.")"
+ );
+
+See L<CGI::Application::Plugin::ErrorPage> for more details on the built-in
+error page system. If this is not your desired behavior for handling unknown
+run mode requests, implement your own run mode with the reserved name
+"AUTOLOAD":
$c->run_modes(
"AUTOLOAD" => \&catch_my_exception
);
-Before Titanium calls croak() it will check for the existence
-of a run mode called "AUTOLOAD". If specified, this run mode will in
-invoked just like a regular run mode, with one exception: It will
-receive, as an argument, the name of the run mode which invoked it:
+Before Titanium invokes its own error page handling it will check for the
+existence of a run mode called "AUTOLOAD". If specified, this run mode will in
+invoked just like a regular run mode, with one exception: It will receive, as
+an argument, the name of the run mode which invoked it:
sub catch_my_exception {
my $c = shift;
@@ -517,9 +526,7 @@
return $output;
}
-This functionality could be used for a simple human-readable error
-screen, or for more sophisticated application behaviors.
-
+This functionality could be for more sophisticated application behaviors.
=head3 start_mode()
More information about the Pkg-perl-cvs-commits
mailing list