Re: [Catalyst] PPM vs CPAN in a Windows Context

2006-06-30 Thread Christopher H. Laco
Nilson Santos Figueiredo Junior wrote: On 6/30/06, Hugh Lampert [EMAIL PROTECTED] wrote: The hassle is that we are a Windows shop and my boss only cares about results. To roll out an .ASP application is only a matter of using the resources that are already installed in the development

Re: [Catalyst] Rendering static pages in root/

2006-07-06 Thread Christopher H. Laco
A. Pagaltzis wrote: * Jesse Sheidlower [EMAIL PROTECTED] [2006-07-06 18:55]: It's the default behavior for Static::Simple--read the docs. Files with an .html extension are processed by Catalyst (i.e. are not served statically). I still think it’s a stupid default and find that the fact that

[Catalyst] Someone please benchmark and reply to this

2006-07-14 Thread Christopher H. Laco
http://www.digg.com/programming/Django_vs._Rails_vs._Symfony_Django_is_fastest Once again, Perl is left out in the cold. signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.rawmode.org Listinfo:

Re: [Catalyst] C::P::StackTrace eats template exceptions?

2006-07-21 Thread Christopher H. Laco
Justin Guenther wrote: Just so nobody thinks this is getting ignored, I'm working on fixing it but the problem runs deeper than it would initially appear. C::P::StackTrace does its magic by having a localized $SIG{__DIE__} in the extended execute() method. It collects a Devel::StackTrace

Re: [Catalyst] Authentication::Store::DBIC works undermyapp_server.pl but not Apache/mod_perl

2006-07-31 Thread Christopher H. Laco
Rodney Broom wrote: From: Matt S Trout [EMAIL PROTECTED] Your mod_perl config is loading MyApp.pm twice... Something is, that's for sure. I can't find anything that would be at fault, though. grep says that nothing is using or requiring MyApp, and the effected apache conf (below) only

Re: [Catalyst] [Announce] Planet Catalyst

2006-08-03 Thread Christopher H. Laco
articles related to Catalyst and friends which means it filters articles on catalyst, dbic, dbix(::)?class or html(::)?widget (case insensitive). Bah. No Handel? Pt. Catalyst is dead to me. Dead I say. An ex-parrot. :-) -=Chris signature.asc Description: OpenPGP digital signature

Re: [Catalyst] [Announce] Planet Catalyst

2006-08-03 Thread Christopher H. Laco
John Wang wrote: On 8/3/06, Christopher H. Laco [EMAIL PROTECTED] wrote: articles related to Catalyst and friends which means it filters articles on catalyst, dbic, dbix(::)?class or html(::)?widget (case insensitive). Bah. No Handel? Pt. There would be if I could find the Handel

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

2006-08-08 Thread Christopher H. Laco
http://weblog.rubyonrails.org/2006/8/7/ruby-on-rails-will-ship-with-os-x-10-5-leopard signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable

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

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

Re: [Catalyst] ways to do stuff and why

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

Re: [Catalyst] how to get started?

2006-08-21 Thread Christopher H. Laco
Johan Lindstrom wrote: At 18:46 2006-08-21, Nate Wiger wrote: A big problem I ran into is that when Module::Build is downloaded via CPAN and auto-configured, cc compilation is disabled by default. You get: Module::Build is not configured with C_support So, I had to manually build

Re: [Catalyst] how to get started?

2006-08-21 Thread Christopher H. Laco
A. Pagaltzis wrote: * Christopher H. Laco [EMAIL PROTECTED] [2006-08-21 19:25]: Long live EU::MM! You also enjoy torturing Schwern, don’t you? Regards, No, but I do love to be on the receiving end of his rants from time to time. ;-) signature.asc Description: OpenPGP digital signature

Re: [Catalyst] Anyone actually using FastCGI with Apache (or even lighttpd)?

2006-08-28 Thread Christopher H. Laco
I've been asleep at the wheel on this one... handelframework.org is running as FastCGI under Apache... Here's my config in case it helps FastCgiServer /www/handelframework.com/lib/HandelSite/script/handelsite_fastcgi.pl -processes 3 VirtualHost Alias /

[Catalyst] FormValidator::Simple Sillyness

