[Catalyst-commits] r7105 -
trunk/Catalyst-Engine-Wx/lib/Catalyst/Engine
eriam at dev.catalyst.perl.org
eriam at dev.catalyst.perl.org
Fri Nov 9 13:42:05 GMT 2007
Author: eriam
Date: 2007-11-09 13:42:04 +0000 (Fri, 09 Nov 2007)
New Revision: 7105
Modified:
trunk/Catalyst-Engine-Wx/lib/Catalyst/Engine/Wx.pm
Log:
POD
Modified: trunk/Catalyst-Engine-Wx/lib/Catalyst/Engine/Wx.pm
===================================================================
--- trunk/Catalyst-Engine-Wx/lib/Catalyst/Engine/Wx.pm 2007-11-09 06:01:21 UTC (rev 7104)
+++ trunk/Catalyst-Engine-Wx/lib/Catalyst/Engine/Wx.pm 2007-11-09 13:42:04 UTC (rev 7105)
@@ -13,7 +13,7 @@
use IO::String;
use URI;
-our $VERSION = "0.02_01";
+our $VERSION = "0.02_02";
my $uri_proto = URI->new();
my $app;
@@ -57,6 +57,7 @@
},
_stop => sub {
$_[KERNEL]->delay('_keepalive');
+# exit;
}
}
);
@@ -83,6 +84,13 @@
$heap->{'class'}->handle_request($request);
}
+sub finalize {
+ my ( $self, $c, $request ) = @_;
+
+ print "finalize request dude !!\n";
+
+}
+
sub prepare {
my ( $self, $c, $request ) = @_;
@@ -94,6 +102,7 @@
$controller =~ s/\->/\//g;
$controller =~ s/::/\//g;
+
$controller = lc($controller);
}
@@ -146,21 +155,36 @@
This is the Catalyst engine specialized for building non-blocking and
multi-platforms desktop applications with the Catalyst framework. It
-allows to tie Wx events to Catalyst controllers asychronously.
+allows to tie Wx events to Catalyst controllers asynchronously.
It will also allow you to replace html views with Wx views from which you
can access the stash and deals with controllers just like in any other
Catalyst application running a web engine.
+You can re-use many Plugins in the Catalyst namespace to authenticate,
+deal with cache, store session data and so on.
+
See the tests for more informations.
+There is also a demo application included.
+
The following methods are for internal use despite that these don't start
with the classical underscore.
=head2 run
-Creates the Catalyst POE session that will receive and deals with events.
+Creates the Catalyst engine that will receive and deals with events coming
+from your Wx classes.
+You can pass it a bootstrap parameter to inform the engine what controller
+holds the main window creation.
+
+ MyApp->run({
+ bootstrap => 'MyApp->main_window',
+ });
+
+Otherwise it will run the default action in the root controller.
+
=head2 EVENT_REQUEST
Receive and event from the Wx views and send it in the Catalyst flow.
@@ -169,9 +193,13 @@
Transform an event with parameters into a Catalyst request.
+=head2 finalize
+
+Finalize a request and trap errors to display an error message.
+
=head1 AUTHORS
-Eriam Schaffter, C<eriam at cpan.org>
+Eriam Schaffter, C<eriam at cpan.org> and the Catalyst and wxPerl team.
=head1 COPYRIGHT
More information about the Catalyst-commits
mailing list