Re: [Catalyst] Best place to set environment variables

2006-10-11 Thread Jonathan Rockway
> This would make a nice plugin: Catalyst::Plugin::Setenv. OK this is in svn as revision 5077 and on CPAN now. Test and enjoy. file: $CPAN/authors/id/J/JR/JROCKWAY/Catalyst-Plugin-Setenv-0.01.tar.gz size: 3277 bytes md5: b8b5ef0ef3fb01c62bfe55e42f3593c2 Regards, Jonathan Rockway -- package J

Re: [Catalyst] Best place to set environment variables

2006-10-11 Thread Jonathan Rockway
This would make a nice plugin: Catalyst::Plugin::Setenv. The YAML would look like: environment: FOO_BAR: 1 SOMETHING_ELSE: a value Regards, Jonathan Rockway On Wednesday 11 October 2006 11:01, Bill Moseley wrote: > On Wed, Oct 11, 2006 at 01:10:57PM +0200, Marc Logghe wrote: > > Hi, > > Wh

Re: [Catalyst] Debugging Catalyst Apps

2006-10-11 Thread Alan Humphrey
perl -d script/[appname]_test.pl [page_or_action_to_load] should do the trick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roderick A. Anderson Sent: Wednesday, October 11, 2006 4:10 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Debugg

Re: [Catalyst] Debugging Catalyst Apps

2006-10-11 Thread Kieren Diment
On 12/10/06, Roderick A. Anderson <[EMAIL PROTECTED]> wrote: Roderick A. Anderson wrote:> Sorry.  Brain fart on my part.>> I had started cat-server.pl already then minimized the window it was> running in.But that didn't _really_ help.  The cat_server.pl goes off on it's merry way doing all the real

Re: [Catalyst] Debugging Catalyst Apps

2006-10-11 Thread hkclark
The tutorial covers this: Currently located at... http://search.cpan.org/~jrockway/Task-Catalyst-Tutorial-0.02/lib/Catalyst/Manual/Tutorial/Debugging.pod Let me know if that doesn't help. Regards, Kennedy On 10/11/06, Roderick A. Anderson <[EMAIL PROTECTED]> wrote: > Roderick A. Anderson wrote

Re: [Catalyst] Gentlemen, a call to arms!

2006-10-11 Thread Kieren Diment
On 12/10/06, John Napiorkowski <[EMAIL PROTECTED]> wrote: [snip]They are betting no one will put up the cash to sponsor a Perl team.  And they are looking for severalteams for each platform, enough to make a contestbetween developers in a platform meaningful.Perhaps perl has been *ahem* promoted fr

Re: [Catalyst] Debugging Catalyst Apps

2006-10-11 Thread Roderick A. Anderson
Roderick A. Anderson wrote: > Sorry. Brain fart on my part. > > I had started cat-server.pl already then minimized the window it was > running in. But that didn't _really_ help. The cat_server.pl goes off on it's merry way doing all the really neat Catalyst things while the perl debugger sit

Re: [Catalyst] Reference to the connected Model::DBIC schema for testing?

2006-10-11 Thread Drew Taylor
On 10/11/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > Drew Taylor wrote: > > On 10/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > >> my $model_dbic_schema_object = MyApp->model('Foo'); > > > > Shouldn't the name actually be "$model_dbic_resultset_object"? I'm > > still trying to wrap my head aro

Re: [Catalyst] Gentlemen, a call to arms!

2006-10-11 Thread John Napiorkowski
-- Matt S Trout <[EMAIL PROTECTED]> wrote: > http://www.plat-forms.org/faq.htm > > They're having a platform war. We're forever left > out of the ruby vs. python > games, the "enterprise" people ignore us (though > really, I'm not sure I mind > that :) but ... > > "We have been considering Per

[Catalyst] Gentlemen, a call to arms!

2006-10-11 Thread Matt S Trout
http://www.plat-forms.org/faq.htm They're having a platform war. We're forever left out of the ruby vs. python games, the "enterprise" people ignore us (though really, I'm not sure I mind that :) but ... "We have been considering Perl as one of the platforms to be admitted to the contest. So f

Re: [Catalyst] Catalyst::Plugin::Server::XMLRPC and utf-8 encoded responses

2006-10-11 Thread John Beppu
Catalyst::Plugin::Unicode ended up saving the day. jrockway++ ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://

Re: [Catalyst] Debugging Catalyst Apps

2006-10-11 Thread Roderick A. Anderson
Sorry. Brain fart on my part. I had started cat-server.pl already then minimized the window it was running in. Rod -- Roderick A. Anderson wrote: > I am kind of lost in how to run a Catalyst App through the Perl debugger. > > So far all my attempts of infinite innocence ( cluelessness ) have

[Catalyst] Debugging Catalyst Apps

2006-10-11 Thread Roderick A. Anderson
I am kind of lost in how to run a Catalyst App through the Perl debugger. So far all my attempts of infinite innocence ( cluelessness ) haven't worked out. The link from a previous thread on mod_perl profiling doesn't apply as I'm developing using cat_server.pl. I really need ( would like ) to

Re: [Catalyst] Best place to set environment variables

2006-10-11 Thread Bill Moseley
On Wed, Oct 11, 2006 at 01:10:57PM +0200, Marc Logghe wrote: > Hi, > What is The Best Way (TM) to configure environment variables in Catalyst I have my app's setup() method read the yaml file. That would be an easy place to set environment vars that are stored in the yaml file. But, I use a scri

[Catalyst] Catalyst::Plugin::Server::XMLRPC and utf-8 encoded responses

