[Catalyst] perl -d chokes in namespace-clean ...

2009-05-27 Thread Kiffin Gish
For some reason I cannot use the Perl debugger to debug my Catalyst application, which normally starts up and runs just fine without the debugger. Here is an example of the error output generated: start kif...@kiffin-laptop:~/opencmt $ perl -d bin/cmt_server.pl Loading DB routines

Re: [Catalyst] Mason + DBI + Catalyst?

2009-05-27 Thread Marcello Romani
Octavian Râsnita ha scritto: On Tue, May 26, 2009 at 01:37:40AM +0200, Daniel Carrera wrote: Being able to chain resultsets makes it much much easier than using straight SQL, and you write less code. If you have a query you've constructed called $query, and lets say you now only want active

Re: [Catalyst] Mason + DBI + Catalyst?

2009-05-27 Thread Octavian Rasnita
From: Marcello Romani mrom...@ottotecnica.com Octavian Râsnita ha scritto: On Tue, May 26, 2009 at 01:37:40AM +0200, Daniel Carrera wrote: Being able to chain resultsets makes it much much easier than using straight SQL, and you write less code. If you have a query you've constructed called

[Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Jarom Smith
Hello Catalysters: First of all, a thousand apologies if this is a FAQ (and if it is, please point me in the right direction). I have been programming in Perl for a while but I freely admit there's a lot I don't know, which is why I am here. I have completed the Catalyst tutorial, purchased

[Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-27 Thread Stephen Clouse
Hello all, I am fairly new to Catalyst and am currently evaluating it for use on several projects, a couple of them being conversions of an existing system to use Catalyst instead of the hacked-together in-house framework currently in use. Those apps have the old per-customer/mass-blog-hosting

Re: [Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Tobias Kremer
Hi Jarom, On 27.05.2009, at 18:59, Jarom Smith wrote: $vendor_name})-all; However, some of these methods are more complicated/complex and the proper DBIC invocation to produce an equivalent result to my DBI method is more than I would want to try to remember or replace each time I need to

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-27 Thread Stuart Watt
I did a simple tweak to the configuration file management so environment variables could be substituted into configuration files. All I added to MyApp.pm was: __PACKAGE__-config('Plugin::ConfigLoader' = {file = 'MyApp.yaml', substitutions = { ENV = sub {

RE: [Catalyst] ACL Error: deny_access_unless

2009-05-27 Thread Gordon Stewart
Tomas I have created a test application to use Catalyst::Authentication::Store::Minimal But I am still having the same issue. I am using perl 5.8.8 and ubuntu 8.04 if that has a bearing on why roles are broken. How easy is it to downgrade catalyst 5.7012, which I know will work?

Re: [Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Johannes Plunien
On 27.05.2009, at 18:59, Jarom Smith wrote: So, my question is: In a Catalyst context, where do I put these kinds of helper DB methods and how do I access them? (both from within a Catalyst app, as well as from the command-line like in a Cron job or whatever...) Some actual specific

[Catalyst] Why it is better to use an ORM like DBIx::Class

2009-05-27 Thread Octavian Râşniţă
Hi, I corrected (re-written) that message in which I tried to show why it is better to use DBIC, because it doesn't affect the efficiency. Here it is. I hope it could be helpful. Please tell me if you think it needs improvements: Why it is better to use an ORM like DBIx::Class There are

[Catalyst] Connect Catalyst app to MS SQL Server 2005

2009-05-27 Thread Ascii King
I'm trying to connect my Catalyst app to a MS SQL server 2005. I have DBIx::Class loaded and I went through the documentation, but I can't seem to get the right connection string. Would someone be able to point out my mistake and suggest the proper connection string? Here is the info from my

Re: [Catalyst] Connect Catalyst app to MS SQL Server 2005

2009-05-27 Thread Johannes Plunien
On 27.05.2009, at 21:44, Ascii King wrote: Model::DB schema_class WebTest::Schema connect_info dsn dbi:odbc:WebTestODBC userWebGuy password webtest AutoCommit 1 /connect_info M/Model::DB Model::DB schema_class WebTest::Schema connect_info

Re: [Catalyst] My experience porting to CataMoose

2009-05-27 Thread Tomas Doran
On 19 May 2009, at 02:38, Sebastian Willert wrote: . Here is my first stab at creating such a thing. Please bear in mind that English is not my native language and this is my first dab into Moose so this document is probably rife with factual and grammatical errors. That was brilliant,

Re: [Catalyst] My experience porting to CataMoose

2009-05-27 Thread hkclark
Agreed. Sebastian++ for taking the initiative to do that! Kennedy On Wed, May 27, 2009 at 6:42 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 19 May 2009, at 02:38, Sebastian Willert wrote: . Here is my first stab at creating such a thing. Please bear in mind that English is not my native

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-27 Thread Matthias Dietrich
Hi Stuart, do you use Log::Log4perl in your Catalyst apps? Months ago I wrote a message to the list about problems with Log::Log4perl and multiple instances of Catalyst within one Apache. Nobody answered and because it's currently not very important to me (not in production environment

Re: [Catalyst] Where is the DAO equivalent?

2009-05-27 Thread Jarom Smith
Thank you Tobias! That is what I was looking for. I note that Catalyst has automatically created a Schema.pm with __PACKAGE__-load_namespaces(), so all I needed to do was create ResultSet classes corresponding to my Result classes, and everything else just worked. jarom smith tech go-to

[Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread Jarom Smith
Sorry, one more question (and this one does have to do with Catalyst more than DBIC, I think...) Is there any magical invocation for the create script which will make a bunch of stub ResultSet classes for me, similar to how the Result classes are auto-generated when I do

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread J. Shirley
On Wed, May 27, 2009 at 5:31 PM, Jarom Smith ja...@jaromsmith.net wrote: Sorry, one more question (and this one does have to do with Catalyst more than DBIC, I think...) Is there any magical invocation for the create script which will make a bunch of stub ResultSet classes for me, similar to

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread Jarom Smith
Yes, I was thinking a very simple stub ResultSet class for every Result source. Something like: package MyApp::Schema::ResultSet::MyTable; use strict; use warnings; use base 'DBIx::Class::ResultSet'; # example #sub get_by_id { # my $self = shift; # my $id = shift; # #

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread J. Shirley
On Wed, May 27, 2009 at 6:52 PM, Jarom Smith ja...@jaromsmith.net wrote: Yes, I was thinking a very simple stub ResultSet class for every Result source. Something like: package MyApp::Schema::ResultSet::MyTable; use strict; use warnings; use base 'DBIx::Class::ResultSet'; # example

[Catalyst] Looking for a working example using DBIC and Authentication

2009-05-27 Thread Simon Baird
I've been struggling to get off the ground with Catalyst/DBIC/Authentication. I'm new to Catalyst so I want to do everything as standard as possible, (ie please don't tell me there is more than one way to do it or I might have to cry.. :) and I would like to use DBIC. I won't go into the