Re: [Catalyst] Plugins vs. Base Controllers

2006-08-18 Thread John Napiorkowski
I've been thinking that a plugin is something that usefully hooks into the catalyst process, like authentication and sessioning or extends the existing functions, like the dumper plugin extends the log object. There are a lot of plugins to add convenience methods to the context object, like the

Re: [Catalyst] Why scaffolding? Validation and Learning

2006-08-18 Thread Zbigniew Lukasiak
Some more technical details.The main idea of how the scaffolding should work is that we generate only a skeleton of directories, nearly empty controllers and some config stuff.  The generated controllers  only contain their package declaration and a 'use base Catalyst::Example::Controller::InstantC

Re: [Catalyst] Error while going through tutorial using Oracle

2006-08-18 Thread Hartmaier Alexander
Hi! Use the current svn version which will become 0.07001 soon, it has my Storage::Oracle patch for uppercasing the table names which wasn't included in 0.07. It's best you specify the sequence names for each auto-inc pk yourself, so you avoid the magic on startup which saves you some time. -

Re: [Catalyst] Error while going through tutorial using Oracle

2006-08-18 Thread Jason Crummack
Hi Hartmaier Thats going to cause me problems when the next release hits the streets, if you're automatically uppercasing table names how will it then handle reserved word table names where case is important? (e.g "user"). Jason Hartmaier Alexander wrote: > Hi! > > Use the current svn version

Re: [Catalyst] Error while going through tutorial using Oracle

2006-08-18 Thread Hartmaier Alexander
The table names aren't uppercased when defining the table class but just for the column_info DBI call. -Alex > -Original Message- > From: [EMAIL PROTECTED] [mailto:catalyst- > [EMAIL PROTECTED] On Behalf Of Jason Crummack > Sent: Friday, August 18, 2006 10:15 AM > To: The elegant MVC we

Re: [Catalyst] Error while going through tutorial using Oracle

2006-08-18 Thread Jason Crummack
That's my point for the column_info call in DBD::Oracle to work the case has to matched the stored case http://search.cpan.org/~pythian/DBD-Oracle-1.18a/Oracle.pm#column_info() i.e. create table "user" (p1 integer ) To retrieve column_info for that table the table name must be lowercase i

Re: [Catalyst] [***SPAM*** Score/Req: 11.00/6.0] Re: Error while going through tutorial using Oracle

2006-08-18 Thread Hartmaier Alexander
1. Oracle isn't case sensitive for table names 2. column_info on Oracle only works if the table name passed is uppercase. -Alex > -Original Message- > From: [EMAIL PROTECTED] [mailto:catalyst- > [EMAIL PROTECTED] On Behalf Of Jason Crummack > Sent: Friday, August 18, 2006 10:52 AM > To:

Re: [Catalyst] [***SPAM*** Score/Req: 11.00/6.0] Re: Error while going through tutorial using Oracle

2006-08-18 Thread Jason Crummack
I beg to differ, have you actually read the DBD::Oracle page link I sent you? try the following create table fred (p1 integer primary key); insert into fred values (1); select p1 from fred; returns 1 create table "fred" (p1 integer primary key); insert into "fred" values (2); select * from "f

Re: [Catalyst] [***SPAM*** Score/Req: 11.00/6.0] Re: [***SPAM*** Score/Req: 11.00/6.0] Re: Error while going through tutorial using Oracle

2006-08-18 Thread Hartmaier Alexander
Hi Jason! I haven't quoted my tablenames on creation (whatfor?) so all my tables are case insensitive and I didn't bother with quotes. Reserved words are reserved for a good reason, I don't see the point of using a reserved word as table name. Fell free to send a patch for Storage::DBI::Oracle

[Catalyst] ways to do stuff and why

2006-08-18 Thread Daniel McBrearty
if you need to add some block of functionality to your project, how many ways are there to do it? 1. Add a model. For any data source, maybe with some "intelligence" hidden in it. 2. Add a controller. To add specific functions to one project. 3. Add a controller base class. To add functions that a

Re: [Catalyst] [***SPAM*** Score/Req: 11.00/6.0] Re: [***SPAM*** Score/Req: 11.00/6.0] Re: Error while going through tutorial using Oracle

