Re: [Catalyst] DBIC ResultSet - what columns in it?

2007-12-18 Thread Andreas Marienborg
Wrong list, but $rs->result_source->columns might give you that? http://cpansearch.perl.org/~ash/DBIx-Class-0.08008/lib/DBIx/Class/ResultSource.pm#columns - andreas On 19. des.. 2007, at 06.09, Silvio Almeida wrote: I was looking for a way to get column names from a ResultSet. If I have a t

[Catalyst] Re: [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Fayland Lam
Christopher H. Laco wrote: Christopher Laco wrote: I know I've been down this thread before. When writing a framework that generates customized Catalyst apps, it would be a whole lot easier (well, more proper) to add plugins in lib/MyApp/Plugins, just like we do with controllers/models/view, tha

[Catalyst] DBIC ResultSet - what columns in it?

2007-12-18 Thread Silvio Almeida
I was looking for a way to get column names from a ResultSet. If I have a table with columns id, to, from, subject which is mapped into Email then if I do $c->model('Email')->{_source_handle}{schema}{source_registrations}{Reuniao}{_ordered_columns} then I get [ qw/ id to from subject / ] inde

Re: [Catalyst] Re: retrieving multiple values from forms

2007-12-18 Thread Matt S Trout
On Mon, Dec 17, 2007 at 07:26:53PM -0600, Andrew Rodland wrote: > On Monday 17 December 2007 05:27:46 pm A. Pagaltzis wrote: > > The *sane* thing is neither. > > > > The sane thing is to have *TWO* methods, one that *always* > > returns a scalar, and one that *always* returns a list. (Or > > rather

[Catalyst] Fixed (was upload breakage)

2007-12-18 Thread Joe Landman
I hate responding to myself ... feels like muttering online ... but this was simple pilot error. Worth noting for others whose day job is not writing HTML upload forms ... Joe Landman wrote: Rewrite this as Note the method="POST" and the removal of the class bit. Now it seem

[Catalyst] Re: retrieving multiple values from forms

2007-12-18 Thread kevin montuori
> "je" == jagdish eashwar <[EMAIL PROTECTED]> writes: >> So I changed the code to read "@role_id = >> $c->req->params(role_id)" as Kevin suggested and put [EMAIL PROTECTED] in >> the stash. Now there was no error, but I got "ARRAY(0x987e5e0)" in >> the template instead of the role_id value

[Catalyst] upload breakage

2007-12-18 Thread Joe Landman
Hi folks: I am trying to set up a simple multiple upload form. Using jQuery multi class for the interface portion. The form looks like this: and the receiving action is basically a cut and paste from the cookbook my $path = $c->req->param('destination_

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Christopher H. Laco
Christopher Laco wrote: > I know I've been down this thread before. When writing a framework that > generates customized Catalyst apps, it would be a whole lot easier > (well, more proper) to add plugins in lib/MyApp/Plugins, just like we do > with controllers/models/view, than it is to molest the

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread John Napiorkowski
--- "Christopher H. Laco" <[EMAIL PROTECTED]> wrote: > John Napiorkowski wrote: > > --- Bogdan Lucaciu <[EMAIL PROTECTED]> wrote: > > > >> On Tuesday 18 December 2007 04:39:36 Christopher > >> Laco wrote: > >>> I know I've been down this thread before. When > >> writing a framework that > >>> ge

Re: [Catalyst] Re: retrieving multiple values from forms

2007-12-18 Thread jagdish eashwar
On Dec 18, 2007 6:56 AM, Andrew Rodland <[EMAIL PROTECTED]> wrote: > On Monday 17 December 2007 05:27:46 pm A. Pagaltzis wrote: > > The *sane* thing is neither. > > > > The sane thing is to have *TWO* methods, one that *always* > > returns a scalar, and one that *always* returns a list. (Or > > ra

Re: [Catalyst] Re: retrieving multiple values from forms

2007-12-18 Thread Peter Karman
On 12/17/2007 05:27 PM, A. Pagaltzis wrote: > The sane thing is to have *TWO* methods, one that *always* > returns a scalar, and one that *always* returns a list. (Or > rather, an arrayref, because if it’s just a list, it is easy to > improperly treat it like a scalar, whereas if it’s an arrayre

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Christopher H. Laco
John Napiorkowski wrote: > --- Bogdan Lucaciu <[EMAIL PROTECTED]> wrote: > >> On Tuesday 18 December 2007 04:39:36 Christopher >> Laco wrote: >>> I know I've been down this thread before. When >> writing a framework that >>> generates customized Catalyst apps, it would be a >> whole lot easier >>>

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Christopher H. Laco
Ash Berlin wrote: > > On 18 Dec 2007, at 02:39, Christopher Laco wrote: > >> I know I've been down this thread before. When writing a framework that >> generates customized Catalyst apps, it would be a whole lot easier >> (well, more proper) to add plugins in lib/MyApp/Plugins, just like we do >>

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread John Napiorkowski
--- Bogdan Lucaciu <[EMAIL PROTECTED]> wrote: > On Tuesday 18 December 2007 04:39:36 Christopher > Laco wrote: > > I know I've been down this thread before. When > writing a framework that > > generates customized Catalyst apps, it would be a > whole lot easier > > (well, more proper) to add plug

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Ash Berlin
On 18 Dec 2007, at 02:39, Christopher Laco wrote: I know I've been down this thread before. When writing a framework that generates customized Catalyst apps, it would be a whole lot easier (well, more proper) to add plugins in lib/MyApp/Plugins, just like we do with controllers/models/view

Re: [Catalyst] [RFC] Loading Plugins from lib/MyApp/Plugins

2007-12-18 Thread Bogdan Lucaciu
On Tuesday 18 December 2007 04:39:36 Christopher Laco wrote: > I know I've been down this thread before. When writing a framework that > generates customized Catalyst apps, it would be a whole lot easier > (well, more proper) to add plugins in lib/MyApp/Plugins, just like we do > with controllers/m