2006-10-11 Thread John Beppu
I'm trying to get Catalyst::Plugin::Server::XMLRPC to send back its responses with utf-8 encoding. So far, I've set $RPC::XML::ENCODING = 'utf-8' so that qq() works. Unfortunately, this is not enough. If the actual bytes being sent over the network are not in utf-8, the xml parser will throw an

Re: [Catalyst] Basic Tutorial & Version Conversion

2006-10-11 Thread Peter Edwards
Looks like you’ve got white space before the “=head1”. POD commands like that need to start at the beginning of a line.   Regards, Peter From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Wong Sent: 11 October 2006 16:07 To: catalyst@lists.rawmode.org Subject:

Re: [Catalyst] Basic Tutorial & Version Conversion

2006-10-11 Thread Jonathan Rockway
Looks like you have spaces before the POD directive (=head1 and =cut). These need to be right at the beginning of the line: Compare: [EMAIL PROTECTED] ~ $ perl -e '=head1 FOO' [EMAIL PROTECTED] ~ $ perl -e ' =head1 FOO' syntax error at -e line 1, near "=" Execution of -e aborted due to compilati

[Catalyst] Basic Tutorial & Version Conversion

2006-10-11 Thread Kevin Wong
Hi, I read through the tutorial and starting to create an test app, following instructions in the first lesson: Catalyst::Manual::Tutorial::CatalystBasics. Everything went well untill the last step, launch the app. I got this error, and don't understand. So I hope someone would teach me on this:

Re: [Catalyst] Best place to set environment variables

2006-10-11 Thread John Napiorkowski
-- Marc Logghe <[EMAIL PROTECTED]> wrote: > Hi, > What is The Best Way (TM) to configure environment > variables in Catalyst > ? > > Currently, it is set in a perl block in the apache > perl.conf > $ENV{ORACLE_HOME} = '/path/to/orahome/'; > > But actually I'd prefer to keep this together with

[Catalyst] Best place to set environment variables

2006-10-11 Thread Marc Logghe
Hi, What is The Best Way (TM) to configure environment variables in Catalyst ?   Currently, it is set in a perl block in the apache perl.conf $ENV{ORACLE_HOME} = '/path/to/orahome/';   But actually I'd prefer to keep this together with the configuration of the catalyst application itself. I

Re: [Catalyst] problem deploying with apache: templates not found

2006-10-11 Thread Marc Logghe
> Shouldn't that be /home/marcl/catalyst/posedb/root/search.tt2 > > Also the dump before referred to a different path with myapp > not posedb >dirs => ["", "home", "marcl", "catalyst", "myapp", "root"], > Yeah, sure, thanks for keeping heads up. I just wanted to make the example more 'gene

Re: [Catalyst] problem deploying with apache: templates not found

2006-10-11 Thread Peter Edwards
>> Have you tried doing "warn posedb->path_to( 'root' )" ? >/home/marcl/catalyst/posedb/root >Still 'Coldn't render template "file error - search.tt2: not found' >though, while it resides in >/home/marcl/catalyst/posedb/root/src/search.tt2 Shouldn't that be /home/marcl/catalyst/posedb/root/sear

Re: [Catalyst] problem deploying with apache: templates not found

2006-10-11 Thread Marc Logghe
> Can it see the Makefile.PL ? > > Have you tried doing "warn posedb->path_to( 'root' )" ? It gives: /home/marcl/catalyst/posedb/root So that seems fine, no ? Still 'Coldn't render template "file error - search.tt2: not found' though, while it resides in /home/marcl/catalyst/posedb/root/src/searc

Re: [Catalyst] problem deploying with apache: templates not found

2006-10-11 Thread Marc Logghe
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas MarienborgSent: Wednesday, October 11, 2006 12:05 PMTo: The elegant MVC web frameworkSubject: Re: [Catalyst] problem deploying with apache: templates not found Does the folder below your root/ have the

Re: [Catalyst] problem deploying with apache: templates not found

2006-10-11 Thread Andreas Marienborg
Does the folder below your root/ have the Makefile.PL?Its used to determine the home-folder of the application, so if thats missing, you probably get the wrong home folder, and thus the wrong paths to the templates.andreasOn 11. okt. 2006, at 11.48, Marc Logghe wrote: Hi all, I tried to deploy my

Re: [Catalyst] problem deploying with apache: templates not found

2006-10-11 Thread Matt S Trout
Marc Logghe wrote: > Hi all, > I tried to deploy my little test application with apache, basically just > like indicated here: > http://www.mail-archive.com/catalyst@lists.rawmode.org/msg01410.html > > Apache starts without errors but when a request is send for > http://localhost/pdfjoin, I get

[Catalyst] problem deploying with apache: templates not found

2006-10-11 Thread Marc Logghe
Hi all, I tried to deploy my little test application with apache, basically just like indicated here: http://www.mail-archive.com/catalyst@lists.rawmode.org/msg01410.html   Apache starts without errors but when a request is send for http://localhost/pdfjoin, I get the catalyst error dump s

Re: [Catalyst] Reference to the connected Model::DBIC schema for testing?

2006-10-11 Thread Matt S Trout
Drew Taylor wrote: > On 10/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote: >> my $model_dbic_schema_object = MyApp->model('Foo'); > > Shouldn't the name actually be "$model_dbic_resultset_object"? I'm > still trying to wrap my head around _all_ of DBIC, so I'm not just > being pedantic. :-) No. My

Re: [Catalyst] Reference to the connected Model::DBIC schema for testing?

2006-10-11 Thread Drew Taylor
On 10/10/06, Matt S Trout <[EMAIL PROTECTED]> wrote: > my $model_dbic_schema_object = MyApp->model('Foo'); Shouldn't the name actually be "$model_dbic_resultset_object"? I'm still trying to wrap my head around _all_ of DBIC, so I'm not just being pedantic. :-) Thanks, Drew -- ---