2006-08-18 Thread Jason Crummack
Alex, If I could predict what new reserved words may appear in future Oracle / SQL versions I would, that's the reason they give you a quote character to allow future changes to reserved words. I agree that if I was creating new tables, I wouldn't at this point in time use a currently known re

Re: [Catalyst] Error while going through tutorial using Oracle

2006-08-18 Thread Hartmaier Alexander
Hi Jason! Thanks for the explanation! So what do we need to do to make dbic support Oracle's quoted, case-sensitive tablenames? Is it possible for you to join us at #dbix-class on irc.perl.org? -Alex > -Original Message- > From: [EMAIL PROTECTED] [mailto:catalyst- > [EMAIL PROTECTED]

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Kevin Monceaux
On Thu, Aug 17, 2006 at 08:35:21PM +0200, Krzysztof Krzy?aniak wrote: > This is not needed. You simply add textarea (in template, html::widget or > formbuilder) and include javascript, Using that same logic one could say that HTML:Widget isn't needed because one could create forms themselves in

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Carl Franks
On 18/08/06, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > That would certainly work. But, imagine if a form plugin took care of the > dirty work for the developer. Let's pretend for a moment. Imagine, if you > will, that someone integrated the FCKEditor with HTML::Widget. One might be > able to

Re: [Catalyst] auth::DBIC & session problems

2006-08-18 Thread Len Jaffe
By way of followup:   I've got some new functionality to add to my app, so I'm concentrating on that. ONe cthat's done, I plan to check out fastcgi as an alternative, because I don't have these problems with the test server, just mod_perl.   If fcgi doesn't do it for me, I'll have to resort to som

Re: [Catalyst] [***SPAM*** Score/Req: 11.00/6.0] Re: [***SPAM*** Score/Req: 11.00/6.0] Re: Error while going through tutorial using Oracle

2006-08-18 Thread Matt S Trout
Jason Crummack wrote: > When approaching database related issues I afraid I can't take the > approach of it works alright for me, No. Neither can way, but don't be too hard on Alexander; he was a raw noob when he first got involved with DBIx::Class and has made valuable contributions in spite o

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Jonas Alves
On 18/08/06, Carl Franks <[EMAIL PROTECTED]> wrote: > On 18/08/06, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > > That would certainly work. But, imagine if a form plugin took care of the > > dirty work for the developer. Let's pretend for a moment. Imagine, if you > > will, that someone integrat

Re: [Catalyst] Why scaffolding? Validation and Learning

2006-08-18 Thread Matt S Trout
Zbigniew Lukasiak wrote: > Some more technical details. > > The main idea of how the scaffolding should work is that we generate > only a skeleton of directories, nearly empty controllers and some config > stuff. The generated controllers only contain their package > declaration and a 'use ba

Re: [Catalyst] Plugins vs. Base Controllers

2006-08-18 Thread Matt S Trout
John Napiorkowski wrote: > I've been thinking that a plugin is something that usefully hooks into the > catalyst process, like authentication and sessioning or extends the existing > functions, like the dumper plugin extends the log object. Actually, the Dumper plugin is strongly disrecommended

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Carl Franks
On 18/08/06, Jonas Alves <[EMAIL PROTECTED]> wrote: > On 18/08/06, Carl Franks <[EMAIL PROTECTED]> wrote: > > > > If you don't want to manually download the dojo library, it needs > > Catalyst::Plugin::Dojo which currently uses HTML::Dojo, but will be > > changed to use Alien::Dojo once that's merg

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Kevin Monceaux
Carl, On Fri, Aug 18, 2006 at 01:48:06PM +0100, Carl Franks wrote: > There's work in this direction already with HTML::Widget::Dojo. Cool. > Work has currently stalled, partly because dojo seemed to be going through > a lot of changes, and partly because it's slipped down my priority list. We

Re: [Catalyst] Plugins vs. Base Controllers

