Re: [Catalyst] Reference to the connected Model::DBIC schema for testing?
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 -- Drew Taylor * Web development consulting Email: [EMAIL PROTECTED] * Site implementation hosting Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] problem deploying with apache: templates not found
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 the catalyst error dump saying it can not find the template. Running the very same application using the test server all works fine. The paths for TTSite are configured as shown in the examples: __PACKAGE__-config({ #CATALYST_VAR = 'Catalyst', INCLUDE_PATH = [ posedb-path_to( 'root', 'src' ), posedb-path_to( 'root', 'lib' ) ], PRE_CHOMP = 1, Any clues ? Can it see the Makefile.PL ? Have you tried doing warn posedb-path_to( 'root' ) ? -- Matt S Trout Offering custom development, consultancy and support Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ + ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] problem deploying with apache: templates not found
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/search.tt2 Also the dump before referred to a different path with myapp not posedb dirs = [, home, marcl, catalyst, myapp, root], Regards, Peter ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] problem deploying with apache: templates not found
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 'generic' ... Confusing, I know, apologies for that. But it really is saying: dirs = [, home, marcl, catalyst, posedb, root], Thanks, Marc ___ 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://dev.catalyst.perl.org/
[Catalyst] Basic Tutorial Version Conversion
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: - Couldn't instantiate component "MyApp::Model::MyAppDB", "Cannot load schema class 'MyAppDB': syntax error at /home/kevin/MyApp/script//../lib/MyAppDB.pm line 3, near "=" Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/Catalyst/Model/DBIC/Schema.pm line 272. at script/myapp_server.pl line 53" at script/myapp_server.pl line 53 Compilation failed in require at script/myapp_server.pl line 53. and this is my MyAppDB.pm --- package MyAppDB;=head1 NAME MyAppDB - DBIC Schema Class =cutuse base qw/DBIx::Class::Schema/; . One more question that I would like to ask is: I have to take over a Catalyst project developed with Catalyst 5.33 using scaffolding technique. Is there anyway that I can use the old app on a new server with new version of Catalyst? Or anyway that I could convert the old app? I've checked the achive list, there are very helpful hints and guidelines, but could not find a confirmation and a specific guide on how to. Thank you for your help, and sorry if I ask the same old question. Kevin Stay in the know. Pulse on the new Yahoo.com. Check it out. ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] Best place to set environment variables
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 script to start my application when running under Apache. That script reads my config.yml file and then sets environment variables, creates httpd.conf, and starts the server. My config.yml has default settings, but also has a section which defines multiple server configurations (dev, testing, staging, production) that can override the default settings. Changes from the defaults are passed in environment variables from this script. -- Bill Moseley [EMAIL PROTECTED] ___ 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://dev.catalyst.perl.org/
[Catalyst] Debugging Catalyst Apps
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 step through each bit of my code. I'm sure there is a Catalyst related logic error but can't place my finger on. When I try 'perl -d cat_server.pl -p 3006' I get the following error when I get to cat-run( ... ); Couldn't create daemon: Address already in use at /usr/lib/perl5/site_perl/5.8.8/Catalyst/Engine/HTTP.pm line 135. followed by _other_ lines that relate to HTTP.pm. TIA, Rod -- ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] Catalyst::Plugin::Server::XMLRPC and utf-8 encoded responses
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://dev.catalyst.perl.org/
Re: [Catalyst] Gentlemen, a call to arms!
-- 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 Perl as one of the platforms to be admitted to the contest. So far, we have decided against it because we believe that too few professionals use it professionally for us to hope to get enough requests for admittance for the Perl platform. If you are a team that would like to participate and would like to use Perl, please contact [EMAIL PROTECTED] (Lutz Prechelt). This is a bit of a shotgun e-mail. Several list admins are probably going to attempt to track me down and shoot me in the head. I don't care. Our community has repeatedly failed to market it's way out of a paper bag, I've even helped contribute to this with my eminently forgettable London Web Frameworks Night talk. But this is about producing working code. *That* we know we can do. Stand up and be counted. It's gotta be good for a laugh if nothing else. From reading that webpage I think they are looking more for requests from teams that would actually be willing to go to Germany on the competition date. I'm not sure if we all just wrote, Hey I'm an IT consultant using Perl/Catalyst or Perl/FrameworkOfChoice and think you are making a big mistake not putting Perl on your list. if that would sway them. They are betting no one will put up the cash to sponsor a Perl team. And they are looking for several teams for each platform, enough to make a contest between developers in a platform meaningful. The rules specify that they won't be comparing platforms, so their won't be any, Perl versus ROR verus J2EE going on. So that's why they want enough people for a given platform to show up. Now if we could identify some awesome Catalyst developers who could are willing and available to go to the contest and then raise money to send them I think it could raise their attention. We have to decide if this particular contest represents a good investment of our time and cash. Perhaps some of the local or reasonable local Perl Mongers could send some teams? It would show the strength of the community. Anyone know more about the actual status and recognition of this contest? Would having perl programmers at it meaningfully add to our mindshare in the enterprise? --john *dons asbestos suit, hides under desk* -- Matt S Trout Offering custom development, consultancy and support Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ + ___ 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://dev.catalyst.perl.org/ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] Reference to the connected Model::DBIC schema for testing?
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 around _all_ of DBIC, so I'm not just being pedantic. :-) No. MyApp::Model::Foo isa C::M::DBIC::Schema Oh duh, of course it is! (It's the Catalyst model for DBIC::Schema right?) There I go showing my ignorance in public... I really need to sit down and read ALL the DBIC docs. :-) Drew -- Drew Taylor * Web development consulting Email: [EMAIL PROTECTED] * Site implementation hosting Web : www.drewtaylor.com * perl/mod_perl/DBI/mysql/postgres ___ 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://dev.catalyst.perl.org/
[Catalyst] Gentlemen, a call to arms!
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 far, we have decided against it because we believe that too few professionals use it professionally for us to hope to get enough requests for admittance for the Perl platform. If you are a team that would like to participate and would like to use Perl, please contact [EMAIL PROTECTED] (Lutz Prechelt). This is a bit of a shotgun e-mail. Several list admins are probably going to attempt to track me down and shoot me in the head. I don't care. Our community has repeatedly failed to market it's way out of a paper bag, I've even helped contribute to this with my eminently forgettable London Web Frameworks Night talk. But this is about producing working code. *That* we know we can do. Stand up and be counted. It's gotta be good for a laugh if nothing else. *dons asbestos suit, hides under desk* -- Matt S Trout Offering custom development, consultancy and support Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ + ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] Gentlemen, a call to arms!
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 from the duct tape of the internet to the duct tape of the enterprise. Of course if all that's stopping your shiny space shuttle from becoming an expensive meteorite is a few bits of duct tape, you'd want to keep that quiet too ;) ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] Debugging Catalyst Apps
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: 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 sits there with a blinking cursor. So the I'm back asking again. Is there anyway to single step through my code? TIA, Rod -- ___ 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://dev.catalyst.perl.org/ ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] Debugging Catalyst Apps
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 really neat Catalyst things while the perl debuggersits there with a blinking cursor.So the I'm back asking again.Is there anyway to single step through mycode? Yep, someone kindly wrote it up and put it on the wiki:http://dev.catalyst.perl.org/wiki/DebugSample # goes to add link to front page TIA,Rod--___List: Catalyst@lists.rawmode.orgListinfo: http://lists.rawmode.org/mailman/listinfo/catalystSearchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/Dev site: http://dev.catalyst.perl.org/ ___ 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://dev.catalyst.perl.org/
Re: [Catalyst] Best place to set environment variables
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, 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 script to start my application when running under Apache. That script reads my config.yml file and then sets environment variables, creates httpd.conf, and starts the server. My config.yml has default settings, but also has a section which defines multiple server configurations (dev, testing, staging, production) that can override the default settings. Changes from the defaults are passed in environment variables from this script. -- package JAPH;use Catalyst qw/-Debug/;($;=JAPH)-config(name = do { $,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //, ;$;]-[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;-setup; pgpZfosxhajQh.pgp Description: PGP signature ___ 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://dev.catalyst.perl.org/