Re: [Catalyst] Catalyst::Model::Adaptor - because models shouldn't *do* anything

2007-10-10 Thread Christopher H. Laco
John Napiorkowski wrote: > --- Jonathan Rockway <[EMAIL PROTECTED]> wrote: > >> John Napiorkowski wrote: >>> One thing that I've done a lot with these kinds of >>> adapters is use AUTOLOAD or use Moose's built in >>> attribute delegation to make calling the adapted >>> classes methods easier. Wou

Re: [Catalyst] Re: Handel Installation Problems

2007-10-17 Thread Christopher H. Laco
Collin Condray wrote: > Christopher, > > It looks like DBD::SQLite 1.14 is installed. Do I need to use a > different version? > I don't believe so. This is a bug in DBD::SQlite 1.13/1.14 where the query immediately after a failing 'pk value already exists' error also failsand of course, I ke

[Catalyst] [OT] Firefox input type=image issues?

2007-10-26 Thread Christopher H. Laco
I posted this to UP, and wondered if anyone has run across this issue during their Catalyst hacking sessions. There's a long standing bug/feature with Firefox with input type=image elements. When the user has images turned off, the image is 404ed or just not loaded...when it's clicked, no x/y coo

Re: [Catalyst] [OT] Firefox input type=image issues?

2007-10-26 Thread Christopher H. Laco
that seem to cause it (greesemonky, firebug, etc), but removing > firefox and doing a fresh install nix any extensions/plugins seems to fix > it. > > -Wade > > > "Christopher H. Laco" <[EMAIL PROTECTED]> wrote on 10/26/2007 10:04:36 > AM: > >> I

Re: [Catalyst] New Catalyst site

2007-10-30 Thread Christopher H. Laco
Ash Berlin wrote: > Carl Johnstone wrote: >>> I would like to announce that www.manchestereveningnews.co.uk has just >>> been relaunched using Catalyst and mod_perl. >> Further to my original email, we've now finished rolling out our Manchester >> newspaper sites onto Catalyst. >> >> a.. Accrin

[Catalyst] Chained Madness

2007-10-30 Thread Christopher H. Laco
What am I missing here. This passage from DispatchType/Chained.pm yields no public actions: > Another interesting possibility gives :Chained('.'), which chains itself to > an action with the path of the current controller's namespace. For example: > > # in MyApp::Controller::Foo > sub bar

Re: [Catalyst] Preventing Catalyst from loading a Controller pm module

2007-10-31 Thread Christopher H. Laco
Oleg Pronin wrote: > I put these things into MyApp::SAME_AS_CATALYST_BASE_CLASSES, i.e: > MyApp::Catalyst::Controller > MyApp::Catalyst::View::TT > etc. > It's clean and nice :) I do the same thing. It works out great if you have a lot og MyApp:: modules that have nothing to do with Catalyst, like

Re: [Catalyst] semi-OT: is it possible to circumvent tests that are related to WWW::Mechanize?

2007-11-02 Thread Christopher H. Laco
Jonathan Rockway wrote: > Matt Lawrence wrote: >> I should probably point out that I'm the Module::Mask author, just in >> the interests of full disclosure ;-) >> > > How is Module::Mask different from Devel::Hide? > > Regards, > Jonathan Rockway Or Test::Without::Module? -- Let them eat c

Re: [Catalyst] Selective debug output

2007-11-07 Thread Christopher H. Laco
J. Shirley wrote: > On Nov 6, 2007 5:47 PM, Jonathan Rockway <[EMAIL PROTECTED]> wrote: > >> Joe Landman wrote: >>> How do I selectively enable or disable debugging output? >>> Specifically, FormBuilder debugging output is simply far to verbose to >>> be meaningful to us. I suppose I could simply

[Catalyst] Credential::HTTP vs. Controller::REST

2007-11-09 Thread Christopher H. Laco
I'm working with the REST action/controller to expose my app to browsers and to any remote client (json/xml, etc). For the browser stuff, I just use the regular Auth plugins with a database store tied to a user/pass login form. For remote clients, I wanted to tack on HTTP Auth using Basic/Digest.