2006-08-18 Thread leonard . a . jaffe
Matt S Trout <[EMAIL PROTECTED]> :: 08/18/2006 10:08 AM :         > John Napiorkowski wrote: > That's how I'd do it. > > > On a side note if anyone has a working useful example of ACCEPT_CONTEXT I'd be > > glad to see it.  I can see the value of this but no matter how often I reread > > the do

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Matt S Trout
Kevin Monceaux wrote: > Since I'm asking for such features I certainly should put my money where my > mouth is. I'm willing to help in any way I can. Unfortunately at my > current skill level I doubt I could be of much help. I'm very new to > Catalyst. I tinkered with perl years ago but not a g

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Carl Franks
On 18/08/06, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > On Fri, Aug 18, 2006 at 01:48:06PM +0100, Carl Franks wrote: > > If you're able to help at all with developing these, it'd be most welcome. > > The first priority is probably rewriting Alien::Dojo, along the lines > > mentioned in the "Alien-

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread Jonas Alves
On 18/08/06, Carl Franks <[EMAIL PROTECTED]> wrote: > On 18/08/06, Jonas Alves <[EMAIL PROTECTED]> wrote: > > On 18/08/06, Carl Franks <[EMAIL PROTECTED]> wrote: > > > > > > If you don't want to manually download the dojo library, it needs > > > Catalyst::Plugin::Dojo which currently uses HTML::Doj

[Catalyst] Catalyst upgrade from 5.69 to 5.7001: many subroutines redefined

2006-08-18 Thread Hugh Lampert
I beg the indulgence of the list if this has all been discussed already. I tried to search my archived list copies but didn't see anything directly applicable, and since I multi-task as the DBA here in the office I can't dedicate too much time to head scratching over this I recently had so

Re: [Catalyst] Catalyst upgrade from 5.69 to 5.7001: many subroutines redefined

2006-08-18 Thread Lars Balker Rasmussen
On Fri, Aug 18, 2006 at 11:39:51AM -0400, Hugh Lampert wrote: > [-- Attachment #1 --] > [-- Type: text/html, Encoding: 7bit, Size: 14K --] > > [-- text/html is unsupported (use 'v' to view this part) --] Yeah, don't do that. -- Lars Balker RasmussenConsult

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread John Napiorkowski
You may want to review the thread, "Plugins vs. Base Controllers" to see what some of the lead architects have to say on the issue at least regarding 2/3 and 4. I think choosing between 2/3 is really a matter of what can be reused usefully and what is overkill design. For 1 I am not sure but I

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread Matt S Trout
John Napiorkowski wrote: > You may want to review the thread, "Plugins vs. Base Controllers" to see what > some of the lead architects have to say on the issue at least regarding 2/3 > and 4. I think choosing between 2/3 is really a matter of what can be reused > usefully and what is overkill d

Re: [Catalyst] problem with Catalyst::Plugin::XMLRPC on Solaris

2006-08-18 Thread Matt S Trout
David Morgan wrote: > > I'm having some problems getting a RPC XML server working under > Catalyst::Plugin::XMLRPC on Solaris 10 (I have since tested the code > under Ubuntu Dapper and it works- and no it has to run under Solaris! > ). I have also implemented the functions under XML::RPC::Serv

Re: [Catalyst] Catalyst upgrade from 5.69 to 5.7001: many subroutines redefined

2006-08-18 Thread Christopher H. Laco
Been there. Done this. This was fixed in trunk a while ago. http://dev.catalystframework.org/changeset/4748 To fix your current app, add the require Catalyst::Engine::HTTP line to your _server.pl. Or, you could probably update your Catalyst::Devel (Devel.pm and Helper.pm) to the latest from the

Re: [Catalyst] Why scaffolding? Validation and Learning

2006-08-18 Thread Thomas Hartman
The fact that InstantCrud "just worked" was an important factor for me, in choosing to push forward with Catalyst rather than ROR, or one of the other emerging web frameworks. "Catalyst is Backed By The Power of CPAN" wasn't enough of a reason for me. Yes, there are probably better reasons than Ins

Re: [Catalyst] Catalyst FormBuilder plugin on CPAN

2006-08-18 Thread Nate Wiger
Matt S Trout wrote: > Nate Wiger wrote: >> If you can send me a pointer to writing a controller base class, I'll >> certainly check it out. I didn't consider this an option, to be honest. >> I was trying to model it after XMLRPC, which is nice and easy to load >> with its :XMLRPC attribute. But

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread leonard . a . jaffe
-- Leonard A. Jaffe      (614)213-4283 JP Morgan Chase,   DTS Instrumentation Services [EMAIL PROTECTED] Matt S Trout <[EMAIL PROTECTED]> on  08/18/2006 12:33 PM: > Ek, not at all. The model should encapsulate *all

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread Brian Kirkbride
[EMAIL PROTECTED] wrote: > Matt S Trout <[EMAIL PROTECTED]> on 08/18/2006 12:33 PM: > > Ek, not at all. The model should encapsulate *all* business logic > and > > similar - it should be a model of the domain with which the app > interacts. The > > Controller should be as thin a layer as

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread Christopher H. Laco
Brian Kirkbride wrote: > [EMAIL PROTECTED] wrote: >> Matt S Trout <[EMAIL PROTECTED]> on 08/18/2006 12:33 PM: >> > Ek, not at all. The model should encapsulate *all* business logic >> and >> > similar - it should be a model of the domain with which the app >> interacts. The >> > Controlle

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread Alex Pavlovic
On Friday 18 August 2006 10:57, Brian Kirkbride wrote: > This is what I had thought initially, but I have come to see the benefit of > doing it the way Matt describes. This is the right way of doing it. Another reason for not throwing business logic into controller is, that sometimes you want to

[Catalyst] Problem using Catalyst::Plugin::Session::Store::Memcached

2006-08-18 Thread Edric
I am trying to use this module and get the following error: [catalyst] [error] Caught exception in engine "Couldn't save expires:279a054462d35ee68aa792f48f048b1affaef200 / 1155934545 in memcached storage at /usr/lib/perl5/site_perl/5.8.6/Catalyst/Plugin/Session.pm line 105"Here is what my app file

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread leonard . a . jaffe
Brian Kirkbride <[EMAIL PROTECTED]> @ 08/18/2006 01:57 PM: > [EMAIL PROTECTED] wrote: > > Matt S Trout <[EMAIL PROTECTED]> on  08/18/2006 12:33 PM: > > > [ Matt's Way ] > > [ Len's way %] > > This is what I had thought initially, but I have come to see the benefit of > doing it the way Matt des

Re: [Catalyst] Problem using Catalyst::Plugin::Session::Store::Memcached

2006-08-18 Thread John Napiorkowski
I had this same error when I started with memcached and it turned out to be a configuration problem.  In my case I didn't have the correct hostnames.  The way I debugged this is to remove the plugin and run the memcached module 'by hand' in a controller to mess with the configuration.There is a deb

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread Brian Kirkbride
[EMAIL PROTECTED] wrote: > Brian Kirkbride <[EMAIL PROTECTED]> @ 08/18/2006 01:57 PM: > > At this point, if I want code reuse I have two reasonable choices: > > > > A) Create business logic modules, ie. MyApp::Logic::CreateTrial, etc > > B) Write my own business logic methods in > MyApp::Schem