2006-08-28 Thread Christopher H. Laco
Somedays I swear I shouldn't be allowed to touch a damn computer. I'm working on rewriting the cat helper code in Handel. IT was using Data::FormValidator, but I'm now using FormValidator::Simple instead. For reasons I don't understand, I can't get the messages to display the right thing when I'm

Re: [Catalyst] Customizing Authentication/Roles

2006-09-12 Thread Christopher H. Laco
Matt S Trout wrote: Christopher H. Laco wrote: As I start laying out the framework for Mango, one of the things I want to do is use roles on a virtual 'per site' basis; within the same cat app. From a table standpoint, that is roughly: sites: id, name users id

Re: [Catalyst] Customizing Authentication/Roles

2006-09-13 Thread Christopher H. Laco
Matt S Trout wrote: [snip] Alternatively, you could point the user and role models at custom ones with an ACCEPT_CONTEXT that applies -search({ site_id = $current_site_id }) based on the request. That makes sense, but the light isn't on upstairs this morning. :-/ That means I would create

Re: [Catalyst] Customizing Authentication/Roles

2006-09-13 Thread Christopher H. Laco
Matt S Trout wrote: [snip] Multiple site instances. See Dave Kamholz (ningu)'s branch. Sigh. app_context_split? Age: 2 months No thanks. If it's not release, it doesn't exist for this project. It can be made release, it just needs testing before it becomes so. If that's

Re: [Catalyst] Content-Length: 0 on POSTs

2006-09-29 Thread Christopher H. Laco
Bill Moseley wrote: I've had two users now report that posting forms in SSL mode is not working. Both times I've dumped the request headers and see that they are posting with a Content-Length: header of zero. What happens is they just get the form back again. That's expected because my

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Christopher H. Laco
Carl Franks wrote: On 26/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Fayland Lam [EMAIL PROTECTED] wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as: $c-res-redirect('http://www.yahoo.com'); return undef; Indeed I want to run the

Re: [Catalyst] regexes and auto actions

2006-10-31 Thread Christopher H. Laco
Carl Johnstone wrote: Hi, Got a question regarding the best way of setting up handlers. The site is split into many areas (and subareas) defined by URL path, the same types of content appear in each area of the site. There's stuff that needs setting up that's specific to the area of the

Re: [Catalyst] IDE/editor

2006-11-14 Thread Christopher H. Laco
[EMAIL PROTECTED] wrote: I hesitate to ask this question because it seems to often result in some juvenille flame war. Everyone is different, with different needs and preferences. That's why we have choices. It's Perl after all, right? [grin] With that out of the way, what IDE or editor

Re: [Catalyst] IDE/editor

2006-11-14 Thread Christopher H. Laco
Max Afonov wrote: Now the funny part is that you did NOT recommend Eclipse after all! I'm really really picky about my editors. I've used Textpad on Windows forever, and recently SCite. What I look for in an editor is that the toolbar is slim, but I have a lot of options under hood. For me,

Re: [Catalyst] IDE/editor

2006-11-14 Thread Christopher H. Laco
Ian Docherty wrote: Have you looked at UltraEdit for Windows (unfortunately no version for Linux) http://www.ultraedit.com/ I think it gives you everything you listed and more. Regards Ian Docherty Last time I tried it, I hated it. Felt like the interface was too busy...and from

Re: [Catalyst] IDE/editor

2006-11-14 Thread Christopher H. Laco
Christopher H. Laco wrote: Ian Docherty wrote: Have you looked at UltraEdit for Windows (unfortunately no version for Linux) http://www.ultraedit.com/ I think it gives you everything you listed and more. Regards Ian Docherty Last time I tried it, I hated it. Felt like the interface

Re: [Catalyst] Re: IDE/editor