Re: [Catalyst] Storing DateTime in session causes warning

2007-11-15 Thread Christopher H. Laco
Tobias Kremer wrote: > I'm storing a DateTime object in $c->session and I just realized that this > is causing the following warning on every request: > > "Use of uninitialized value in subroutine entry at ../../lib/Storable.pm > (autosplit into ../../lib/auto/Storable/_freeze.al) line 290." > >

Re: [Catalyst] Re: Ubuntu / Catalyst

2007-11-15 Thread Christopher H. Laco
Matt S Trout wrote: > On Wed, Nov 14, 2007 at 05:11:48PM +, Richard Jones wrote: >> Matt S Trout wrote: >>> That's because I was bitching about later Ubuntus, not Dead Rat. >>> >>> >> Dead Rat == CentOS 5? > > Anything that came out of Red Hat, basically :) > > I'm not a fan. > Really?

Re: [Catalyst] PathPart help

2007-11-15 Thread Christopher H. Laco
Christopher H. Laco wrote: > Les Fletcher wrote: >> I have question about setting up PathPart's and Chaining. I am trying >> to set something that has the following look: >> >> /namespace/ => This lists out a list of objects >> /namespace/ => displays

Re: [Catalyst] PathPart help

2007-11-15 Thread Christopher H. Laco
Ashley Pond V wrote: > That is really cool and answers something I've wanted to do for a long > time (let the user define the URI to customize a package). I have a > question. Using the PathPrefix seems to work as advertised but it does > not replace the default path. > > So, in a test I just did,

Re: [Catalyst] PathPart help

2007-11-15 Thread Christopher H. Laco
Les Fletcher wrote: > I have question about setting up PathPart's and Chaining. I am trying > to set something that has the following look: > > /namespace/ => This lists out a list of objects > /namespace/ => displays detail information about the object with the > numeric id= > /namespace//edit =

Re: [Catalyst] PathPart help

2007-11-16 Thread Christopher H. Laco
Matt S Trout wrote: > On Thu, Nov 15, 2007 at 11:47:34AM -0800, Les Fletcher wrote: >> I have question about setting up PathPart's and Chaining. I am trying >> to set something that has the following look: >> >> /namespace/ => This lists out a list of objects >> /namespace/ => displays detail inf

Re: [Catalyst] catalystframework.org exired

2007-11-19 Thread Christopher H. Laco
Bernhard Weißhuhn wrote: > Oh no! > > somebody renew catalystframework.org! Quick! Until *they* get it. > > regards, > bkw Unfortunately...it appears the GoDaddy is one of the ones that doesn't allow anyone to renew a domain name. It only appears to allow the registrant to do so. At least wit

Re: [Catalyst] catalystframework.org exired

2007-11-19 Thread Christopher H. Laco
Bernhard Weißhuhn wrote: > Oh no! > > somebody renew catalystframework.org! Quick! Until *they* get it. > > regards, > bkw Just called GoDaddy. This is so fucked up. They won't let anyone pay for renewal who isn't the last person/card on file with the 4 digit pin or the same credit card. That

[Catalyst] [OT] ASP.NET MVC

2007-12-10 Thread Christopher H. Laco
Dear MS: Welcome to the party. http://www.hanselman.com/blog/ASPNET35ExtensionsPlusMVCHowToScreencast.aspx Interesting to see another take on MVC inside some bastion of ASP.NET. -=Chris signature.asc Description: OpenPGP digital signature ___ List: C

Re: [Catalyst] C::P::Authentication - user not found debug info

2007-12-11 Thread Christopher H. Laco
Matt Lawrence wrote: > Tobias Kremer wrote: >> Hey all, >> >> my log files are filling up with the following warning >> >> "[debug] Unable to locate user matching user info provided" >> >> This info is both annoying and not really helpful IMHO. >> >> I found out that it's issued via $c->log->debug(