[Catalyst] utf-8 test server apache disagreement resolved with DBIC 7.001

2006-08-18 Thread apv
From this thread: http://www.mail-archive.com/ catalyst@lists.rawmode.org/msg00778.html I saw on the DBIC lists that the new release changed its utf8 handling. - UTF8Columns changed to use "utf8" instead of "Encode" I just grabbed it off the pause server and it does indeed fix the

Re: [Catalyst] ways to do stuff and why

2006-08-18 Thread Daniel McBrearty
following this with interest. I'm a beginner at this stuff, but the way I am seeing the problem goes something like this: 1. devise a schema for the data that needs storing that is as robust and future proof as I can make it. 2. figure out how the front end logic wants to see that data to make li

Re: [Catalyst] utf-8 test server apache disagreement resolved with DBIC 7.001

2006-08-18 Thread Marcus Ramberg
Actually, I changed this because the Encode way completely fucked up iusethis.com :-) So this was a totally selfish act.MarcusOn 8/18/06, apv <[EMAIL PROTECTED]> wrote: From this thread: http://www.mail-archive.com/catalyst@lists.rawmode.org/msg00778.htmlI saw on the DBIC lists that the new relea

Re: [Catalyst] Forms and Plugins and Tutorials, oh my!!

2006-08-18 Thread A. Pagaltzis
* Matt S Trout <[EMAIL PROTECTED]> [2006-08-18 16:55]: > All the best introductory docs to anything I've ever seen were > written by newbies who wrote out the things they wished had > been documented when they started while the memories were still > fresh. Reminds me: