Re: [Catalyst] Catalyst Hosting

2007-08-09 Thread Brian Kirkbride
before outgrowing it and moving on to several dedicated servers. Their support cannot be beat and the prices are very reasonable. Best, Brian Kirkbride ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] Custom error

2007-06-27 Thread Brian Kirkbride
Jason Kohles wrote: On Jun 26, 2007, at 12:45 PM, Brian Kirkbride wrote: Jason Kohles wrote: On Jun 25, 2007, at 1:27 PM, Evaldas Imbrasas wrote: Yes, that's what I meant, thanks Brian. Please provide a code example using RenderView action. I think it would also make sense to incorporate

Re: [Catalyst] RFC for handling reverse proxies not deployed to standard ports.

2007-06-15 Thread Brian Kirkbride
be the exact path Catalyst uses or would there be a X-Forwarded-Base header or somesuch? Best, Brian Kirkbride ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Mapping another site to a subset of a Catalyst application

2007-06-07 Thread Brian Kirkbride
Brian Kirkbride wrote: Hello all, I've got an Catalyst webapp that has several areas: /admin/... /manage/... /client/... All of these are accessible from one site: mysite.com/admin mysite.com/manage mysite.com/client Now, here's the tricky part. I'd really like to have a proxy or URL

[Catalyst] Handling slow uploads externally

2007-04-12 Thread Brian Kirkbride
base controller being released on CPAN? Best, Brian Kirkbride ___ List: [EMAIL PROTECTED] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http

Re: [Catalyst] Handling slow uploads externally

2007-04-12 Thread Brian Kirkbride
Perrin Harkins wrote: On 4/12/07, Brian Kirkbride [EMAIL PROTECTED] wrote: Now I'd like to avoid tying up the heavy procs for slow uploads. Many suggest to run upload handlers as CGI rather than mod_perl because the 1s startup time is negligent compared to the time required to upload. I have

Re: [Catalyst] Re: Handling slow uploads externally

2007-04-12 Thread Brian Kirkbride
A. Pagaltzis wrote: Hi Brian, * Brian Kirkbride [EMAIL PROTECTED] [2007-04-12 19:25]: I have a CMS-like application using Catalyst for which about 40-50% of requests contain large file uploads. I'm using a pretty standard two-tiered setup to avoid tying up heavy mod_perl procs for slow client

Re: [Catalyst] Root.pm $c-detach() does not detach?

2007-04-03 Thread Brian Kirkbride
Luis Azevedo wrote: Hi All, In Root.pm, auto action I am trying to break the execution of chain of Actions. To be more exact, whenever I detect I loose connection to a socket or cookie session, I want to redirect the user to a login action, not rendering the action the user is calling. I

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

2007-03-28 Thread Brian Kirkbride
Jason Gottshall wrote: Brian Kirkbride wrote: I definitely have Models, but they are a higher-level abstraction than the ORM layer. If I understand your argument, you are advocating that data constraints imposed by your business logic be enforced by the the DB rather than the ORM. That's

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

2007-03-23 Thread Brian Kirkbride
Jason Gottshall wrote: Catalysters: I'm developing a new app using Catalyst, with DBIC as the db persistence layer. I intend to build Models that encapsulate the business logic and that will use DBIC to interact with the database as necessary, instead of using DBIC as a model itself. So if I'm

[Catalyst] RFC: Chained actions with PathPart('.')

2007-03-22 Thread Brian Kirkbride
make sense if the Chained attribute is '/' I've attached a patch implementing this change, comments or criticisms much appreciated. Best, Brian Kirkbride --- /tmp/Chained.pm 2007-03-22 13:27:35.452477260 -0500 +++ /opt/catalyst/lib/Catalyst/DispatchType/Chained.pm 2007-03-22 13:41

Re: [Catalyst] RFC: Chained actions with PathPart('.')

2007-03-22 Thread Brian Kirkbride
Brian Cassidy wrote: Perhaps you're looking for PathPrefix (coming to a new Catalyst near you ... eventually -- it's in svn now.). For now, do this: sub _parse_PathPrefix_attr { my ( $self, $c, $name, $value ) = @_; return PathPart = $self-path_prefix; } sub get_id : Chained('/')

Re: [Catalyst] Form Module Dichotomy

2007-03-22 Thread Brian Kirkbride
Alejandro Imass wrote: Hello, I wrote a complete backend in HTML::Widget a couple of months ago, and now I'm adding new functionallity to another part of the site. The question is: a - Stick with HTML::Widget and wait for FormFu ? b - use C::C::FormBuilder ? I am inclined for option b, but

