Re: [Catalyst] Attribute::Handlers wont work in own classes under catalyst

2007-08-30 Thread John Napiorkowski
--- Nilson Santos Figueiredo Junior [EMAIL PROTECTED] wrote: On 8/29/07, Felix Antonius Wilhelm Ostmann [EMAIL PROTECTED] wrote: after a few tests we gone use this classes under catalyst ... and ... dont work :-/ under catalyst our classes dont use Attribute::Handlers :-/ we declare

Re: [Catalyst] Attribute::Handlers wont work in own classes under catalyst

2007-08-29 Thread John Napiorkowski
--- Felix Antonius Wilhelm Ostmann [EMAIL PROTECTED] wrote: OK, first the problem: we have build some classes with Attribute::Handlers (was inspired from Attribute::Property) This works realy fine! after a few tests we gone use this classes under catalyst ... and ... dont work

Re: [Catalyst] XML RPC Server and RenderView

2007-08-25 Thread John Napiorkowski
--- Nicolas Raspail [EMAIL PROTECTED] wrote: Matthieu Codron a écrit : Hi, Nicolas Raspail wrote: Hello, when playing with Catalyst::Plugin::Server::XMLRPC following the documentation, I get the same behaviour as Joe. Hmmm I thought it was just me. I have search

Re: [Catalyst] CMS

2007-08-25 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On Sat, Aug 25, 2007 at 12:41:11AM +0900, Matt Rosin wrote: Catalyst::Plugin::I18N::DBIC (and Mango::Catalyst::Plugin::I18N) is maybe a crosscutting thing like Zbigniew mentions with some useful concepts. I'm not looking to build Drupal or

Re: [Catalyst] RFC: Multiple :Chained and/or :PathPart attributes?

2007-08-20 Thread John Napiorkowski
--- Jason Kohles [EMAIL PROTECTED] wrote: Currently, attempting to pass multiple arguments to either Chained or PathPart attributes in a controller simply results in an exception being thrown indicating that you can't do that, I'm thinking it might be useful to change that behavior

Re: [Catalyst] How to execute controller at startup

2007-08-07 Thread John Napiorkowski
On 8/6/07, John Napiorkowski [EMAIL PROTECTED] wrote: --- Aditya Verma [EMAIL PROTECTED] wrote: Hi, I am new to catalyst. I have developed an application using Catalyst. I need all my controllers to execute at startup and register there method URLs. I am

Re: [Catalyst] How to execute controller at startup

2007-08-06 Thread John Napiorkowski
--- Aditya Verma [EMAIL PROTECTED] wrote: Hi, I am new to catalyst. I have developed an application using Catalyst. I need all my controllers to execute at startup and register there method URLs. I am not getting how to execute controller at startup. Please help me. Thanks,

Re: [Catalyst] Using Workflow with Catalyst (was Making Controllers thin and Models thick)

2007-07-24 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On Tue, Jul 24, 2007 at 02:43:12PM +0100, Ian Docherty wrote: Thanks for pointing out the workflow CPAN module. I am very interested in this for my current project and must spend some time looking at it. Has anyone actually used workflow

Re: [Catalyst] Making Controllers thin and Models thick

2007-07-18 Thread John Napiorkowski
--- Bill Moseley [EMAIL PROTECTED] wrote: On Wed, Jul 18, 2007 at 09:39:25AM +, Zbigniew Lukasiak wrote: Hi there, I am too working on a thick model component. It's a ResultSet base class with functions bearing (provisional?) names: build_create and build_update. They do

Re: [Catalyst] Making Controllers thin and Models thick

2007-07-18 Thread John Napiorkowski
--- Kee Hinckley [EMAIL PROTECTED] wrote: On Jul 18, 2007, at 10:49 AM, John Napiorkowski wrote: validating types for your columns. I do this for very common things like email addresses. Postgresql is nice for this since you can create custom types and domains using Perl as your

Re: [Catalyst] html::prototype syntax in new Cat version

2007-07-11 Thread John Napiorkowski
--- John Wang [EMAIL PROTECTED] wrote: On 7/10/07, J. Shirley [EMAIL PROTECTED] wrote: On 7/10/07, John Napiorkowski [EMAIL PROTECTED] wrote: It's been said by others but I really prefer to do all this in my templates. It would be easy to have this in a Template Toolkit

Re: [Catalyst] Proper way to perform cleanups on server shutdown?

2007-07-11 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On Wed, Jun 27, 2007 at 02:38:34PM -0700, John Napiorkowski wrote: Hi, I'm finding that the way I usually catch shutdown signals to perform cleanup is not working. Setting %SIG handlers doesn't seem to do it and I'm not finding

Re: [Catalyst] Proper way to perform cleanups on server shutdown?