2006-11-14 Thread Christopher H. Laco
A. Pagaltzis wrote: * Ash Berlin [EMAIL PROTECTED] [2006-11-14 17:40]: For vim I use the MiniBuffExplorer plugin and split windows - give you tab like interface, and is faster than gvim7's own tabs IMO. You are a man with fine taste. :-) Regards, Yeah...except for the vim part. :-)

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2006-11-16 Thread Christopher H. Laco
Carl Franks wrote: On 16/11/06, Cory Watson [EMAIL PROTECTED] wrote: On 11/16/06, Carl Franks [EMAIL PROTECTED] wrote: On 16/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Essentially, according to his test, which doesn't take into account ORM performance, Rails Django knock the

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2006-11-16 Thread Christopher H. Laco
Carl Franks wrote: On 16/11/06, Christopher H. Laco [EMAIL PROTECTED] wrote: Carl Franks wrote: On 16/11/06, Cory Watson [EMAIL PROTECTED] wrote: On 11/16/06, Carl Franks [EMAIL PROTECTED] wrote: On 16/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Essentially, according

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2006-11-16 Thread Christopher H. Laco
Paul Makepeace wrote: On 11/16/06, Christopher H. Laco [EMAIL PROTECTED] wrote: Regardless of whether the test is 'real world', and regardless of whether the frameworks 'were meant to serve more complicated things', Catalyst is slower in this instance. All things being unequal, if I tell my

Re: [Catalyst] Catalyst vs Rails vs Django Cook off

2006-11-16 Thread Christopher H. Laco
Christopher H. Laco wrote: Paul Makepeace wrote: On 11/16/06, Christopher H. Laco [EMAIL PROTECTED] wrote: Regardless of whether the test is 'real world', and regardless of whether the frameworks 'were meant to serve more complicated things', Catalyst is slower in this instance. All things

Re: [Catalyst] [OT] Universal::CAN warning from TT?

2006-11-22 Thread Christopher H. Laco
Perrin Harkins wrote: Daniel McBrearty wrote: Some of my tests give this warning, lots : Called UNIVERSAL::can() as a function, not a method at /usr/local/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi/Template/Provider.pm line 277 This is because you have installed chromatic's

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

2006-11-29 Thread Christopher H. Laco
Jonathan Rockway wrote: [snip] That attitude is why Microsoft is becoming less relevant every day. In another 30-50 years we might have some standards that are actually implemented properly. In another 30-50 years, we may have a jrockway that's actually implemented properly. :-) -=Chris

Re: [Catalyst] Re: Last Chance /LastDay:Webdevelopmentplatformcontestand Perl / Catalyst

2006-12-04 Thread Christopher H. Laco
Nilson Santos Figueiredo Junior wrote: On 12/4/06, Octavian Rasnita [EMAIL PROTECTED] wrote: Yes of course, but if thinking this way, PHP could be considered not very successfully, because it is not an extraordinary language, however, it is used in much more web sites than perl, and some big

Re: [Catalyst] {OT] protecting against attacks with multilingual input

2006-12-05 Thread Christopher H. Laco
Jonathan Rockway wrote: Nilson Santos Figueiredo Junior wrote: This way, everything will probably just work, even when the user has a on their names or any other weird characters. No, you can inject plenty of bad code without . You need to escape , , , , and '. Otherwise, consider

Re: [Catalyst] reference lib outside Catalyst web applicationdirectory

2006-12-13 Thread Christopher H. Laco
Brian Kirkbride wrote: Dave Howorth wrote: Matt S Trout wrote: I'm asking why the web part can't be in the main app directory :) I've been reading this thread with interest because Leandro's description seems to fit my situation as well. This seems like a pretty lame response. Does it mean

Re: [Catalyst] Re: Accessing $c from Model

2006-12-29 Thread Christopher H. Laco
Daniel McBrearty wrote: FWIW ... : what I've noticed about using models (or not) ... : 1. the advantage of using a model mostly seems to be that it autoloads, and then is accessible everywhere from $c. Otherwise, there doesn't seem to be much difference from just having a normal perl

[Catalyst] Domain Model Auth Store

2007-01-02 Thread Christopher H. Laco
Long story longer, I'm finally working on Mango. This week I'm focusing on the general bits...auth, roles, sessions, etc. I'm currently using Store::DBIC to get auth/db up and running. Now that it is running, I want to ditch the use of Schema classes directly in favor of a full domain model for

[Catalyst] Auth bug, or feature?

2007-01-19 Thread Christopher H. Laco
Long story longer, I wrote my own Auth store. While I could auth users, it would in no way shape or form save itself to a session even though Session was loaded, there was a for_session() sub and the user object supports sessions. One week it worked. This week it didn't. After tearing my hair out

Re: [Catalyst] Tweaking REST

