I'm happy to say that we now have catalyst in a stable state on OpenBSD.
We have most modules in the ports tree, a large subset of plugins working.
And DBIx::Class::C3_XS should join us next week. So a newcomer can now
just do pkg_add catalyst_tutorial and start playing.
Can someone please adjust
Is there a variable somewhere that can tell me when Catalyst's
dev-server is starting up? Because it seems to be calling every method
I've written, but without parameters, which intentionally causes errors
when in production, but shouldn't during automated tests.
Thanks in anticipation
Lee
Hello,
The question was already asked in the list, but I can't remember of any
satisfying answer.
Did anybody succeed in running the standalone server in debug mode ?
Seems that the server main loop, waiting for HTTP events, is not
compatible with the debugger loop waiting for keyboard events.
A. Pagaltzis ha scritto:
* Dave Rolsky [EMAIL PROTECTED] [2007-04-27 02:40]:
For example, when I want to find all the modules I'm using, I
usually do something like this:
grep -r '^use '
As a sidenote, do check out App::Ack, which installs the `ack`
tool. Much nicer than grep(1) for source
Lee Goddard ha scritto:
Is there a variable somewhere that can tell me when Catalyst’s
dev-server is starting up? Because it seems to be calling every method
I’ve written, but without parameters, which intentionally causes errors
when in production, but shouldn’t during automated tests.
Apologies if this not the right forum for this (but if not, where else
?). According to the FormBuilder docs, the following code in my template
should (and does) work:
[% FOREACH field IN form.fields %]
td[% field.label %]/td
td[% field.field%]/td
[% END %]
But so should this (and doesn't):
From: Marcello Romani [mailto:[EMAIL PROTECTED]
Lee Goddard ha scritto:
Is there a variable somewhere that can tell me when Catalyst's
dev-server is starting up? Because it seems to be calling every
method
I've written, but without parameters, which intentionally causes
errors
when
Lee Goddard ha scritto:
From: Marcello Romani [mailto:[EMAIL PROTECTED]
Lee Goddard ha scritto:
Is there a variable somewhere that can tell me when Catalyst's
dev-server is starting up? Because it seems to be calling every
method
I've written, but without parameters, which intentionally
Dami Laurent (PJ) [EMAIL PROTECTED] writes:
Did anybody succeed in running the standalone server in debug mode ?
I run it as perl -d myapp_server.pl though it's on Solaris, not on
Windows.
--
Radek
___
List: Catalyst@lists.rawmode.org
Listinfo:
Lee Goddard wrote:
Sorry: I meant when the server starts, it seems to attempt to call 'new'
for every *.pm in MyApp::Model::* :
Hopefully I recall how this works...
Every Model::*, Controller::*, View::* (plus their short-names for
back-compat) are instantiated via setup_components (see
Dave Rolsky wrote:
On Thu, 26 Apr 2007, RA Jones wrote:
Just for information, why do you say that? The tutorial suggests
doing just that.
Doing that to load non-Catalyst plugins buys you nothing, and obscures
how modules are loaded. For example, when I want to find all the
modules I'm
i usually stick $DB::single=1 at the top of the controller method i
am debugging, then perl -d ./script/myapp_server.pl
it then drops to the debugger prompt after i make the http request.
On Apr 27, 2007, at 5:04 AM, Dami Laurent ((PJ)) wrote:
Hello,
The question was already asked in the
it would be nice if $c-res-redirect returned a 303 appropriately if
$c-req-method eq 'POST'.
i have in the past trapped it in 'end' to fix up the $c-res-status
if == 302 and $c-req-method eq 'POST', but lately i just don't bother.
On Apr 27, 2007, at 6:03 AM, Simon Wilcox wrote:
On Tue,
Oleg Pronin wrote:
One can say that it is a very rare situation. I can tell you that in
production environment (about 1.000.000 hits per day) it happens every
day several times. Some users just see an error, some lost their data.
This is just not always visible to you.
The OP may find a
On Fri, Apr 27, 2007 at 05:06:40PM +0100, RA Jones wrote:
Dave Rolsky wrote:
Where in the tutorial does it suggest you load non-Catalyst modules
like this?
Sorry, it wasn't the tutorial, but the catalyst POD under the
Description section:
If your plugin starts with a name other than
Brian Kirkbride wrote:
Jason Gottshall wrote:
Brian Kirkbride wrote:
I usually have an architecture like this:
Client - Controller - Model - ORM - Database
The ORM is usually just vanilla (as you suggested), the Database
enforces simple
data constraints (foreign keys,
On Fri, 27 Apr 2007, Jason Gottshall wrote:
I tried eliminating Catalyst::Model::DBIC::Schema in favor of having my
true business Models do all the interfacing with DBIC. No problem with
those Models, but I did discover an unintended consequence:
Catalyst::Plugin::whatever::DBIC stuff stopped
- Original Message
From: Jason Gottshall [EMAIL PROTECTED]
To: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Friday, April 27, 2007 12:54:39 PM
Subject: RE: [Catalyst] Catalyst::Model::DBIC::Schema or not?
Brian Kirkbride wrote:
Jason Gottshall wrote:
Brian
* Simon Wilcox [EMAIL PROTECTED] [2007-04-27 15:10]:
So, what do people do - do you send 303/307's correctly or
just default to 302 behaviour?
I send 303, unless the HTTP request uses HTTP 1.0, in which case
the client sees a 302 instead.
Regards,
--
Aristotle Pagaltzis //
Dave Rolsky wrote:
On Fri, 27 Apr 2007, RA Jones wrote:
If your plugin starts with a name other than Catalyst::Plugin::, you can
Right - I managed to miss the significance of the plugin bit!
--
Richard Jones
Leeds, UK
___
List:
* Bill Moseley [EMAIL PROTECTED] [2007-04-27 20:55]:
sub post_redirect {
my ( $c, $location ) = @_;
my ($version) = $c-request-protocol =~ m/(\d+\.\d+)/;
# Make location absolute
$location = $c-uri_for( $location )
unless $location =~ /http/;
$c-res-redirect(
On Fri, Apr 27, 2007 at 10:30:01PM +0200, A. Pagaltzis wrote:
Various nitpickery corrected:
sub post_redirect {
my ( $c, $loc ) = @_;
my $is_rel_uri = $loc !~ m{ :// }x;
my $is_old_proto = do {
my $p = $c-request-protocol;
my ( $maj,
If you don't need transaction you don't use it. This is not we talking
about. To use transaction or not in every case is a high-level logic
decision
2007/4/27, Jeff Chimene [EMAIL PROTECTED]:
Oleg Pronin wrote:
One can say that it is a very rare situation. I can tell you that in
production
On Fri, Apr 27, 2007 at 10:32:15 -0700, Michael Higgins wrote:
Ah. Well, I got something working, I believe, using Cache::FileCache...
which is marginally faster than retreieving it every time. Probably, I need
a different cache method.
I recommend Cache::FastMmap. New versions of that module
Oleg Pronin wrote:
If you don't need transaction you don't use it. This is not we talking
about. To use transaction or not in every case is a high-level logic
decision
I disagree. That /is/ what we are talking about - unless MySQL cannot
tell you that the database connection has evaporated
Oleg Pronin wrote:
If you don't need transaction you don't use it. This is not we talking
about. To use transaction or not in every case is a high-level logic
decision
I disagree. That /is/ what we are talking about - unless MySQL cannot
tell you that the database connection has evaporated
26 matches
Mail list logo