Re: [Catalyst] Handel missing a forward to a view?

2007-12-12 Thread Christopher H. Laco
Collin Condray wrote: > Hi, I'm a new user of Catalyst (5.701) and I'm trying to incorporate Handel > (1.5) into my existing app which is based loosely on the Catalyst > tutorial. I've run the Handel scaffold and set up the associated tables in > the database. However, when I try to go to myapp

Re: [Catalyst] Setting the Catalyst Request object

2007-12-13 Thread Christopher H. Laco
Bill Moseley wrote: > Yesterday I needed to add JSON support (both in the request and > response) to a few actions. I decided to try Catalyst::Action::REST. > > Well, actually, I first tried using just C::A::Serialize and > C::A::Deserialize -- but was not sure if those could be used > separately

Re: [Catalyst] Setting the Catalyst Request object

2007-12-13 Thread Christopher H. Laco
Bill Moseley wrote: > On Thu, Dec 13, 2007 at 10:09:39AM -0500, Christopher H. Laco wrote: >> Bill Moseley wrote: >>> Yesterday I needed to add JSON support (both in the request and >>> response) to a few actions. I decided to try Catalyst::Action::REST. >>&g

Re: [Catalyst] Input/Parameter Checks

2007-12-14 Thread Christopher H. Laco
Kieren Diment wrote: > > On 14 Dec 2007, at 10:14, Mesdaq, Ali wrote: > >> but there is >> also user generated data that can be displayed on a site and you would >> need to escape any javascript code or some html and css that users can >> input. That maybe is even a bigger concern for me since t

Re: [Catalyst] [OT] ASP.NET MVC

2007-12-17 Thread Christopher H. Laco
I'm still holding hopes for: Chained('../') -=Chris signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

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

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

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

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

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

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

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

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

Re: [Catalyst] process a restored request