2007-01-29 Thread Christopher H. Laco
Christopher H. Laco wrote: I'm needing to support RSS/Atom feeds of some of my cart/wishlist data. The lazy guy in me says I can just make a view or two and be done with it (Thanks for the code LTjake!). The anal retentive programmer in me says I probably really want to use C::A::REST to get

Re: [Catalyst] Tweaking REST

2007-01-30 Thread Christopher H. Laco
Adam Jacob wrote: On Jan 29, 2007, at 12:19 PM, Christopher H. Laco wrote: Christopher H. Laco wrote: I'm needing to support RSS/Atom feeds of some of my cart/wishlist data. The lazy guy in me says I can just make a view or two and be done with it (Thanks for the code LTjake!). The anal

Re: [Catalyst] Re: Tweaking REST

2007-01-30 Thread Christopher H. Laco
A. Pagaltzis wrote: * Christopher H. Laco [EMAIL PROTECTED] [2007-01-29 20:10]: As for RSS/Atom, I'd need a Serializer for them, which in the end isn't really different than writing a view. I have a nice module for Atom. :-) Any reason why you want to generate both RSS and Atom

Re: [Catalyst] Tweaking REST

2007-01-30 Thread Christopher H. Laco
There are still some issues with using views, mainly that they both fight of setting content-type...and since REST sets it already, the view never sets it, which is good, but also the charset=utf isn't set either... Just to solidify that statement... __load_content_plugins sets the response

Re: [Catalyst] Re: Tweaking REST

2007-01-30 Thread Christopher H. Laco
Jonathan Rockway wrote: As for version, probably 2.0, or whatever XML::Feed spits out. Which version of RSS 2.0? Google for RSS 2.0 and you'll find it's a nightmare. Multiple versions with the same version number, inability to embed HTML properly etc. Nightmare, nightmare, nightmare.

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Christopher H. Laco
Jon wrote: Following the discussion late last year about Perl not being selected as the language of choice by those who make the decisions, I thought I should write up my experience (as the CTO who gets to make the decisions) as to why we chose Perl, Catalyst, DBIx::Class for our system

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Christopher H. Laco
Hermida, Leandro 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 decisions) asked me as project

Re: [Catalyst] not null search

