Re: [Catalyst] Store something in the stash at startup

2010-08-16 Thread J. Shirley
2010/8/16 Octavian Rasnita : > Hi, > I have a module that creates an object (a menu) and I want to store it in > the stash when the application starts. > Where is the recommended place to create this object and store it in the > stash if I want that object created just once at app startup? > Should

Re: [Catalyst] Problem with prefetch DBIX::Class

2010-08-13 Thread J. Shirley
On Fri, Aug 13, 2010 at 4:51 AM, Marc Perez wrote: > Hi, > > Do you thinks is there another possibility to find a solution o test > other aspects to solve this? > > Thanks very much > > Marc > First, there's a DBIx::Class mailing list for DBIC questions, which this is. It has nothing to do with

Re: [Catalyst] FastCGI on Shared Hosting

2010-07-16 Thread J. Shirley
On Jul 16, 2010, at 12:25 PM, Lyle wrote: > On 16/07/2010 15:16, Sir Robert Burbridge wrote: >> On 07/16/2010 08:15 AM, André Walker wrote: Other than that, I'd suggest that slicehosts or some other small VM provider are very cheap these days ;) >>> Yeah, I'm seriously considering that.

Re: [Catalyst] FastCGI on Shared Hosting

2010-07-16 Thread J. Shirley
On Jul 16, 2010, at 7:16 AM, Sir Robert Burbridge wrote: > On 07/16/2010 08:15 AM, André Walker wrote: >> >>> You could also 'cheat', by getting a free pingdom account (which will >>> monitor your apps uptime, and wake it up for this monitoring every 60 >>> seconds).. Depending how aggressively

Re: [Catalyst] Question on Perl versions with Catalyst

2010-07-07 Thread J. Shirley
On Jul 7, 2010, at 12:57 PM, Joe Landman wrote: > Darren Duncan wrote: >> Joe Landman wrote: >>> We are redoing one of our applications, and I wanted a quick sync against >>> which Perl versions are currently "blessed". I remember that 5.10.0 did >>> not work due to a bug in the Perl base. A

Re: [Catalyst] Contributing code

2010-06-21 Thread J. Shirley
On Mon, Jun 21, 2010 at 7:43 AM, iain wrote: > Ævar Arnfjörð Bjarmason wrote: >> >> It depends on what sort of comments you're making. Comments that >> explain tricky code that help with maintenance down the road are >> welcome everywhere. If you're just making comments that help someone >> comple

Re: [Catalyst] Log::Log4perl::Catalyst or Catalyst::Log::Log4perl ?

2010-06-13 Thread J. Shirley
On Jun 13, 2010, at 3:56 AM, Christiaan Kras wrote: > Thanks. He suggests Catalyst::Log::Log4perl. > I guess I'll try both Catalyst::Log::Log4perl and Log::Log4perl::Catalyst > then. > > Christiaan Kras The cspec issues can (in most cases) be safely ignored. If you do encounter any issues wit

Re: [Catalyst] Literal elements in uri_for generated paths

2010-06-09 Thread J. Shirley
2010/6/8 Octavian Rasnita : > Hi, > > I have tried to use uri_for() in some parameters of a Java applet, but that > URI should contain chars like { and } which then should be replaced by the > appled with something else: > > > > If I do this , { and } are URI encoded and I don't want that. > > Is

Re: [Catalyst] Re: A point of confusion/frustration on chained actions

2010-05-28 Thread J. Shirley
On May 28, 2010, at 1:21 PM, Jeff Albert wrote: > Hey, > Can you expand on this? I followed the suggestion that Ido and others had put > forward, but I don't like the 'extra' midpoint to extend the chain; what > would a simple example of your proposed solution look like? > > Cheers, > Jeff I

Re: [Catalyst] A point of confusion/frustration on chained actions

2010-05-19 Thread J. Shirley
On May 19, 2010, at 4:32 PM, Steve Kleiman wrote: > I second that. I'm another Catalyst newbie who would like to submit doc > patches for review, but I don't know the process > > > On May 19, 2010, at 4:24 PM, Jeff Albert wrote: > >> As an unabashed Catalyst n00b, I spent a couple of hours

Re: [Catalyst] "Catalyst::Plugin::Authentication uses NEXT, which is deprecated."

2010-05-09 Thread J. Shirley
On May 9, 2010, at 4:49 PM, Paul Makepeace wrote: > I'm puzzled with this warning since there's nothing I can see in the > docs of the latest version that suggests we should be using another > module (cf. Catalyst::Plugin::Authentication::Store::DBIC which is > very clear). What's the story here?

Re: [Catalyst] Catalyst 5.80023 Release Announcement

2010-05-07 Thread J. Shirley
On May 7, 2010, at 3:30 PM, Devin Austin wrote: > Last login: Fri May 7 14:11:38 on ttys001 > It is my pleasure (and first time!) to announce the release of Catalyst > version 5.80023. That means everyone should skip this one ;) Congrats! ___ List

Re: [Catalyst] Chained actions with can't terminate with :PathPart('') ?