2008-01-09 Thread Christopher H. Laco
[EMAIL PROTECTED] wrote: >> Catalyst::Plugin::Continuation should do that. But it appears to be >> broken with the current Catalyst version. Or at least I was not able >> to make it work. > > Catalyst::Plugin::Continuation would have been perfect (it even has a test > case that suits my needs: >

[Catalyst] Catalyst, REST and Firefox

2008-01-17 Thread Christopher H. Laco
I've touched on this before, and posted about it on UP: http://use.perl.org/~jk2addict/journal/35411 In a nutshell, Firefox 2.x Accept header totaly screws with the REST controller when you use it as a base for View negotiations. If you have a default type of text/html pointed to a View::TT, R

Re: [Catalyst] Catalyst, REST and Firefox

2008-01-17 Thread Christopher H. Laco
Jonas Alves wrote: On Jan 17, 2008 2:32 PM, Christopher H. Laco <[EMAIL PROTECTED]> wrote: I've touched on this before, and posted about it on UP: http://use.perl.org/~jk2addict/journal/35411 In a nutshell, Firefox 2.x Accept header totaly screws with the REST controller when you

[Catalyst] Mango, Catalyst and Class::Workflow

2008-01-21 Thread Christopher H. Laco
This is a plea from a drowning sailor for a life boat, or at least life vest and a pointer towards the nearest shore. It's that point in Mango where I need to start the really nasty bits: checkout. Since everyone wants something different, it seems that basing things on Class::Workflow at leas

Re: [Catalyst] Why no extra attributes on Private actions?

2008-01-22 Thread Christopher H. Laco
Bill Moseley wrote: In Catalyst::Controller register_actions() there's this code: my $attrs = $self->_parse_attrs( $c, $method, @{ $cache->[1] } ); if ( $attrs->{Private} && ( keys %$attrs > 1 ) ) { $c->log->debug( 'Bad action definition "' . join( ' ', @{ $cache->[

Re: [Catalyst] Authentication for web services (slightly off topic)

2008-01-23 Thread Christopher H. Laco
Andrew Payne wrote: On Jan 23, 2008 2:30 PM, Ian Docherty <[EMAIL PROTECTED]> wrote: This might seem like a stupid question, and one that probably has a I could use Apache Basic Authentication, but I would prefer to hold usernames passwords in a database rather than a htpasswd file. Just do

Re: [Catalyst] Authentication for web services (slightly off topic)

2008-01-23 Thread Christopher H. Laco
Andrew Payne wrote: On Jan 23, 2008 4:28 PM, Matt Lawrence <[EMAIL PROTECTED]> wrote: WWW::Mechanize isa LWP::UserAgent. Ditto T::W::M::C, AFAIK. Yes, but how does that help when we're using get_ok(...) ? I accidently chopped too many lines from the previous snippet. print $ua->request($re

Re: [Catalyst] How to return a 401 from Catalyst

2008-01-29 Thread Christopher H. Laco
Jason Kohles wrote: On Jan 29, 2008, at 3:18 AM, Kieren Diment wrote: On 27 Jan 2008, at 20:59, Ian Docherty wrote: p.s. I note that there is nothing in Test::WWW (that I can find) that tests return status's such as 200, 401 etc. From perldoc Test::WWW::Mechanize: ... From perldoc W

[Catalyst] Catalyst + Class::Workflow

2008-02-26 Thread Christopher H. Laco
Anyone done any integration with Class::Workflow and mapping object states to actions? I need to get back on the Mango wagon this week and I'm toying with making checkout nothing more than configurable states of an order. My first question is me wondering if checkout states are the same as or

Re: [Catalyst] Catalyst + Class::Workflow

2008-02-26 Thread Christopher H. Laco
Matt Pitts wrote: -Original Message- From: Christopher H. Laco [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 26, 2008 2:05 PM To: The elegant MVC web framework Subject: [Catalyst] Catalyst + Class::Workflow Anyone done any integration with Class::Workflow and mapping object states

Re: [Catalyst] Patch for Catalyst::View::Mason

2008-03-07 Thread Christopher H. Laco
David Jack Wange Olrik wrote: On 07/03/2008, at 19.26, Jonathan Rockway wrote: To do what David wanted would have to use a heuristic to determine whether $c->stash->{template} is the actual template name, or the template name minus the extension. By definition, that's never going to work.

Re: [Catalyst] Patch for Catalyst::View::Mason

2008-03-07 Thread Christopher H. Laco
David Jack Wange Olrik wrote: On 07/03/2008, at 22.22, Florian Ragwitz wrote: I want to keep the default behaviour to not break existing code and to be consistent with most other catalyst views. However I'll think about implementing a new configuration option that, when enabled, will always

[Catalyst] Http Status Chart

2008-03-11 Thread Christopher H. Laco
This made it's way across reddit this morning... Nice chart. http://thoughtpad.net/alan-dean/http-headers-status.gif signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/

[Catalyst] Re: Meios

2008-03-31 Thread Christopher H. Laco
Mojo Nichols wrote: Hi Christopher, I'm wondering what the status of Meios is. I have found an svn version on handleframework.org and one other server, but the do not work for me out of the box even after all dependencies are set up. I believe because of changes to catalyst and dbix-class.

[Catalyst] RFC: Catalyst::View::Feed (Atom/RSS)

2008-04-11 Thread Christopher H. Laco
As I sat around last night refactoring the View::Feed/View::Feed::(Atom|RSS) code in Mango because critic told me process() was too complex (and it was), a little voice popped into my head and told me I should just release it as a new dist. Most of this is code from helpful others who have emba

Re: [Catalyst] CatalystSites.org

2008-04-11 Thread Christopher H. Laco
Ashley wrote: On Apr 11, 2008, at 1:10 PM, Stephen Sykes wrote: Ashley wrote: On Apr 11, 2008, at 11:55 AM, Stephen Sykes wrote: Chisel - What is so odd in passing the tag id to the controller for the "by_tag" feature? I think this is the issue: "Other users also tagged this 27." The tag i

Re: [Catalyst] Re: CatalystSites.org

2008-04-16 Thread Christopher H. Laco
Aristotle Pagaltzis wrote: * Chisel Wright <[EMAIL PROTECTED]> [2008-04-16 11:50]: Just for chuckles - does anyone have an idea of the pain-level involved in converting a non-Chained application to Chained? Or is it just not worth the effort for an established project? Totally depends. I port

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar (for English and French respectively). The problem as I see it is how to do

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en/foo/bar or /fr/foo/bar (for English and French

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Dave Rolsky wrote: On Fri, 25 Apr 2008, Ashley wrote: I agree that it's content, not formatting. If CSS/client-side-JS can (in a practical fashion) change it, it's formatting, otherwise, it's content. I should have used the word representation. With REST, you'd have the same URI for one res

Re: [Catalyst] Multi-language and REST

2008-04-25 Thread Christopher H. Laco
Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: Christopher H. Laco wrote: Ian Docherty wrote: I have been pondering how to take an existing Catalyst application and make it multi-lingual. I would prefer to use a RESTful method, so this would translate /foo/bar to /en

Re: [Catalyst] Catalyst / dbix-class / mysql / REST job

2008-05-07 Thread Christopher H. Laco
Mark Trostler wrote: The job description is kinda crapy: http://jobs.perl.org/job/8624 But you can work in Sunnyvale, CA or Carslbad, CA. The backend in Catalyst/REST/DBIx::Class/MySQL. Frontends are currently command line/library using Moose and lots of AJAXy Javascript (using ExtJS - yah s

Re: [Catalyst] Catalyst site design drafts feedback thread

2008-06-11 Thread Christopher H. Laco
Here are the designs I've been given: Simon Elliott: (1) http://www.browsing.co.uk/cat The big white tab annoys me. :-) Mark Keating: (2) http://agaton.scsys.co.uk/~matthewt/catsite/cat_mock_web_001.png The Catalyst logo as a crop circle is a very powerful mental moniker. I love that.

Re: [Catalyst] Catalyst site design drafts feedback thread

2008-06-11 Thread Christopher H. Laco
Dave Rolsky wrote: On Wed, 11 Jun 2008, Matt S Trout wrote: Simon Elliott: (1) http://www.browsing.co.uk/cat Overall my favorite. The white text against the bottom of the grey gradient starts to fade, but I'm sure that's easily fixed. I wouldn't mind making all the non-tab text a little la

[Catalyst] REST, JSON and Content-Type

2008-06-16 Thread Christopher H. Laco
So, I'm trolling through the ASP.NET 3.5 docs on JSON and AJAX and it talks about GET not being enabled by default for a web service and that the mime type must be application/json Of course the REST package has this: 'text/x-json'=> 'JSON', Near as I can gather, the off

Re: [Catalyst] Re: Catalyst site design drafts feedback thread

2008-06-17 Thread Christopher H. Laco
My bikeshed has blue shag carpets with a disco ball and tinted windows. :-) signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable arch

Re: [Catalyst] Session collisions

2008-07-11 Thread Christopher H. Laco
Ash Berlin wrote: On 11 Jul 2008, at 15:47, Jim Spath wrote: We've gotten some reports in one of our Catalyst applications that users are "swapping places". ie, they are suddenly logged in as another user, or someone has accessed their account. I've done some quick looking and don't see an

Re: [Catalyst] Re: Catalyst and Taint?

2008-07-24 Thread Christopher H. Laco
Aristotle Pagaltzis wrote: * Matt S Trout <[EMAIL PROTECTED]> [2008-07-24 04:40]: The thing is, by the time you get to a $c->req object parsing has happened so it probably won't be tainted anyway. That is a bug, though. Unfortunately a lot of Perl code has that problem: since the official mech

Re: [Catalyst] Announce: Instant AJAX web front-end for DBIx::Class

2008-08-19 Thread Christopher H. Laco
Ali M. wrote: > DBIC is switching to Moose? Isn't everything? :-) signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http:/