2007-02-15 Thread Christopher H. Laco
Will Smith wrote: Hi, first, thanks for all of your help. A simple question I want to ask is how to do a search for NOT NULL value. I do not want to use -search_like Thank you On what Model? A DBIC based Model? {column = {'!=', undef} I'd assume... -=Chris signature.asc

Re: [Catalyst] not null search

2007-02-15 Thread Christopher H. Laco
Will Smith wrote: Thanks Chris, Yes, CDBI model, and does not work the way you say. It does not give a sytax error but nothing returned. $c-model('myappDB::Student')-search( studentname = {'!=', undef} ) .. {column = {'!=', undef} I'd assume... -=Chris

Re: AW: [Catalyst] not null search - DONE

2007-02-15 Thread Christopher H. Laco
Hartmaier Alexander wrote: CDBI??? I’ll try to avoid plain strings when there is a syntax available. -Alex I'd try to avoid CDBI where DBIC is available. :-) signature.asc Description: OpenPGP digital signature ___ List:

[Catalyst] L10N + FormBuilder/HTMLWidget

2007-02-19 Thread Christopher H. Laco
Is anyone doing complete localization using FormBuilder or HTML::Widget? I'm stuggling with probably the same things everyone struggles with when it comes to forms. FormBuilder is nice when it comes to localizing the messages via messages.$lang. It totally sucks when it comes to localizing the

Re: [Catalyst] Merging configs

2007-03-08 Thread Christopher H. Laco
Bill Moseley wrote: My YAML file has sections that are specific to what server is running. That is, I have: # Default config foo: bar name: foo servers: staging: config: foo: baz ... devel: config: ...

Re: [Catalyst] Performance

2007-03-09 Thread Christopher H. Laco
Nilson Santos Figueiredo Junior wrote: On 3/8/07, Jim Spath [EMAIL PROTECTED] wrote: URI is next up at around 14% of time. Is there anything that can be done about this one? Wherever is reasonably possible, instead of actually using calls to $c-uri_for() for every item, call it only once

Re: [Catalyst] Performance

2007-03-09 Thread Christopher H. Laco
Robert 'phaylon' Sedlacek wrote: Christopher H. Laco wrote: Even better, just don't use uri_for if you don't have to. Relative uris are your friend. They still work. The web still functions without uri_for. :-) If you are working on an index page, and you have create/edit/view links

Re: [Catalyst] Performance

2007-03-09 Thread Christopher H. Laco
Perrin Harkins wrote: On 3/9/07, Bill Moseley [EMAIL PROTECTED] wrote: I just checked and on some pages I'm calling uri_for a few hundred times. If that's a bottle neck then optimization would be most welcome. I'm sure it depends on your usage, but for Jim Spath it was only about 4% of

[Catalyst] HASH!

2007-03-19 Thread Christopher H. Laco
Haha. Totally off topic, but I figured it's good for a laugh. Looks like a data feed somewhere is a little jacked: Via Reddit: http://reddit.com/info/1b9bl/comments To Forbes: http://www.forbes.com/feeds/ap/2007/03/18/ap3527414.html Associated Press HASH(0x8f01d48) By JULIE WATSON 03.18.07,

Re: [Catalyst] Apache2+fcgid or Lighttpd

2007-03-19 Thread Christopher H. Laco
Toby Corkindale wrote: Daniel McBrearty wrote: I thought of using fcgi also, but wondered if the fact that lighty doesn't make the fcgi connection persistent was significant. Are you sure? It looked persistent to me. On 3/15/07, Michele Beltrame [EMAIL PROTECTED] wrote: I'm about to

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

2007-03-20 Thread Christopher H. Laco
Where's the shopping cart? :-) signature.asc Description: OpenPGP digital signature ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive:

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

2007-03-21 Thread Christopher H. Laco
Kieren Diment wrote: On 22/03/07, Neil de Carteret [EMAIL PROTECTED] wrote: On 20/03/07, Kieren Diment [EMAIL PROTECTED] wrote: OK, some people pointed out problems with the Makefile.PL and the structure of the tarball, so there's already a 0.011 release at

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

2007-03-21 Thread Christopher H. Laco
Brian Kirkbride wrote: 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

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

2007-03-21 Thread Christopher H. Laco
Brian Kirkbride wrote: 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

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

2007-03-22 Thread Christopher H. Laco
Brian Kirkbride wrote: Hello all, I've been working with Chained actions, and like many others have found them to be incredibly useful for setting up DBIC result sets before reaching an endpoint. The one thing that has been bothering me is that to start a chain in some controller, say

Re: [Catalyst] Swish-e

2007-03-22 Thread Christopher H. Laco
Jim Spath wrote: What about Xapian? I noticed that it has some Catalyst support in the form of Catalyst::Model::Xapian. Xapian also seems like a possible long term solution as it can handle more documents that Swish-e or KinoSeach. Perrin Harkins wrote: On 3/22/07, Jim Spath [EMAIL

Re: [Catalyst] update record with unique ID

2007-04-09 Thread Christopher H. Laco
Michael Higgins wrote: Hello, Cat-list-ers, Here's a pared-down version of my question, hoping it's an easy one: ERROR: DBIx::Class::ResultSet::update(): Error executing 'UPDATE ... Duplicate entry '140949' for key 1 at QUESTION: How do we specify UPDATE ... blah WHERE (ID='UNIQUE')

Re: [Catalyst] Catalyst Summary for March 2007

2007-04-17 Thread Christopher H. Laco
Robert 'phaylon' Sedlacek wrote: Good morning, everyone. About two weeks ago, I started to summarise the happenings around Catalyst on the Catalyst and Catalyst-Development mailing lists as well as on CPAN. Brian Cassidy and J. Shirley helped with cleaning it up and brought a bit more

Re: [Catalyst] [RFC] ditch svn

2007-04-18 Thread Christopher H. Laco
Kiki wrote: Jonathan Rockway wrote: I think it's pretty clear that Subversion is a failure for our project. We use topic branches heavily, and that's just not something svn (or really svk) is designed for. I hearby propose that we switch to git. I envision each project in trunk to be

[Catalyst] Installing vs. In-Place running: Part Deux

2007-04-19 Thread Christopher H. Laco
The same old story is that Cat apps are unique that you can run them in place and install nothing. For those who don't mind that using source control to merge new app updates with local changes, that's ok. For those who want to upgrade the app and not have their stuff overwritten, and not spend

Re: [Catalyst] need nntp server

2007-04-25 Thread Christopher H. Laco
万朝伟 wrote: Simon Elliott 写道: On 25 Apr 2007, at 11:24, Chisel Wright wrote: On Wed, Apr 25, 2007 at 05:21:25PM -0700, 万朝伟 wrote: I hate mail list,is there have a nntp server for Catalyst? Not that I'm aware of. Set up your own nntp server and use Email::Send::NNTP gmane offers an NNTP

Re: [Catalyst] need nntp server

2007-04-25 Thread Christopher H. Laco
Christopher H. Laco wrote: 万朝伟 wrote: Simon Elliott 写道: On 25 Apr 2007, at 11:24, Chisel Wright wrote: On Wed, Apr 25, 2007 at 05:21:25PM -0700, 万朝伟 wrote: I hate mail list,is there have a nntp server for Catalyst? Not that I'm aware of. Set up your own nntp server and use Email::Send

Re: [Catalyst] Question about Catalyst::Controller::FormBuilder

2007-04-30 Thread Christopher H. Laco
Balaji Srinivasan wrote: Hi There I am using Catalyst::Controller::FormBuilder to create my forms. Its working great for me except for this one issue: I would like to specify a field that has a regexp that has a comma in it. For example: sub doStuff : Path('/doStuff) Form('/doStuff') {

Re: [Catalyst] How to make MyApp::B a part of MyApp::A ?

2007-05-02 Thread Christopher H. Laco
Peter Karman wrote: Oleg Pronin scribbled on 5/2/07 5:30 AM: Greetings! I want to make MyApp::B a part of MyApp::A under namespace for example /folder/ Both B and A are normal catalyst applications. (both do '__PACKAGE__-setup()' and etc. and therefore cannot work together). How to

Re: [Catalyst] How to make MyApp::B a part of MyApp::A ?

2007-05-02 Thread Christopher H. Laco
Oleg Pronin wrote: You didn't understand what i meant. MyApp::A is not a class. It's a whole application with all surrounding stuff. so and MyApp::B. Ok lets build the question in another manner: Catalyst scans for all modules under MyApp::Controller to build the list of url actions.

Re: [Catalyst] Problem with RenderView

2007-05-04 Thread Christopher H. Laco
Jay K wrote: Bernhard, There is no way that I'm aware of to accomplish what you are trying to do in the manner you are trying to do it. RenderView basically forwards processing to your view object. It has some 'outs' to avoid doing that when it is inappropriate, as in when body is

Re: [Catalyst] Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-09 Thread Christopher H. Laco
Jamie Neil wrote: RA Jones wrote: Absolutely - I'm in exactly the same position, and am following almost exactly the same process, except that I abandoned RoR early on and decided to stick with Perl for the re-write. Catalyst was an entirely new concept to me, having progressed from a

Re: [Catalyst] Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-09 Thread Christopher H. Laco
In the case of the example above: See svn.mangoframework.com/CPAN/Mango/trunk/ Mango::Provider::Users is really a subclass of Mango::Provider::DBIC that uses a schema to do its bidding. The users provider exposes Mango::User objects...which are quite literally...stupid. They know nothing of their

Re: [Catalyst] Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-09 Thread Christopher H. Laco
Matt S Trout wrote: On Wed, May 09, 2007 at 10:02:19AM -0500, Dave Rolsky wrote: On a side note, Catalyst plugins as a rule seem to jam _way_ too many methods into the things they extend (the session plugin is truly egregious). Some day I'd like to write a version of the session plugin

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

2007-05-15 Thread Christopher H. Laco
where do you handle the validation? Only in the controller or in both the model and controller? Fail Early. Fail Often. Some will say redundancy sucks. I agree, except for where validation is concerned. If you're writing data from the web into a model, check the data at the page level, and at

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

2007-05-15 Thread Christopher H. Laco
mla wrote: Matt S Trout wrote: On Tue, May 15, 2007 at 02:51:18PM -0400, Christopher H. Laco wrote: where do you handle the validation? Only in the controller or in both the model and controller? Fail Early. Fail Often. Some will say redundancy sucks. I agree, except for where validation

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

2007-05-15 Thread Christopher H. Laco
Christopher H. Laco wrote: mla wrote: Matt S Trout wrote: On Tue, May 15, 2007 at 02:51:18PM -0400, Christopher H. Laco wrote: where do you handle the validation? Only in the controller or in both the model and controller? Fail Early. Fail Often. Some will say redundancy sucks. I agree

Re: [Catalyst] Catalyst merchandise

2007-05-17 Thread Christopher H. Laco
Mike Whitaker wrote: After a bit of discussion on IRC, and some tweaking in Illustrator, we present (with thanks to jshirley for finding the EPS version of the logo!): The Catalyst Online Store - http://www.cafepress.com/catalystdev Your home for Catalyst t-shirts, caps, mugs, and

Re: [Catalyst] After the RoR vs. PHP Mac/PC ad skits on reddit ...

2007-05-18 Thread Christopher H. Laco
Matt S Trout wrote: The other Shadowcat founder got bored and decided it was time for a skit of our own, albeit in comic form (dunno about him but I'm too ugly for video :) Hehe. I want another CafePress beer Stein: Matt S. Trout: Too Ugly for Video signature.asc Description:

Re: [Catalyst] Creating a thin Model

2007-05-18 Thread Christopher H. Laco
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 MyApp::Logic::Widget MyApp::Schema::DB where MyApp::Model

Re: [Catalyst] Creating a thin Model

2007-05-18 Thread Christopher H. Laco
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 MyApp::Logic::Widget MyApp::Schema::DB where MyApp::Model::Widget is based on

Re: [Catalyst] Encrypt /Decrypt URI

2007-05-18 Thread Christopher H. Laco
Matija Grabnar wrote: Bill Moseley wrote: What you are proposing is if item 7 is instead encoded as 84bc3da1b3e33a18e8d5e1bdd7a18d7a then they are less likely to try other numbers because of, ... why? Because it's too daunting of a task? It's a big scary md5 instead of a primary key?

Re: [Catalyst] Creating a thin Model

2007-05-18 Thread Christopher H. Laco
John Napiorkowski wrote: --- 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

Re: [Catalyst] ActiveRecord for Perl

2007-05-22 Thread Christopher H. Laco
mla wrote: Christopher H. Laco wrote: mla wrote: Perrin Harkins wrote: On 5/22/07, Adam Bartosik [EMAIL PROTECTED] wrote: What I found missing in DBIx::Class is AR method find_by_sql(sql). Did you ask about it on the mailing list? Nearly all of the Perl ORMs have support for direct SQL. I

Re: [Catalyst] ActiveRecord for Perl

2007-05-22 Thread Christopher H. Laco
mla wrote: Christopher H. Laco wrote: mla wrote: Perrin Harkins wrote: On 5/22/07, Adam Bartosik [EMAIL PROTECTED] wrote: What I found missing in DBIx::Class is AR method find_by_sql(sql). Did you ask about it on the mailing list? Nearly all of the Perl ORMs have support for direct SQL. I

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Christopher H. Laco
Bill Moseley wrote: This is suppose to be an ORM-neutral question. I often use lookup tables in the database, even for things like, say, cart_status: create table cart_status ( id SERIAL PRIMARY KEY, nametext NOT NULL, active boolean NOT NULL

Re: [Catalyst] Constants that refer to rows in a lookup table.

2007-05-22 Thread Christopher H. Laco
Bill Moseley wrote: This is suppose to be an ORM-neutral question. I often use lookup tables in the database, even for things like, say, cart_status: create table cart_status ( id SERIAL PRIMARY KEY, nametext NOT NULL, active boolean NOT NULL

[Catalyst] Forms: Chapter 1647

2007-05-24 Thread Christopher H. Laco
One of the never ending topics for Catalyst seems to be forms: how to build them, validate them, localize them and generally just live with them without hating the toolset or wanting to strangle someone. I don't have a solution for everyone, but I did create a solution for me. I offer it here as

Re: [Catalyst] Forms: Chapter 1647

2007-05-24 Thread Christopher H. Laco
Carl Franks wrote: On 24/05/07, Christopher H. Laco [EMAIL PROTECTED] wrote: One of the never ending topics for Catalyst seems to be forms: how to build them, validate them, localize them and generally just live with them without hating the toolset or wanting to strangle someone. I don't

Re: [Catalyst] Forms: Chapter 1647

2007-05-30 Thread Christopher H. Laco
Christopher H. Laco wrote: Carl Franks wrote: On 24/05/07, Christopher H. Laco [EMAIL PROTECTED] wrote: One of the never ending topics for Catalyst seems to be forms: how to build them, validate them, localize them and generally just live with them without hating the toolset or wanting

Re: [Catalyst] base controller

2007-05-31 Thread Christopher H. Laco
Octavian Rasnita wrote: how can I access the subroutines using OOP? I don't want to access them with MyApp::Controller::Base::subroutine($self, $c, ...); You have a few options. If the method has no need for $c, just do $self-subroutine(). If it needs access to $c, you have two

Re: [Catalyst] Plugin conflict?

2007-05-31 Thread Christopher H. Laco
Jim Spath wrote: Compress::Deflate and Static::Simple seem to conflict with each other. The result of this is that CSS files don't get served properly. Catalyst sees the request, and knows to serve the correct CSS file through Static Simple, but only a blank page is returned. If I disable

[Catalyst] :Template() Attribute

2007-06-15 Thread Christopher H. Laco
Last night I made the mistake of wondering out loud on irc why we didn't have a :Template() attribute in controllers, since sometimes putting the template name in the stash hash just seems to hacky. Of course, wondering out loud on irc really means you've just volunteered yourself for a patch. :-)

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Christopher H. Laco
Bill Moseley wrote: On Fri, Jun 15, 2007 at 09:58:06AM -0400, Christopher H. Laco wrote: sub edit : Local : Template( 'edit.tt' ) { my ( $self, $c ) = @_ ... } instead of: sub edit : Local { my ( $self, $c ) = @_ $c-stash-{template} = 'edit.tt

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Christopher H. Laco
Bill Moseley wrote: On Fri, Jun 15, 2007 at 09:36:33AM -0400, Christopher H. Laco wrote: The concept is easy, add :Template() to a controller method. Catalyst automatically stoes that in the action-attributes. Then 'something' has to do stash-{template} ||= action-attributes-{Template}. So

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Christopher H. Laco
Richard Jones wrote: Christopher H. Laco wrote: Imho, :Template('foo') is a lot more elegant than $c-stash-{'template'} What if we are already doing: sub foo : Local Form('/path/to/file') { } Does it still work? Wel does Form('/path/to/file') do? Is that /path/to/form/file ? sub

Re: [Catalyst] :Template() Attribute

2007-06-15 Thread Christopher H. Laco
Perrin Harkins wrote: On 6/15/07, Christopher H. Laco [EMAIL PROTECTED] wrote: Imho, :Template('foo') is a lot more elegant than $c-stash-{'template'} The trouble with putting things in attributes instead is that the sub declarations start to get really long and ugly, and you can't wrap

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

2007-06-15 Thread Christopher H. Laco
Dave Rolsky wrote: On Fri, 15 Jun 2007, Marlon Bailey wrote: Suggestion: I'd like to submit a solution that extends the current proxy-backend practice of reading the proxy values out of the request header. Currently the client's IP is taken from a X-Forwarded-For header value, and the

Re: [Catalyst] :Template() Attribute

2007-06-17 Thread Christopher H. Laco
Matt S Trout wrote: On Sat, Jun 16, 2007 at 08:37:46PM -0500, Jonathan Rockway 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

Re: [Catalyst] :Template() Attribute

2007-06-19 Thread Christopher H. Laco
Jonathan Rockway wrote: On Sunday 17 June 2007 01:22:30 pm Jonathan Rockway wrote: On Sunday 17 June 2007 01:02:52 pm Christopher H. Laco wrote: Well, if we're throwing things in the ring... C::View::Templated -template() And some forms of: -template_paths(\@) I like this. Should we

Re: [Catalyst] setup() called twice

2007-06-19 Thread Christopher H. Laco
Matt S Trout wrote: On Tue, Jun 19, 2007 at 06:19:30PM +0100, Matt Lawrence wrote: Matt S Trout wrote: On Tue, Jun 19, 2007 at 04:52:08PM +0100, Matt Lawrence wrote: Matt S Trout wrote: On Tue, Jun 19, 2007 at 09:50:30AM +0100, Matt Lawrence wrote: What's wrong with:

  1   2   >