Re: [Catalyst] Re: Announce: Website In A Box

2007-03-21 Thread Brian Kirkbride
Thomas Klausner wrote: Hi! On Wed, Mar 21, 2007 at 04:47:15PM -0400, Christopher H. Laco wrote: Or more to the point... have app supplied templates, and be able to user user customized templates in combination with the app templates...without have to worry about sources, merging, upgrade,

Re: [Catalyst] Re: Announce: Website In A Box

2007-03-21 Thread Brian Kirkbride
Christopher H. Laco wrote: THe only part of that that feels dirty is that it's still an either-or situation, rather than an base_mine situation. That could be solved by TT plugins, but that's nasty at some level. True, but if you get the granularity right this is not a problem. Think of

Re: [Catalyst] Regex -- optional index.html

2007-03-02 Thread Brian Kirkbride
Michael Reece wrote: i don't think it's a bug. snip have you tried adding :Args(0) to the action? That was my guess too, I've been bit by this problem before adding Args(0) to my actions. - Brian ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-08 Thread Brian Kirkbride
Jeffrey Ng wrote: I am the coworker of Fayland who posted the topic memory usage of mod_perl process. Our company has invested quite some time on migrating our perl code to catalyst (more than half year of time by 7 programmers). However, I am starting to worry that moving to catalyst is

Re: [Catalyst] Accessing action URIs outside of Catalyst app

2007-01-08 Thread Brian Kirkbride
Matt S Trout wrote: On 3 Jan 2007, at 20:21, Brian Kirkbride wrote: Hello all, Is there a best practice way to maintain a map of URLs used in a Catalyst application. To clarify, I need to map actions to URLs outside of Catalyst (CRON jobs, Emailers, etc) and won't have access to $c

Re: [Catalyst] iterating twice over the same resultset in the template?

2007-01-03 Thread Brian Kirkbride
Fernan Aguero wrote: [ or perhaps 'is it possible to clone a resultset?' ] Hi! I'm building a form whose elements are items taken from the db. And I need these items to show up in different elements (fieldsets) of the form. More or less something like this: With items similar to: 'checkbox'

[Catalyst] Accessing action URIs outside of Catalyst app

2007-01-03 Thread Brian Kirkbride
Hello all, Is there a best practice way to maintain a map of URLs used in a Catalyst application. To clarify, I need to map actions to URLs outside of Catalyst (CRON jobs, Emailers, etc) and won't have access to $c-uri_for or the $c-dispatcher. Right now I have a hashref of action_name =

Re: [Catalyst] system() within Catalyst

2006-10-18 Thread Brian Kirkbride
could be reset to the default in the forked child process to avoid this problem, but didn't have the time to fix it. I only use system() in 1 or 2 places and the local fix was acceptable for me. Best, Brian Kirkbride ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] Dynamically adding ActionClass

2006-10-06 Thread Brian Kirkbride
case that would benefit from the end-time auto feature that has been discussed before. Since we have begin/end, I would favor an auto/post_auto as well. Any better name suggestions? :) Best, Brian Kirkbride ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] Recommendation For Logging To A File

2006-09-24 Thread Brian Kirkbride
. At least I know that I can do that later with a simple log4perl.conf config file change. Best, Brian Kirkbride ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Catalyst::View::TT - strange caching annoyance

2006-09-13 Thread Brian Kirkbride
Jonathan Rockway wrote: Good find. The whole complicated [% BLOCK %] business that I was complaining about was actually the problem. I admit to never having used [% BLOCK %], so that's why I didn't run into the problem. Regards, Jonathan Rockway Ah, that makes sense. What do you

Re: [Catalyst] ways to do stuff and why

2006-08-21 Thread Brian Kirkbride
Mark Blythe wrote: If the controller truly never sees DBIC stuff, does that mean that your model logic never returns DBIC objects? For instance, let's say you have a logic method called findBestFit() that's supposed to return shoes that fit a given person and activity the best. Would it

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 possible

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::Schema::Trial

Re: [Catalyst] Sigh. How do we get on this list?

2006-08-09 Thread Brian Kirkbride
Simon Wilcox wrote: On Tue, 8 Aug 2006, Christopher H. Laco wrote: Make it really really easy to get started for people who don't know much perl. Here we get into a tricky debate about ease-of-use vs flexibility and performance. While not mutually exclusive, it is very difficult and