2010-05-07 Thread J. Shirley
On May 7, 2010, at 10:12 AM, Evan Carroll wrote: > I have two destinations in my Catalyst app > > /auth/company/5/lot > /auth/company/5/lot/5 > > This works and is often seen in Catalyst apps to achive this effect. > sub lot :Chained('/auth/company') :CaptureArgs(1) { > sub view_lot :Chained('/a

Re: [Catalyst] Returning error codes to the user.

2010-05-02 Thread J. Shirley
On Sun, May 2, 2010 at 7:28 AM, Bill Moseley wrote: > > > On Sat, May 1, 2010 at 6:17 PM, Tomas Doran wrote: >> >>> >>> So, what would you recommend? Have a separate /user/$id/debug method that >>> does a separate step-by-step of the business logic?  Scrap all that really >>> handy chaining of re

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-27 Thread J. Shirley
On Tue, Apr 27, 2010 at 2:39 AM, Oleg Pronin wrote: > Why can't nobody understand, the question is not why someone should > use "$c->req->{params}". Of course that is an evil. Problem is that if > i could get ->{parameters}{name} at a speed 100x there can't be no > reason for ->params to work as

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-26 Thread J. Shirley
On Mon, Apr 26, 2010 at 1:51 PM, Zbigniew Lukasiak wrote: > On Mon, Apr 26, 2010 at 1:26 PM, Ben van Staveren > wrote: >> >> Because if you are working with, say, 10 people on a team, and you will have >> everyone merrily doing direct hash accesses, sooner or later, someone's >> going to fuck it

Re: [Catalyst] Suggestions for iPhone version of app

2010-04-26 Thread J. Shirley
On Mon, Apr 26, 2010 at 7:47 AM, Steve Nolte wrote: >> On 4/26/2010 10:22 AM, Steve Nolte wrote: >> > And any frameworks, such as jQTouch, to recommend or stay away from? >> >> I've heard good things about http://www.phonegap.com/ > > Thanks for the PhoneGap suggestions, but to clarify I'm looking

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-23 Thread J. Shirley
On Fri, Apr 23, 2010 at 10:27 AM, Lyle wrote: > Kee Hinckley wrote: >> >> No argument there. I dearly wish the effort that had gone into Perl6 had >> gone into a Perl5 IDE and web framework with a single "best in class" set of >> options (with docs) to bring a new, non-perl, programmer up to a wor

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-23 Thread J. Shirley
On Fri, Apr 23, 2010 at 4:36 AM, Oleg Pronin wrote: > Can you hear the difference between 3mln/s and 24k/s ? > > I do not say that using hashes are good. But i'm sure that developers > MUST NOT use super-slow frameworks like Moose-shit (which tries to > emulate perl6 on perl5:   what for???) o

Re: [Catalyst] Alternatives to Catalyst ?

2010-04-21 Thread J. Shirley
On Wed, Apr 21, 2010 at 9:30 AM, Oleg Pronin wrote: > This was the last shot for me at "dealing" with catalyst. > Catalyst is very perfomance-optimized system and it never stops me wondering > >    timethese(-1, { >        sep => sub { $req->param('lang') }, >        all => sub { $req->params->{la

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread J. Shirley
On Sat, Apr 17, 2010 at 5:12 PM, Lyle wrote: > Octavian Rasnita wrote: >> >> But in that case you probably shouldn't be interested in using >> Template-Toolkit nor Catalyst, because they also have their overhead, and >> the other higher level modules used for accessing the database have their >> o

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread J. Shirley
On Sat, Apr 17, 2010 at 4:35 PM, Octavian Rasnita wrote: > Hi, > > From: "John Karr" >> Working in raw DBI is the opposite of the DRY principle which underlies >> having a framework in the first place, so I am seeking an alternative. >> Just as Catalyst uses MVC, DBIx chooses ORM, but that parad

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread J. Shirley
On Sat, Apr 17, 2010 at 4:04 PM, John Karr wrote: > I think there's a very important difference of approach, much as Template > Tool Kit and Template Declare, radically different approaches, that are both > far superior to the classic CGI Module. > > Working in raw DBI is the opposite of the DRY

Re: [Catalyst] Alternatives to DBIx?

2010-04-17 Thread J. Shirley
On Sat, Apr 17, 2010 at 6:35 AM, Lyle wrote: > Personally I think DBIx::Class is the biggest load of crock out there. It's > much slower, awkward to use, time consuming to learn, and as soon as you try > to do some complicated queries you'll end up dropping it anyway. ORMs simply > cannot work in

Re: [Catalyst] Catalyst getting wrong path from Apache server-side includes

2010-04-15 Thread J. Shirley
On Thu, Apr 15, 2010 at 7:03 PM, Jason McIntosh wrote: > On Thu, Apr 15, 2010 at 9:18 PM, J. Shirley wrote: >> >> Did you upgrade anything else (Apache?) or just Catalyst?  Any other >> changes, configuration or anything? > > Nothing that strikes me as relevant. Also

Re: [Catalyst] Catalyst getting wrong path from Apache server-side includes

2010-04-15 Thread J. Shirley
On Thu, Apr 15, 2010 at 5:53 PM, Jason McIntosh wrote: > Howdy y'all, > > Since upgrading to Catalyst 5.8022 on Wednesday, I've found that no > Catalyst requests coming from Apache server-side includes work. > > If the user requests "foo.shtml", and that file contains "", then Apache correctly for

Re: [Catalyst] Outcome of the "Security issue with hashed passwords in C:P:A:Password"?

2010-04-09 Thread J. Shirley
On Fri, Apr 9, 2010 at 8:51 AM, Evan Carroll wrote: >> Without any unnecessary commentary, here is the implementation of the >> password_(pre|post)_salt_field, without other features that should be >> patched separately. >> >> http://codepeek.com/paste/4bbf456c0ae3049443a742a2 > > I appreciate you

Re: [Catalyst] Outcome of the "Security issue with hashed passwords in C:P:A:Password"?

2010-04-09 Thread J. Shirley
On Fri, Apr 9, 2010 at 12:53 AM, Tomas Doran wrote: > > On 9 Apr 2010, at 03:05, Evan Carroll wrote: >> >> http://github.com/EvanCarroll/Catalyst-Plugin-Authentication >> >> Anyway, that's the repo -- Find the commits here: >> >> http://github.com/EvanCarroll/Catalyst-Plugin-Authentication/commits

Re: [Catalyst] Outcome of the "Security issue with hashed passwords in C:P:A:Password"?

2010-04-07 Thread J. Shirley
On Wed, Apr 7, 2010 at 6:15 PM, Toby Corkindale wrote: > So, a while back there was some.. slightly heated.. discussion about > security issues with C-P-A-Password.. or perhaps one of the modules it uses > internally.. in certain cases, if certain options are, or are not, set. Then > it quietened

Re: [Catalyst] What to upload

2010-04-05 Thread J. Shirley
On Mon, Apr 5, 2010 at 7:33 AM, Paul Falbe wrote: > > > Right now the site is at lunarpages.com.  I've asked them how much to upgrade > to a VPS. > I may get a site at dreamhost for testing also.  Thank you for the > information! > Have you looked here? http://wiki.catalystframework.org/wiki/

Re: [Catalyst] What to upload

2010-04-05 Thread J. Shirley
On Mon, Apr 5, 2010 at 7:00 AM, Paul Falbe wrote: > > > Oleg, thank you for your help.  Problem I'm having is the main site is at a > hosting site > where I can't experiment to easily.  :{  I sent them what I wanted put into > the Apache conf file > and they responded that it wasn't possible in

Re: [Catalyst] Views and escaping HTML

2010-04-01 Thread J. Shirley
On Thu, Apr 1, 2010 at 11:58 AM, Mesdaq, Ali wrote: > Actually I was not aware of built-in | html escaping. Where is the > documentation for that? Or better yet where exactly is that built-in? Is that > a catalyst method or TT? Now the authors question makes A LOT more sense. I > guess I must b

Re: [Catalyst] Views and escaping HTML

2010-04-01 Thread J. Shirley
On Thu, Apr 1, 2010 at 10:27 AM, Mesdaq, Ali wrote: > You prefer global escaping to escaping in the template? I use the TT plugin > for escaping > > [% USE HTML %] > [% HTML.escape(needs.escaping) %] > > An idea that might work for you would be if you structure your data in the > stash and creat

Re: [Catalyst] Global behaviour modification

2010-03-27 Thread J. Shirley
On Sat, Mar 27, 2010 at 2:22 AM, Ovid wrote: > Hi all, > > What would be the best approach to intercept *everything* when a certain > condition occurs and redirect to something like /user/waiting/?  Should I use > "before execute" in the lib/MyApp.pm? > > I'm working on an app where users must a

Re: [Catalyst] Picking template type based on input

2010-03-26 Thread J. Shirley
On Fri, Mar 26, 2010 at 9:31 AM, Jon mailinglists wrote: > On Fri, Mar 26, 2010 at 1:50 PM, Tomas Doran wrote: >> Jon mailinglists wrote: >>> >>> Hi all, >>> [snip] >> >> How is generating JSON in template toolkit not 100% insane? >> >> Please use something like Catalyst::View::JSON instead? >> >

Re: [Catalyst] Catalyst 5.80021

2010-03-25 Thread J. Shirley
On Thu, Mar 25, 2010 at 2:08 PM, wrote: > Dear List > > I have just updated to Catalyst 5.80021 from 5.8002 and now I am seeing > the following error when I restart my application. > > Use of uninitialized value in list assignment at > /usr/local/share/perl/5.8.8/Catalyst/Engine/HTTP.pm line 371.

Re: [Catalyst] Security issue with hashed passwords in C:P:A:Password

2010-03-24 Thread J. Shirley
On Wed, Mar 24, 2010 at 11:13 AM, Evan Carroll wrote: >> It would be if anything you said were true; fortunately it's not, and both >> available methods of doing salted passwords with >> Catalyst::Plugin::Authentication do salt entirely the correct way. >> >> Your unncecessary and condescending le

Re: [Catalyst] using uri_for to parsing parameters

2010-03-18 Thread J. Shirley
On Thu, Mar 18, 2010 at 9:38 AM, nhyda wrote: > I don't know whether someone has asked it yet. > > here is my situation. > > I have an action "find" that take one argument of book id > and I have another action author that chained to find > so in practice I use /find/1/author to list all the autho

Re: [Catalyst] Managing errors - cut execution flow.

2010-03-18 Thread J. Shirley
On Thu, Mar 18, 2010 at 10:03 AM, David wrote: > Hi, > > > I am not sure how to manage errors in my Catalyst application. When I detect > an error, I forward the error to my Error View, but the execution doesn't > stop. > > When my application was not in Catalyst, I used "exit 1;" once I had done

Re: [Catalyst] Making a hash available across the application

2010-03-17 Thread J. Shirley
On Wed, Mar 17, 2010 at 9:43 AM, Dermot wrote: > Hi, > > I'm sure there is a way but it's not jumping out at me. > > I have a list of countries and their associated database ID's that I > need to stash in the header of (almost) every page on a site. I have > no problems creating a controller that

Re: [Catalyst] FastCGI error

2010-03-10 Thread J. Shirley
On Wed, Mar 10, 2010 at 9:04 AM, Steve Rippl wrote: > Hi, > > I wonder if anyone with FastCGI experience recognizes what these are about? > > (error log for my apps VirtualHost) > > [Wed Mar 10 08:14:35 2010] [error] [client 10.22.0.85] FastCGI: comm with > server "/srv/WsdSis/script/wsdsis_fastcg

Re: [Catalyst] strange generated DBIC accessor name

2010-03-10 Thread J. Shirley
On Wed, Mar 10, 2010 at 7:29 AM, wrote: >>> I'm going to be crazzy about one generated accessor name: >>> >>> __PACKAGE__->has_many( >>>   "company_people",         # I expected to be "company_persons" >>>   "Jf::Schema::Result::CompanyPerson", >>>   { "foreign.role" => "self.id" }, >>> ); >>> >>

Re: [Catalyst] Best practices: XML output from static XML

2010-03-06 Thread J. Shirley
On Sat, Mar 6, 2010 at 2:20 PM, Bill Moseley wrote: > > > On Sat, Mar 6, 2010 at 12:59 PM, J. Shirley wrote: >> >> I don't think the path taken with Catalyst::Action::REST is the best, >> but it does work very very well in my opinion and I certainly can't >

Re: [Catalyst] Best practices: XML output from static XML

2010-03-06 Thread J. Shirley
On Sat, Mar 6, 2010 at 8:25 AM, Bill Moseley wrote: > > > On Sat, Mar 6, 2010 at 6:34 AM, J. Shirley wrote: >> >> > Just one last question. When you talk about using >> > 'lib/MyApp/View/MyView.pm', you mean that is also correct to create a >&

Re: [Catalyst] Best practices: XML output from static XML

2010-03-06 Thread J. Shirley
On Sat, Mar 6, 2010 at 6:17 AM, David wrote: > Exactly, as there is a little bit of application logic, so I need this > process. > Thanks for the solution Jay. I'll go for it. > > Just one last question. When you talk about using > 'lib/MyApp/View/MyView.pm', you mean that is also correct to creat

Re: [Catalyst] Best practices: XML output from static XML

2010-03-05 Thread J. Shirley
On Fri, Mar 5, 2010 at 11:31 AM, Mesdaq, Ali wrote: > To me this sounds like it’s the same issue as serving static images you > wouldn’t create a view for that unless you need to wrap it around some > application logic. Or at least that’s what it sounds like to me based on the > information provid

Re: [Catalyst] Best practices: XML output from static XML

2010-03-05 Thread J. Shirley
On Fri, Mar 5, 2010 at 10:46 AM, David wrote: > Thanks Jay. > > I thought of that solution too when I had a look at > Catalyst::Plugin::Static::Simple. But in this case, my doubt was, and is, > how should I create the view through the helper? > Most of the examples for creating views are TT views,

Re: [Catalyst] Best practices: XML output from static XML

2010-03-05 Thread J. Shirley
On Fri, Mar 5, 2010 at 5:10 AM, David wrote: > Hi, > > I need to generate an XML output (Content-type: application/xml), but this > XML output is the XML content which is stored in an XML file. I don't need > to dinamically generate this XML content. > I have searched in google but I don't find an

Re: [Catalyst] Greasemonkey with JQuery, JSON, and Catalyst

2010-03-02 Thread J. Shirley
On Tue, Mar 2, 2010 at 12:06 PM, Michael Peck wrote: > I'm writing a Greasemonkey script that incorporates JQuery, which I want to > POST JSON data to a catalyst application.  The Catalyst application does not > exist within the same domain as the page the greasemonkey script is running > from, so

Re: [Catalyst] Automatic passing of objects to DBIx::Class

2010-02-28 Thread J. Shirley
On Sat, Feb 27, 2010 at 10:58 PM, Ido Perlmuter wrote: > Hi everyone. > > I've been racking my brain trying to find a way to automatically pass an > object, for the matter the Catalyst::Request object, to DBIx::Class methods. > I cannot and will not pass it myself every time I call a method in my

Re: [Catalyst] Could use some help from people with Windows boxen...

2010-02-22 Thread J. Shirley
On Mon, Feb 22, 2010 at 4:56 AM, David Silva wrote: > Linux isn't that hard to learn, i'm still learning every day. > > As they said, you might expect that some modules won't work in windows. If > you can, and have time forget perl in windows and work in linux, it's > better. > > And i'm not a fan

Re: [Catalyst] Requiring a certain module version in Makefile.PL

2010-02-21 Thread J. Shirley
On Sun, Feb 21, 2010 at 9:54 AM, Octavian Rasnita wrote: > Hi, > > In Makefile.PL I have the following line: > > requires 'DBIx::Class::Schema::Loader' => '0.05003'; > > When I do > perl Makefile.PL > > shouldn't that line require and install this version of > DBIx::Class::Schema::Loder? > > I hav

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread J. Shirley
On Wed, Feb 17, 2010 at 5:34 PM, Julien Sobrier wrote: > Thank you > > But I cannot create these aliases at run-time, right? They're not aliases, they're methods and dispatchable actions. How about explaining what you are trying to achieve :) -J ___

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread J. Shirley
On Wed, Feb 17, 2010 at 4:18 PM, Julien Sobrier wrote: > Hello, > I'd like to assign multiple pass, at run-time, to the same action. For > example: > > package MyApp::Controller::Foo; > > sub foo :Path {...} > > Then, have /foo, /bar, /other associated with MyApp::Controller::Foo->foo > > One way

Re: [Catalyst] Multiple chaining to same action ...

2010-02-15 Thread J. Shirley
On Mon, Feb 15, 2010 at 12:38 PM, Kiffin Gish wrote: > In my application, users are allowed to edit only their own settings > like this: > > /account/id/client/settings/edit > > | /role/*/settings/edit | /auth (0)                       | > |                       | -> /role/base (1)              

Re: [Catalyst] How to de-serialize json?

2010-01-27 Thread J. Shirley
On Wed, Jan 27, 2010 at 4:14 PM, Bill Moseley wrote: > I see.  So you are saying that Content-Type: application/json might need to > be deserialized differently in different applications that share the same > interpreter?  Obviously, json could decode into an array ref so that could > not be mapp

Re: [Catalyst] How to de-serialize json?

2010-01-27 Thread J. Shirley
On Wed, Jan 27, 2010 at 7:33 AM, Bill Moseley wrote: > > > On Tue, Jan 26, 2010 at 6:33 AM, J. Shirley wrote: >> >> >> I'm all for reusable code, but in no way should HTTP::Body start >> taking this behavior by default.  I'm not really that sure how &g

Re: [Catalyst] Users, roles, HTML::FormFu::DBIx::Class::Model - complete example?

2010-01-27 Thread J. Shirley
2010/1/27 Octavian Rasnita : > From: "Alex Povolotsky" >> >> Hello! >> >> Maybe someone can provide the community with complete example of >> users/roles editor with HTML::FormFu::DBIx::Class::Model? > > Are you sure this module exists? > Yes, it does exist, just under a different name :) HTML:

Re: [Catalyst] How to de-serialize json?

2010-01-26 Thread J. Shirley
On Tue, Jan 26, 2010 at 1:49 AM, Zbigniew Lukasiak wrote: > On Sun, Jan 24, 2010 at 8:01 AM, Bill Moseley wrote: >> >> >> On Sat, Jan 23, 2010 at 7:20 PM, Hans Dieter Pearcey >> wrote: >>> >>> As far as I can tell, you missed the point of my message, which makes me >>> wonder >>> if I've missed

Re: [Catalyst] How to de-serialize json?

2010-01-23 Thread J. Shirley
On Sat, Jan 23, 2010 at 10:16 AM, Bill Moseley wrote: > Following up on our recent simulating discussion on adding an API to an > application, I wonder is someone can help me understand something: > > Catalyst uses HTTP::Body to parse body content.  It currently handles these > request content typ

Re: [Catalyst] "Fat Model" Methodology?

2010-01-22 Thread J. Shirley
On Fri, Jan 22, 2010 at 11:33 AM, Tomas Doran wrote: > > On 21 Jan 2010, at 18:36, Rodrigo wrote: >> >> So ideally I would like to have DB entities represented by a single Moose >> class, rather than in 2 or more places. For that there's KiokuDB and >> MooseX::NonMoose-- the latter should allow a

Re: [Catalyst] "Fat Model" Methodology?

2010-01-21 Thread J. Shirley
On Thu, Jan 21, 2010 at 9:37 AM, Jeff Albert wrote: > Hi List! > > I’m a new-ish Catalyst developer, converted from the ranks of the > HTML::Mason faithful, and the recent nature of my dedication to MVC design, > and to Catalyst’s fat-model pattern specifically, has left me with some > questions t

Re: [Catalyst] Error handling

2010-01-20 Thread J. Shirley
On Wed, Jan 20, 2010 at 10:52 AM, Wes Cravens wrote: > J. Shirley wrote: >> >> That will show you the errors, and I believe get you what you expect >> to see.  Having said all that, I am fond of ErrorCatcher, and use its >> included Email emitter quite happily. >

Re: [Catalyst] Catalyst::View::Email stopped working

2010-01-19 Thread J. Shirley
On Tue, Jan 19, 2010 at 8:42 AM, Charlie Garrison wrote: > Good morning, > > On 19/01/10 at 10:33 AM -0500, Hans Dieter Pearcey > wrote: > >> It's a bug in C::V::Email.  I'm not sure who's fixing it.  Downgrading to >> 0.13 >> should fix it. > > Thanks for the info. Since this is just an issue on

Re: [Catalyst] Subclass $c->log->debug(...) to prepend "${\$c->action}: ..."

2010-01-18 Thread J. Shirley
On Mon, Jan 18, 2010 at 12:22 PM, Kiffin Gish wrote: > I'd like to subclass $c->log->debug(message) so that it prints out: > > ''.$c->action.': '.'message' > > What's the easiest way to do this? > Easiest is to just switch to Catalyst::Log::Log4perl, since it will do what you want out of the box.

Re: [Catalyst] Error handling

2010-01-18 Thread J. Shirley
On Mon, Jan 18, 2010 at 5:44 PM, Steve Kleiman wrote: > Thanks for getting back, t0m. > > By "abort all processing" it seemed like when the error was thrown, Catalyst > stopped processing the request. > > Here's my fabricated error in a controller: > >> sub test_error : Local { >>       my ( $sel

Re: [Catalyst] Newbie question on debugging inside a schema

2010-01-16 Thread J. Shirley
On Sat, Jan 16, 2010 at 4:14 AM, Steve Kleiman wrote: > Thanks in advance for any insight provided. > > I'm trying to figure out how to log errors from INSIDE a schema. I gather > it's Bad to pass in $c so that within a schema I can't do what I'd really > like which is: >        $c->log->warn('som

Re: [Catalyst] Catalyst-View-Email question

2010-01-15 Thread J. Shirley
On Thu, Jan 14, 2010 at 10:41 PM, Steve Kleiman wrote: > Forgive me if there's another mailing list I should've posted this at. It > didn't seem to squarely fit the Catalyst list because it may be a mailer > issue. Not sure. > > I'm trying to use Catalyst::View::Email and > Catalyst::View::Email::

Re: [Catalyst] Elegant way to check action presence?

2010-01-09 Thread J. Shirley
2010/1/9 Alex Povolotsky : > Hello! > > I'm working on a (more or less) flexible system with plugins should be > installed just like controllers; some basic information about them > (particulary, numerical id) must be kept in database. > > Plugins should be handle some queries in /admin/service/$se

Re: [Catalyst] C::V::Email::Template cannot send data ...

2010-01-09 Thread J. Shirley
On Sat, Jan 9, 2010 at 8:47 AM, Kiffin Gish wrote: > SMTP isn't even making it out the front door, e.g. no requests are being > generated nor showing up via wireshark. > > Any other ideas, friend? > > On Sat, 2010-01-09 at 16:05 +, Tomas Doran wrote: >> On 9 Jan 2010, at 15:53, Kiffin Gish wro

Re: [Catalyst] Running Catalyst App from Command Line (or via Cron)

2010-01-08 Thread J. Shirley
On Fri, Jan 8, 2010 at 7:58 AM, Christoph Friedrich wrote: > Hello there, > > I need to build a script for my catalyst application that reads some data > and put it into the database. This script needs to run as a daily cron job. > My first idea was to create a controller which handles this for me

Re: [Catalyst] Upgraded to Catalyst 5.80016, restarting dev server with HUP crashes

2010-01-06 Thread J. Shirley
On Wed, Jan 6, 2010 at 5:34 PM, Jim Dread wrote: > > Here are steps to make the server crash. Can anybody > reproduce this problem please? > > > # on linux > catalyst.pl TestApp > cd TestApp/ > perl Makefile.PL > ./script/testapp_server.pl & > kill -HUP %1 > > # and then: > Restarting server on SI

Re: [Catalyst] Format last modified date field ...

2009-12-28 Thread J. Shirley
On Mon, Dec 28, 2009 at 1:17 PM, Kiffin Gish wrote: > I'm using a last_modified field which is being displayed like this > "2009-12-28T18:25:28" (what's that 'T' doing in there?) but want to use > a different format, how? > > In the list.tt2 file for listing users, I have: > > [% WHILE (user = use

Re: [Catalyst] C::P::Authentication, force user authentication

2009-12-28 Thread J. Shirley
On Mon, Dec 28, 2009 at 7:13 AM, Tomas Doran wrote: > > On 28 Dec 2009, at 09:16, Ben van Staveren wrote: >> >> Warning: I use this myself, it seems to work, but it's a hack. YMMV. >> Standard disclaimer applies. > > I.e. It is very much relying on an implementation detail which I/we can and > _wi

Re: [Catalyst] go to chained action

2009-12-17 Thread J. Shirley
2009/12/17 Alex Povolotsky : > Tomas Doran wrote: >> >> On 16 Dec 2009, at 13:18, Alex Povolotsky wrote: >> >>> Hello! >>> >>> Having, for example, /controller/*/action handled by /controller/base (1) >>> => /controller/action, how do I write correct go to >>> /controller/argument/action ? >>> >>>

Re: [Catalyst] Catalyst::View::Thumbnail

2009-12-16 Thread J. Shirley
On Wed, Dec 16, 2009 at 9:18 PM, Meeko wrote: > Has anyone successfully got Catalyst::View::Thumbnail to work?  I'm trying > to add this to my app to create thumbnails on the fly for me so I don't have > to make them ahead of time with Image::Magick. > So, I'm following the guide from this page he

Re: [Catalyst] Sub-classing Application

2009-12-16 Thread J. Shirley
On Wed, Dec 16, 2009 at 9:27 AM, Bill Moseley wrote: > > > On Wed, Dec 16, 2009 at 8:31 AM, J. Shirley wrote: >> >> >> The documentation seems quite sparse, but if you look at the source it >> just essentially does: >>    my $locator = Module::Plugga

Re: [Catalyst] Sub-classing Application

2009-12-16 Thread J. Shirley
On Wed, Dec 16, 2009 at 8:13 AM, Bill Moseley wrote: > I have an existing application Foo.  I'd like to create a new application > Bar that has very similar actions. > > What I'm wondering is if there's a way where I could run catalyst.pl Bar to > create a new empty application and then tell it to

Re: [Catalyst] Getting relative path to methods

2009-12-15 Thread J. Shirley
On Tue, Dec 15, 2009 at 10:51 AM, Derek Wueppelmann wrote: > Hello all, > > I'm currently using FormBuilder to generate some forms to be used in my > Catalyst Application. However FormBuilder wants to have the same method > handle the submit as well as the display. For certain reasons this isn't >

Re: [Catalyst] Forcing model to reconnect with different connect_info

2009-12-10 Thread J. Shirley
2009/12/10 Alex Povolotsky > Hello! > > It's a bit of crazed setup, but I do have it; I have about 100 > identicaly-structured based with different conent. > > I think it's more reasonable to have one model and set dbname for each > connect. However, I haven't found any way to force model to reco

Re: [Catalyst] Access to DBIx schema from outside Catalyst

2009-12-07 Thread J. Shirley
On Mon, Dec 7, 2009 at 4:21 PM, Greg Matheson wrote: > On Mon, 07 Dec 2009, J. Shirley wrote: > > > On Mon, Dec 7, 2009 at 8:50 AM, Eden Cardim > wrote: > > > > >>>>> "Dermot" == Dermot writes: > > > >Dermot> If I have a C

Re: [Catalyst] Access to DBIx schema from outside Catalyst

2009-12-07 Thread J. Shirley
On Mon, Dec 7, 2009 at 8:50 AM, Eden Cardim wrote: > > "Dermot" == Dermot writes: > >Dermot> Hi, I haven't finished reading the book yet so I hope this >Dermot> question won't be answered there. > >Dermot> If I have a Class outside my Cat App, I can have access to >Dermot> t

Re: [Catalyst] How to reduce the memory footprint?

2009-11-23 Thread J. Shirley
On Mon, Nov 23, 2009 at 1:25 PM, Julien Sobrier wrote: > Right, nprocs=5 > > I thought 100M RES/300M VIRT meanst 100M per process, and 300M shard among > perl processes. > > I don't have many other processes running on the box. If I turn off > catalyst, I use less than 250MB or memory. With Catal

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-11-23 Thread J. Shirley
for this, it was really great. -J -- J. Shirley :: jshir...@gmail.com :: Killing two stones with one bird. http://our.coldhardcode.com/jshirley/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst S

Re: [Catalyst] Strange warning...

2009-11-20 Thread J. Shirley
On Fri, Nov 20, 2009 at 9:50 AM, Rippl, Steve wrote: > Hi, > > Catalyst version 5.80011 > > This line... > > > $c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Section')->action_for('list'))); > > is giving me this warning... > > [warn] Used regexp fallback for > $c->control

Re: [Catalyst] Catalyst & E-Commerce

2009-11-17 Thread J. Shirley
On Mon, Nov 16, 2009 at 11:09 PM, pro...@gmail.com wrote: > I asked this exact same question a couple of weeks ago: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/msg08108.html. I am > still hoping to glean some wisdom from more seasoned catalyst users on this > list! It would be wonder

Re: [Catalyst] Best Practices : Logging

2009-11-16 Thread J. Shirley
On Mon, Nov 16, 2009 at 2:47 PM, Jon wrote: > Hello, > I'm building a new Catalyst app, and am trying to follow the best > practices. What do people typically do for logging in their Model > classes? > > I would like to have something like, > > package App::Model::SomeModel; > use strict; > use

Re: [Catalyst] attrs for DBIx::Class::Row

2009-11-15 Thread J. Shirley
2009/11/15 Octavian Râşniţă > Hi, > > After I constructed a resultset object, I can get the hash of attributes > used for generating it using: > my $attrs = $rs->{attrs} > > But if I get a row object from that resultset, I can't get the attributes > anymore using: > > my $row = $rs->first; > my $

Re: [Catalyst] Trouble inserting data after migrate database from SQLite to My SQL

2009-11-10 Thread J. Shirley
On Tue, Nov 10, 2009 at 5:53 AM, Jordi Amorós wrote: > Hi all, > > I'm developing a little web application (a remote lab that works with > Catalyst+LabView). Until now I was using SQLite, but due to new > requirements I've had to migrate the database. > > I've created a new model: > perl script/il

Re: [Catalyst] Include a local configuration file

2009-11-08 Thread J. Shirley
2009/11/8 Octavian Râşniţă > Hello, > > I want to include a configuration file (for generating a menu) in a > separate file, not in myapp.pl nor myapp_local.pl. > > That file (menu.pl) also contains a perl hashref inside. > > I have included this file using the following line in myapp.pl and it >

Re: [Catalyst] Basic CRUD example failing

2009-10-28 Thread J. Shirley
On Tue, Oct 27, 2009 at 11:06 PM, Jason Dixon wrote: > On Wed, Oct 28, 2009 at 06:57:25AM +0100, Zbigniew Lukasiak wrote: > > On Wed, Oct 28, 2009 at 6:07 AM, Jason Dixon > wrote: > > > Hi all, > > > > > > Learning Catalyst here. ??Following along with the manual and I ran > into > > > a weird i

Re: [Catalyst] Debian recommendation

2009-10-27 Thread J. Shirley
On Tue, Oct 27, 2009 at 5:45 PM, Andrew Rodland wrote: > On Tuesday 27 October 2009 07:14:02 pm Evan Carroll wrote: > > > Then I suppose it's a good thing that no such thing happens. > > > > Sure it happens; > > Taking the world's most goddamn *stupid*, unpredictable, and un-packageable > code and

Re: [Catalyst] Debian recommendation

2009-10-26 Thread J. Shirley
On Mon, Oct 26, 2009 at 2:08 PM, Evan Carroll wrote: > I just wanted to buzz in and be slightly more explicit. Debian doesn't > understand Perl, and they don't care about CPAN. Debian hand-hacks > stuff in the most virulent and ridiculous fashion: they'll open up a > perl class, hack in an extra

Re: [Catalyst] Debian recommendation

2009-10-16 Thread J. Shirley
2009/10/16 Octavian Râşniţă > From: "J. Shirley" > > Hi, >> >> I've seen a recommendation on this list for Debian for running perl apps, >> and recently I started to use this distro. >> >> I've seen that I can install perl module

Re: [Catalyst] Validating single arg id

2009-10-16 Thread J. Shirley
On Fri, Oct 16, 2009 at 7:19 AM, Matt Whipple wrote: > >> I would probably avoid potentially hitting the database unnecessarily, > and only use the exception in the case of complicated validation. In the > case of simple validation, why not something simple along the lines of: > > sub some_acti

Re: [Catalyst] Validating single arg id

2009-10-16 Thread J. Shirley
On Fri, Oct 16, 2009 at 6:45 AM, Bill Moseley wrote: > > I have a number of methods that start something like this: > > sub view : Local Args(1) { > my ( $self, $c, $id ) = @_; > > my $obj = $c->model( 'DB::Foo' )->find( $id ) >|| return $c->res->status( 404 ); > > If $id is not v

Re: [Catalyst] Debian recommendation

2009-10-16 Thread J. Shirley
2009/10/16 Octavian Râşniţă > Hi, > > I've seen a recommendation on this list for Debian for running perl apps, > and recently I started to use this distro. > > I've seen that I can install perl modules very hard under Debian if I use > the CPAN shell. > For example if I run > > $ cpan > cpan> in

Re: [Catalyst] Facebook canvas application in Catalyst

2009-10-15 Thread J. Shirley
On Thu, Oct 15, 2009 at 1:22 PM, Gunnar Strand wrote: > > I've rechecked the api_key and secret, and they are correct. I guess that > that the source above really should product useful output? > > Minimize what you're doing. Just do: $c->log->_dump( $client->users->is_app_user ); Work from ther

Re: [Catalyst] Facebook canvas application in Catalyst

2009-10-15 Thread J. Shirley
ior or dispatching so having it as a plugin is a bad fit. I posted my code in a gist: http://gist.github.com/211218 Keep in mind that you can't do differentiation on request type like GET/POST through the canvas. Make sure that you have the application added to your profile (check the app added,

Re: [Catalyst] I'm getting wrong uri_for

2009-10-12 Thread J. Shirley
On Mon, Oct 12, 2009 at 10:39 AM, Oleg Pronin wrote: > sorry for disturbing you guys, that was fully my issue :-) > > 2009/10/12 Tomas Doran : > > Oleg Pronin wrote: > >> > >> Holy shit! i'm an asshole. That template was rendered in offline > >> script :-) Strange... how did that work on Catalyst

  1   2   3   4   5   >