2007-07-11 Thread John Napiorkowski
--- Jonathan T. Rockway [EMAIL PROTECTED] wrote: On Wed, Jul 11, 2007 at 09:03:29AM -0700, John Napiorkowski wrote: I can demonstrate this by placing an END block in my root modules (the MyApp.pm module) END { print got END BLOCK!\n; } This will never run under

Re: [Catalyst] Proper way to perform cleanups on server shutdown?

2007-07-11 Thread John Napiorkowski
--- Mark Zealey [EMAIL PROTECTED] wrote: Perhaps I'm missing something, but what's the problem with doing something like: package MyApp; $SIG{INT} = sub { graceful_shutdown(); exit(1); } END { graceful_shutdown() } sub graceful_shutdown { # Code here... } Note that

Re: [Catalyst] html::prototype syntax in new Cat version

2007-07-10 Thread John Napiorkowski
--- John Wang [EMAIL PROTECTED] wrote: On 7/10/07, J. Shirley [EMAIL PROTECTED] wrote: prototype.js and friends (scriptaculous, openrico, etc) are rated the lowest in those categories. It fails the robust check by having several things that don't play nice together, and also I've

Re: [Catalyst] html::prototype syntax in new Cat version

2007-07-10 Thread John Napiorkowski
--- Daniel McBrearty [EMAIL PROTECTED] wrote: It's been said by others but I really prefer to do all this in my templates. It would be easy to have this in a Template Toolkit plugin if you wanted, but I can't see the value of basically using perl as a code generator for Javascript.

Re: [Catalyst] using a persistent hash in a model

2007-07-07 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On Sat, Jul 07, 2007 at 04:52:19PM +0200, Daniel McBrearty wrote: Hi I want to use a persistent hash in a model, using (I guess) Storable. The hash would get inititalised in new, and modified in the model. I would use lock_store to save

Re: [Catalyst] Uniform treatment of all parameters (including file uploads)

2007-07-03 Thread John Napiorkowski
--- Zbigniew Lukasiak [EMAIL PROTECTED] wrote: I constantly bump into the mismatch in the treatment of 'normal' params and the file uploads. Wouldn't life be simpler if $c-request-param( 'file_field' ) would return a Catalyst::Request::Upload object (or an array of them)? You can

Re: [Catalyst] IDE for use with Catalyst

2007-06-30 Thread John Napiorkowski
--- Fernan Aguero [EMAIL PROTECTED] wrote: | Hi There, | | I am taking a this week off of work and would really like to build an | application with catalyst. Does anyone have an IDE that they can | recommend? I have been developing perl apps for a while now but have | been using vi

[Catalyst] Proper way to perform cleanups on server shutdown?

2007-06-27 Thread John Napiorkowski
Hi, I'm finding that the way I usually catch shutdown signals to perform cleanup is not working. Setting %SIG handlers doesn't seem to do it and I'm not finding that DESTROY methods are getting fired off in the expected way. For example if I set a $SIG{INT} handler in the application class

Re: [Catalyst] Custom error

2007-06-25 Thread John Napiorkowski
--- Evaldas Imbrasas [EMAIL PROTECTED] wrote: Actually, the example below doesn't work if there are any TT rendering errors. Is there a catch-all solution, or does it have to be done on the Apache level? I'm not sure what you mean. If you are running in mod_perl and set an error status

Re: [Catalyst] iterating ResultSet in controller vs. template

2007-06-19 Thread John Napiorkowski
--- John Goulah [EMAIL PROTECTED] wrote: If I do something simple like this: my $myalums = [ $c-model('MyDB::Alumni')-search({}, { rows = 20 }) ] ; and stash it: $c-stash-{alumni} = $myalums; I am able to iterate in the template like: [% FOREACH alum IN alumni -%]

Re: [Catalyst] :Template() Attribute

2007-06-16 Thread John Napiorkowski
--- Jonathan Rockway [EMAIL PROTECTED] wrote: On Friday 15 June 2007 08:36:33 am Christopher H. Laco wrote: OPTION #2: View::TT, View::Mason, View::** -- PROS: Template() will be honored with the use of RenderView and the use of

Re: [Catalyst] How to show SQL in apache error_log?

2007-06-12 Thread John Napiorkowski
--- Cookie [EMAIL PROTECTED] wrote: It seems useless.The apache error_log still don't output the sql. Thanks for your reponse. Date: Mon, 11 Jun 2007 09:41:04 +0300 From: Octavian Rasnita [EMAIL PROTECTED] Subject: Re: [Catalyst] How to show SQL in apache error_log? To: The elegant

Re: [Catalyst] Plugin HOWTO?

2007-06-04 Thread John Napiorkowski
--- Michele Beltrame [EMAIL PROTECTED] wrote: Hello Cristina! I would like to know if there's any HOWTO (or best practice) available on writing Catalyst's plugins. Try this: http://search.cpan.org/~jrockway/Catalyst-Manual-5.700701/lib/Catalyst/Manual/ExtendingCatalyst.pod

Re: [Catalyst] running a function once on all requests

2007-06-04 Thread John Napiorkowski
--- Steve Francia [EMAIL PROTECTED] wrote: I have a routine I would like to run once for each request. After reading through the docs, I think I have found a good approach and am wondering what others have done. I created a base controller which uses base 'Catalyst::Controller' .

Re: [Catalyst] deploying a Catalyst app

2007-06-01 Thread John Napiorkowski
--- mla [EMAIL PROTECTED] wrote: Octavian Rasnita wrote: Hi, Please tell me where can I find more information about deploying a Catalyst app. I think there should be a way of creating a tarball with the whole app, including the entire application. When installing it on the

Re: [Catalyst] using REST within the app

2007-05-24 Thread John Napiorkowski
--- John Goulah [EMAIL PROTECTED] wrote: What are peoples thoughts on using REST not only as a web service, but also within the application itself as another layer of abstraction? I would assume in this way all the DB related calls would go through the REST layer, and this way they can

Re: [Catalyst] Lightweight error/messages reporting to templates

2007-05-24 Thread John Napiorkowski
--- Paul Makepeace [EMAIL PROTECTED] wrote: I'm hoping there's a 'best practice' or common pattern for reporting errors and messages to templates (not necessarily just forms). I find myself doing stuff like, my @errors; my @messages; # ... if ($some_err_condition) { push

Re: [Catalyst] using REST within the app

2007-05-24 Thread John Napiorkowski
--- stephen joseph butler [EMAIL PROTECTED] wrote: On 5/24/07, John Goulah [EMAIL PROTECTED] wrote: What are some of the patterns people are using to implement this? Any other thoughts? People are going to hate me for saying this... but I've started to adopt the Java bean paradigm

Re: [Catalyst] Application design best practice

2007-05-18 Thread John Napiorkowski
--- Richard Jones [EMAIL PROTECTED] wrote: Having struggled to get my actions to match my urls the way I (think) I want, it was suggested in another thread that I put one or more action methods in the Root controller. I would be interested in opinions about what should/should not go in

Re: [Catalyst] Creating a thin Model

2007-05-18 Thread John Napiorkowski
--- Christopher H. Laco [EMAIL PROTECTED] wrote: Christopher H. Laco wrote: Jamie Neil wrote: Can anyone tell me the best way of wrapping a non catalyst perl module in a Catalyst Model? I'm trying to setup the following stack: MyApp::Controller::Widget MyApp::Model::Widget

Re: [Catalyst] Catalyst actions

2007-05-17 Thread John Napiorkowski
--- Richard Jones [EMAIL PROTECTED] wrote: Help - I'm going round in circles with Catalyst actions. I want http://localhost:3000/search to map to the method search() in MyApp::Controller::Search, so I defined the method as: sub search : Path Form('/search') { # a formbuilder method

RE: [Catalyst] Form validation in insert() and update()?

2007-05-16 Thread John Napiorkowski
--- Jason Gottshall [EMAIL PROTECTED] wrote: Chris Laco wrote: Off Topic. Making a note for myself and DBIC::Validation 100 can be validated because we have %colinfo {size = 100} Patterns could be covered in validation_profiles at the source level...but maybe this would be nice as

Re: [Catalyst] catalyst tutorial: MyAppDB/Book.pm vs. MyApp/Model/Book.pm

2007-05-15 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On Tue, May 15, 2007 at 03:47:57AM -0700, mla wrote: I find the Rails ActiveRecord interface pretty appealing: http://ar.rubyonrails.com/classes/ActiveRecord/Base.html DBIC's interface is not dissimilar although it favours data structures

Re: [Catalyst] catalyst tutorial: MyAppDB/Book.pm vs. MyApp/Model/Book.pm

2007-05-15 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On Tue, May 15, 2007 at 12:10:15AM -0700, mla wrote: But I'm thinking a better layout would be: /lib ./lib/Try ./lib/Try/Catalyst/Model ./lib/Try/Catalyst/Model/DB.pm ./lib/Try/Catalyst/View ./lib/Try/Catalyst/View/TT.pm

Re: [Catalyst] Is it time for a Catalyst Conference yet?

2007-05-09 Thread John Napiorkowski
--- Thomas Klausner [EMAIL PROTECTED] wrote: Hi! On Tue, May 08, 2007 at 05:13:03PM -0500, Dave Rolsky wrote: Just a general question to the list to see if there is interest in getting together a conference dedicated to Catalyst developers. Or is the feeling that the normal

Re: [Catalyst] creating action classes for chained actions, trouble with overriding -match

2007-05-08 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On Tue, Mar 20, 2007 at 01:15:48PM -0700, John Napiorkowski wrote: I may have answered my own question. A peer pointed me to: http://search.cpan.org/src/MRAMBERG/Catalyst-Runtime-5.7007/lib/Catalyst/DispatchType/Chained.pm and down

[Catalyst] Is it time for a Catalyst Conference yet?

2007-05-08 Thread John Napiorkowski
Hi, Just a general question to the list to see if there is interest in getting together a conference dedicated to Catalyst developers. Or is the feeling that the normal Perl conferences cover all our needs? _john __ Do You Yahoo!? Tired of spam?

Re: [Catalyst] Catalyst MVC Best Pratices

2007-05-03 Thread John Napiorkowski
- Original Message From: Anthony Gardner [EMAIL PROTECTED] To: catalyst@lists.rawmode.org Sent: Thursday, May 3, 2007 6:22:12 PM Subject: [Catalyst] Catalyst MVC Best Pratices Greetings, I've had a look at Catalyst and RoR from a basic point of view and like both. I'm also

Re: [Catalyst] Catalyst::Model::DBIC::Schema or not?

2007-04-27 Thread John Napiorkowski
- Original Message From: Jason Gottshall [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Friday, April 27, 2007 12:54:39 PM Subject: RE: [Catalyst] Catalyst::Model::DBIC::Schema or not? Brian Kirkbride wrote: Jason Gottshall wrote: Brian

Re: [Catalyst] How many models?

2007-04-26 Thread John Napiorkowski
Original Message From: Jamie Neil [EMAIL PROTECTED] To: catalyst@lists.rawmode.org Sent: Thursday, April 26, 2007 10:47:46 AM Subject: [Catalyst] How many models? Hi All, We're in the process of porting an existing CMS/Cart system to Catalyst, and trying to work out how to deal with

Re: [Catalyst] How to pass vars to modules

2007-04-26 Thread John Napiorkowski
- Original Message From: Dave Rolsky [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Thursday, April 26, 2007 3:17:20 PM Subject: Re: [Catalyst] How to pass vars to modules On Thu, 26 Apr 2007, RA Jones wrote: So I'm declaring it in all my

Re: [Catalyst] How many models?

2007-04-26 Thread John Napiorkowski
- Original Message From: Jamie Neil [EMAIL PROTECTED] To: catalyst@lists.rawmode.org Sent: Thursday, April 26, 2007 5:02:24 PM Subject: Re: [Catalyst] How many models? John Napiorkowski wrote: I think the consensus is that it's best to create business logic type models outside

Re: [Catalyst] query once per session?

2007-04-26 Thread John Napiorkowski
- Original Message From: Michael Higgins [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Thursday, April 26, 2007 5:35:09 PM Subject: [Catalyst] query once per session? Hello, I'm wondering how I can get a query (that becomes a drop-down list for

Re: [Catalyst] Componentised actions.

2007-03-30 Thread John Napiorkowski
- Original Message From: Nilson Santos Figueiredo Junior [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Thursday, March 29, 2007 11:46:48 PM Subject: Re: [Catalyst] Componentised actions. On 3/29/07, Oleg Pronin [EMAIL PROTECTED] wrote: I cannot

Re: [Catalyst] Data::FormValidator Plugin

2007-03-24 Thread John Napiorkowski
- Original Message From: Tomohiro Teranishi [EMAIL PROTECTED] To: catalyst@lists.rawmode.org Sent: Saturday, March 24, 2007 10:33:13 AM Subject: [Catalyst] Data::FormValidator Plugin Hi, I am a big fun of catalyst freamwork and I made a plugin for Data::FormValidator called

[Catalyst] RFC: Would this be useful to anyone?

2007-03-20 Thread John Napiorkowski
I have a version of Catalyst::Model::DBIC::Schema where I hacked in some code to automatically look at the query string and perform some limits and sorting. Basically if it sees a something like: ...?[table].page=1[table].max-results=10[table].order-by=[column].[direction] It will

[Catalyst] creating action classes for chained actions, trouble with overriding -match

2007-03-20 Thread John Napiorkowski
Hi, I've been working on some action classes that are primarily used by chained actions (although they could be used otherwise) and running into some confusion about overriding the -match method. It seems like if you have an action chain with several actions that have action classes, the

Re: [Catalyst] creating action classes for chained actions, trouble with overriding -match

2007-03-20 Thread John Napiorkowski
- Original Message From: John Napiorkowski [EMAIL PROTECTED] To: catalyst@lists.rawmode.org Sent: Tuesday, March 20, 2007 4:07:29 PM Subject: [Catalyst] creating action classes for chained actions, trouble with overriding -match Hi, I've been working on some action classes

Re: [Catalyst] [Announce] Catalyst-Runtime 5.7007

2007-03-14 Thread John Napiorkowski
- Original Message From: Marcus Ramberg [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Wednesday, March 14, 2007 10:22:35 AM Subject: [Catalyst] [Announce] Catalyst-Runtime 5.7007 Hi Gang. There's been some time since our last release, as we're busy

Re: PathPrefix (was: [Catalyst] Anybody using Chained('.') ?)

2007-03-13 Thread John Napiorkowski
There's a way you can mimic PathPrefix for now. This worked for me: http://use.perl.org/~LTjake/journal/31738 Looking forward to the swarm of tweaks and fixes that are part of the next Catalyst release :) --John - Original Message From: Robert 'phaylon' Sedlacek [EMAIL PROTECTED]

Re: [Catalyst] Template Engine

2007-03-13 Thread John Napiorkowski
- Original Message From: Mesdaq, Ali [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Tuesday, March 13, 2007 3:00:14 PM Subject: [Catalyst] Template Engine I just wanted to get everyone's feedback on what they prefer as their templating engine. I know

Re: [Catalyst] reserved words

2007-03-07 Thread John Napiorkowski
- Original Message From: Octavian Rasnita [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Wednesday, March 7, 2007 12:05:35 PM Subject: Re: [Catalyst] reserved words From: Jason Kohles Hi, Please tell me how can

Re: [Catalyst] reserved words

2007-03-06 Thread John Napiorkowski
- Original Message From: Octavian Rasnita [EMAIL PROTECTED] To: catalyst@lists.rawmode.org Sent: Tuesday, March 6, 2007 12:02:39 PM Subject: [Catalyst] reserved words Hi, Please tell me how can I find the list of reserved words that cannot be used as names for views, controllers,

Re: [Catalyst] Resurrected: HTTP redirect - delayed Firefox

2007-02-23 Thread John Napiorkowski
- Original Message From: Andy Grundman [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Friday, February 23, 2007 5:40:29 PM Subject: Re: [Catalyst] Resurrected: HTTP redirect - delayed Firefox On Feb 23, 2007, at 5:27 PM, Andy Grundman wrote: On

Re: [Catalyst] Resurrected: HTTP redirect - delayed Firefox

2007-02-23 Thread John Napiorkowski
- Original Message From: John Napiorkowski [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Friday, February 23, 2007 6:26:06 PM Subject: Re: [Catalyst] Resurrected: HTTP redirect - delayed Firefox - Original Message From: Andy Grundman

Re: [Catalyst] todo list for FormBuilders (was the l10n thread)

2007-02-20 Thread John Napiorkowski
- Original Message From: Jonathan Rockway [EMAIL PROTECTED] To: The elegant MVC web framework catalyst@lists.rawmode.org Sent: Tuesday, February 20, 2007 11:04:34 AM Subject: Re: [Catalyst] todo list for FormBuilders (was the l10n thread) Christopher H. Laco wrote: FormBuilder is nice

RE: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread John Napiorkowski
--- Hermida, Leandro [EMAIL PROTECTED] wrote: Hi everyone, Do not want to start any kind of language war or anything - just need some concrete, objective opinions and advice. We are starting a brand new web application + services + database project and my boss (those who make the

Re: [Catalyst] Re: Redirect status codes (was: HTTP redirect - delayed Firefox)

2007-02-13 Thread John Napiorkowski
--- A. Pagaltzis [EMAIL PROTECTED] wrote: * Matt S Trout [EMAIL PROTECTED] [2007-02-12 11:45]: On 10 Feb 2007, at 08:30, A. Pagaltzis wrote: Actually, 302 means “repeat the same request at this other URI” whereas 303 means “please retrieve this other URI using GET.” The

[Catalyst] overriding the match method for custom actions

2007-02-08 Thread John Napiorkowski
Hi, Does anyone know the correct way to override the match method of an Action? The docs give a great example for overriding the execute method, and there are some CPAN examples showing how to override dispatch, but I can't seem to find one for match. From looking at the source code I gather

Re: [Catalyst] overriding the match method for custom actions

2007-02-08 Thread John Napiorkowski
--- John Napiorkowski [EMAIL PROTECTED] wrote: Hi, Does anyone know the correct way to override the match method of an Action? The docs give a great example for overriding the execute method, and there are some CPAN examples showing how to override dispatch, but I can't seem to find

[Catalyst] MyAction for locally namespaced ActionClasses?

2007-02-08 Thread John Napiorkowski
Hi, The manual file for Actions at http://search.cpan.org/~jrockway/Catalyst-Manual-5.700501/lib/Catalyst/Manual/Actions.pod mentions that when you are adding Action classes to an action, you can use MyAction instead of ActionClass if the Action class is in the local namespace. I can't seem to

Re: [Catalyst] MyAction for locally namespaced ActionClasses?

2007-02-08 Thread John Napiorkowski
--- Jason Kohles [EMAIL PROTECTED] wrote: On Feb 8, 2007, at 1:58 PM, John Napiorkowski wrote: Hi, The manual file for Actions at http://search.cpan.org/~jrockway/Catalyst-Manual-5.700501/lib/ Catalyst/Manual/Actions.pod mentions that when you are adding Action classes

Re: [Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread John Napiorkowski
--- Svilen Ivanov [EMAIL PROTECTED] wrote: Hi, I'm experiencing very odd issues when I'm trying to make HTTP redirect with '$c-res-redirect'. I use the development server with option -k - keep alive. If I make HTTP redirect, Firefox 2.0.0.1 waits exactly 5 seconds before it loads

Re: [Catalyst] HTTP redirect - delayed Firefox

2007-02-08 Thread John Napiorkowski
--- Svilen Ivanov [EMAIL PROTECTED] wrote: 2007/2/8, John Napiorkowski [EMAIL PROTECTED]: [...] I believe that when redirecting as a result of a post that 303 is supposed to be correct, whereas 302 is used for redirects when the information is merely at a different location

Re: [Catalyst] Reaction Development?

2007-02-06 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On 6 Feb 2007, at 16:15, John Napiorkowski wrote: package manage::Model::Action; my $r = ActionReflector-new; $r-reflect_action_for( 'mylib::schemas::db::membership::members', __PACKAGE__.'membership::members::create', 'Create

[Catalyst] Perl Foundation Grants Call for Proposals

2007-02-05 Thread John Napiorkowski
Hi, Maybe old news for some people but there is a call for proposals for grants from the Perl Foundation. Might be a good chance to get some funding to take care of a few bits that people generally don't like to do for fun or don't generally get paid for. Maybe we could brainstorm a bit, settle

[Catalyst] Reaction Development?

2007-02-05 Thread John Napiorkowski
Hi, Is there a test suite for Reaction other than the sample application at the source control site? Because I have a patch to fix a problem with the DBIC action reflector not properly creating actions for DBIC classes in a deep hierarchy (like myschema::membership::members) but since I could

Re: [Catalyst] chained actions, knowing if current action is an endpoint or not

2007-02-01 Thread John Napiorkowski
--- Dami Laurent (PJ) [EMAIL PROTECTED] wrote: Dear Catalysters, I would like to set up an action chain where the entry point to the chain (first action) has to do different things depending on whether there is another action down the chain or not. Is there a way in the API to ask

Re: [Catalyst] chained actions, knowing if current action is an endpoint or not

2007-02-01 Thread John Napiorkowski
--- Jonas Alves [EMAIL PROTECTED] wrote: On 01/02/07, Dami Laurent (PJ) [EMAIL PROTECTED] wrote: Dear Catalysters, I would like to set up an action chain where the entry point to the chain (first action) has to do different things depending on whether there is another action

Re: [Catalyst] Operation eq: no method found, ... Dispatcher.pm line 377

2007-01-23 Thread John Napiorkowski
--- Michael Reece [EMAIL PROTECTED] wrote: On Jan 22, 2007, at 1:30 PM, John Napiorkowski wrote: --- Michael Reece [EMAIL PROTECTED] wrote: i am getting intermittent errors (under mod_perl; Catalyst version 5.7003) from $c-dispatcher-uri_for_action: Operation eq: no method

Re: [Catalyst] Operation eq: no method found, ... Dispatcher.pm line 377

2007-01-22 Thread John Napiorkowski
--- Michael Reece [EMAIL PROTECTED] wrote: i am getting intermittent errors (under mod_perl; Catalyst version 5.7003) from $c-dispatcher-uri_for_action: Operation eq: no method found, left argument in overloaded package URI::_generic, right argument has no overloaded magic at

Re: [Catalyst] Accessing YAML details from within the Model libraries

2007-01-18 Thread John Napiorkowski
--- Anthony Gladdish [EMAIL PROTECTED] wrote: Hi, I'm trying to pull out all my DBIx::Class connection details for my Catalyst application, from a .yml config file, something like: --- model: MyCatPackage::Cat::Model::MyPackageDB schema_class: MyPackage::Schema connect_info:

Re: [Catalyst] Recommend methods for form handling

2007-01-17 Thread John Napiorkowski
--- Jim Spath [EMAIL PROTECTED] wrote: I was wondering what the current consensus among Catalyst users is about what the best way to approach forms is? I started off writing the forms directly into the template, validating with FormValidator::Simple, and trying to fill values in with

[Catalyst] Best Practices Question: What to put in an ActionClass Versus a Custom Controller?

2007-01-16 Thread John Napiorkowski
Hi, I've been thinking a lot about all the different ways Catalyst let's you do stuff and wondering what, if any, thoughts any of you might have regarding some of the overlapping features of Controllers and ActionClasses, particularly when thinking about creating good reusable code. Before we

Re: [Catalyst] Article on web frameworks ommits Catalyst

2007-01-02 Thread John Napiorkowski
--- Kieren Diment [EMAIL PROTECTED] wrote: Hey, There's an article, Web Framework Manifesto here: http://blog.lostlake.org/index.php?/archives/16-Web-Framework-Manifesto.html I've written a comment in the article suggesting that this is a pretty major ommission and that he might want

Re: [Catalyst] Article on web frameworks ommits Catalyst

2007-01-02 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On 2 Jan 2007, at 14:33, John Napiorkowski wrote: --- Kieren Diment [EMAIL PROTECTED] wrote: Hey, There's an article, Web Framework Manifesto here: http://blog.lostlake.org/index.php?/archives/16-Web-Framework- Manifesto.html

Re: [Catalyst] Article on web frameworks ommits Catalyst

2007-01-02 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On 2 Jan 2007, at 14:33, John Napiorkowski wrote: --- Kieren Diment [EMAIL PROTECTED] wrote: Hey, There's an article, Web Framework Manifesto here: http://blog.lostlake.org/index.php?/archives/16-Web-Framework- Manifesto.html

Re: [Catalyst] default template

2006-12-29 Thread John Napiorkowski
--- Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I often need to make external redirections like in the following case: sub logout : Local { my ($self, $c) = @_; $c-logout; $c-res-redirect($c-uri_for(/)); } When I access /user/logout for executing this subroutine, it prints the

Re: [Catalyst] default template

2006-12-29 Thread John Napiorkowski
--- Octavian Rasnita [EMAIL PROTECTED] wrote: From: Eden Cardim [EMAIL PROTECTED] No, there isn't. Catalyst only emits the response after all the actions are dispatched. One way you can keep the end action from running is by not having one. In your case, set up a Controller without

[Catalyst] RFC for Catalyst enabled GWT clone

2006-12-29 Thread John Napiorkowski
Since it's Friday before the holiday (for me in the USA at least) I thought to share some random speculation with the list. I've been working a bit with the Google Web Toolkit as part of my day job and although I really love the idea behind it I don't love the Java complications of it and was

Re: [Catalyst] Accessing $c from Model

2006-12-27 Thread John Napiorkowski
--- Lorn [EMAIL PROTECTED] wrote: you can passa the $c from controller to model $c-model(foo)-bar($c,$foobar); I'd vote for this method over setting the context, since one of the goals of a model is to not care about how or when it's called, that way you are encouraging yourself to not build

Re: [Catalyst] Accessing $c from Model

2006-12-27 Thread John Napiorkowski
--- Eden Cardim [EMAIL PROTECTED] wrote: On 12/27/06, Mark Zealey [EMAIL PROTECTED] wrote: Hi there, I'm basically wanting to write a simple log function which logs hits on my website as entries in a database (automatically adding $c-user-{id} and $c-req-referrer etc), but to do so

Re: [Catalyst] templates

2006-12-20 Thread John Napiorkowski
--- Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, Could you please tell me why the templates should be put under the /root directory? Well, the only good reason I can think of is that since it's the default all other Catalyst developers will look for them there first. Otherwise I know

Re: [Catalyst] 404 Not Found

2006-12-20 Thread John Napiorkowski
--- Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I have made the following controller: package TranzactiiBursiere::Controller::Bunatati; use strict; use warnings; use base 'Catalyst::Controller'; sub bunatati : General { my ( $self, $c ) = @_; $c-res-body(okokok); } 1;

Re: [Catalyst] Re: AJAX under application/xhtml+xml

2006-12-07 Thread John Napiorkowski
--- Ashley Pond V [EMAIL PROTECTED] wrote: On Wednesday, Dec 6, 2006, at 21:06 US/Pacific, A. Pagaltzis wrote: * apv [EMAIL PROTECTED] [2006-12-07 01:35]: Does anyone have sample code of anything AJAXy (don't care about the library or if it's hand rolled) that runs under

[OT] Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-06 Thread John Napiorkowski
--- Matt S Trout [EMAIL PROTECTED] wrote: On 6 Dec 2006, at 13:57, Simon Wilcox wrote: On Wed, 6 Dec 2006, Matt S Trout wrote: I wouldn't use HTML::Widget at all. The people who took over maint after sebastian gave up on it have struggled valiantly to make it useful and

Re: [Catalyst] model connect info to come from YAML configuration file

2006-12-05 Thread John Napiorkowski
-- Brian Cassidy [EMAIL PROTECTED] wrote: Hermida, Leandro wrote: Inside MyApp::Model::MyAppDB: use strict; use base 'Catalyst::Model::DBIC::Schema'; __PACKAGE__-config( schema_class = 'MyAppDB', connect_info = [ 'dbi:SQLite:myapp.db', '',

Re: [Catalyst] Re: How are you handling multiformat URL

2006-11-29 Thread John Napiorkowski
--- A. Pagaltzis [EMAIL PROTECTED] wrote: * John Napiorkowski [EMAIL PROTECTED] [2006-11-29 00:05]: I often find that the resource of a given URI can have alternative formats. For example, I might have a table of information on an html webpage and I want to offer two alternative

[Catalyst] How are you handling multiformat URL

2006-11-28 Thread John Napiorkowski
Hi, This is more of a best practices type question that's come up for me again and again and I thought to get the community's thinking, particularly given the REST oriented discussion floating around lately. It's not specifically about Catalyst although as we further our best practices

Re: [Catalyst] How are you handling multiformat URL

2006-11-28 Thread John Napiorkowski
--- Jonathan Rockway [EMAIL PROTECTED] wrote: John Napiorkowski wrote: According to suggestions for URI best practices, such as http://www.w3.org/Provider/Style/URI.html; you should make your URI for the resource without a file extension, since you want to make enduring URI's

Re: [Catalyst] Re: How are you handling multiformat URL

2006-11-28 Thread John Napiorkowski
--- A. Pagaltzis [EMAIL PROTECTED] wrote: * John Napiorkowski [EMAIL PROTECTED] [2006-11-29 00:05]: I often find that the resource of a given URI can have alternative formats. For example, I might have a table of information on an html webpage and I want to offer two alternative

Re: [Catalyst] Chained actions and uri_for

2006-11-14 Thread John Napiorkowski
--- Renaud [EMAIL PROTECTED] wrote: Hello, I understood that using the Chained actions way would be the more proper way to design an uri-based multilangual application. In my case, I have to extract a province and a language from my url, so here is how I coded it: In Root.pm: sub

Re: [Catalyst] Why I get this error sometimes when run catalyst

2006-11-09 Thread John Napiorkowski
--- Mao DengFeng-e13751 [EMAIL PROTECTED] wrote: Hi, When I run catalyst, Sometime I got below error: -- Use of uninitialized value in subroutine entry at /opt/perl/lib/5.8.6/i686-linux-thread-multi/Socket.pm line 370. Bad

[Catalyst] Successes with PAR?

2006-11-08 Thread John Napiorkowski
Hi, I've been playing with the PAR module for my deployment, following the tutorial, but when I get to the make catalyst_par part I get a list of output with no apparent trouble and then at the end I get: Writing PAR reporting.par make: *** [catalyst_par] Error 2 Anyone run into that or got PAR

Re: [Catalyst] Programmatic way to determine the needed number of captures for an action?

2006-11-04 Thread John Napiorkowski
--- Ash Berlin [EMAIL PROTECTED] wrote: John Napiorkowski wrote: Hi, I have a question about $c-uri_for and chained actions. I've really enjoyed having this feature to programmatically create urls for me in the code. It's one of the greatest things about Catalyst I think

[Catalyst] Anyone using Catalyst::Plugin::Authentication::Credential::HTTP?

2006-11-02 Thread John Napiorkowski
Hi, I've been trying to get this http-basic style authentication plugin to work but for the life of me I just can't figure it out from the instructions or the test examples. When I set it up as in the instructions I can get the browser to prompt me but if I click cancel a few times I get right

Re: [Catalyst] Chained actions usage and DBIC performance

2006-10-30 Thread John Napiorkowski
--- Nilson Santos Figueiredo Junior [EMAIL PROTECTED] wrote: Lately I've been using chained actions a lot, since it ends up making everything look cleaner and more organized. I tend to structure things in a way that I've got some Catalyst actions that load some items from the database

[Catalyst] subrefs in Formbuilder plugin configuration file?

2006-10-23 Thread John Napiorkowski
Hi, In some of the Formbuilder documentation for the configuration file I get the impression that a subroutine or subref can be called. I get this from looking at the documentation for: http://search.cpan.org/~nwiger/CGI-FormBuilder-3.0401/lib/CGI/FormBuilder/Source/File.pm; There is an example

  1   2   >