Re: [Catalyst] CatalystX::CRUD

2007-09-24 Thread Christopher H. Laco
Peter Karman wrote: On 09/23/2007 11:24 AM, Matt S Trout wrote: On Fri, Sep 21, 2007 at 08:57:35AM -0500, Peter Karman wrote: CXCM subclasses would need to implement at least the following methods: * new_object - returns CatalystX::CRUD::Object-new() * fetch - returns

Re: [Catalyst] Re: Announce: CatalystX::Controller::reCAPTCHA

2007-09-24 Thread Christopher H. Laco
Kieren Diment wrote: Thanks to mst clarifying what the CatalystX namespace is for this is now Catalyst::Controller::reCAPTCHA and thanks to nothingmuch it's now in version 0.2 with a slightly better assignment scheme to $c-stash (you now get $c-stash-{recaptcha_ok} and

Re: [Catalyst] Best way to validate Chained actions?

2007-09-13 Thread Christopher H. Laco
Micah Jaffe wrote: I'm trying to figure out the best[*] way to validate Chained actions at various points along the action chain. By validate, I mean check if the action should proceed or bomb out. Validation is not the same as authentication; I may be logged in but I may not have

Re: [Catalyst] post - all empty?

2007-09-07 Thread Christopher H. Laco
Josef Chladek wrote: hi list, I have a strange problem, that occurs for some clients, for most not: we have a form, that is setup by javascript dynamically (form consits of one input field, one textarea and 2 hidden fields) ... form.setAttribute('action','/cat/postings/post_comment');

Re: [Catalyst] Storing $c leaks memory?

2007-08-23 Thread Christopher H. Laco
Tobias Kremer wrote: While hunting down some memory leaks in my application I found that it's generally a bad idea to store $c in a class as this never gets cleared up completely, is that correct? I'd wager circular reference issue. Take a look into ACCEPT_CONTEXT controller. In short, if

Re: [Catalyst] CMS

2007-08-23 Thread Christopher H. Laco
John Wang wrote: On 8/23/07, Simon Wilcox [EMAIL PROTECTED] wrote: If you want sledgehammers, Bricolage and Krang are probably the beefiest ones you can find :-) www.bricolage.cc www.krangcms.com Don't forget www.webgui.org. One thing about Bricolage, Krang and WebGUI, is that none

Re: [Catalyst] Re: Trimming and Quoting Oh My!

2007-07-25 Thread Christopher H. Laco
A. Pagaltzis wrote: Hi Christopher, look, it’s pretty simple: I like to help because it’s fun. If it becomes work, I lose interest. Make me jump through hoops to read your stuff and I just won’t. I assume I’m not the only one. Draw your own conclusions, make your own call. Regards, Ya

Re: [Catalyst] Re: Trimming and Quoting Oh My!

2007-07-25 Thread Christopher H. Laco
Christopher H. Laco wrote: A. Pagaltzis wrote: Hi Christopher, look, it’s pretty simple: I like to help because it’s fun. If it becomes work, I lose interest. Make me jump through hoops to read your stuff and I just won’t. I assume I’m not the only one. Draw your own conclusions, make your

Re: [Catalyst] Re: Trimming and Quoting Oh My!

2007-07-25 Thread Christopher H. Laco
Daniel McBrearty wrote: I know I'm not a prominent poster on this list, but from time to time I do have answers and opinions that may actually be relevant. you're doing better than me mate, and it's never stopped me from talking out of my arse. Hell, I just like stirring the pot and causing

Re: [Catalyst] Trimming and Quoting Oh My!

2007-07-24 Thread Christopher H. Laco
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chisel Wright wrote: Just a polite request. Would it be possible for: 1. people to trim quotes? It'd be really nice to not have to wade through a couple of hundred lines of the initial post in a thread being re-quoted every time someone

Re: [Catalyst] Catalyst::Helper passes %T to POSIX::strftime - causes infinite loop under Win32

2007-07-17 Thread Christopher H. Laco
bits wrote: Catalyst::Helper::_mk_changes calls POSIX::strftime on line 390: my $time = strftime('%Y-%m-%d %T', localtime time); the %T parameter causes my Activestate Perl 5.8.8 820 to infinite loop. In fact, perl -MPOSIX -e print POSIX::strftime('%T', localtime time); also

Re: [catalyst] conditional loading of Controllers and Models

2007-07-17 Thread Christopher H. Laco
Matt S Trout wrote: On Mon, Jul 16, 2007 at 02:48:50PM +0200, Daniel McBrearty wrote: is there a way to have some C's and M's load into catalyst conditionally? for example, if some config variable is set? Exclude some of them with setup_components config. Or just do it via @INC

[Catalyst] Re: [Catalyst-dev] Announce: Last Call - RC of C::P::Authentication

2007-07-07 Thread Christopher H. Laco
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jay K wrote: Hey all, Big news! With the most excellent assistance of J. Shirley and Nilson Santos Figueiredo Junior - The new C::P::Authentication finally has all it's tests and, we feel, is ready for release. Thus - the Release Candidate

[Catalyst] Handel 1.0 Released

2007-06-24 Thread Christopher H. Laco
After just over a year of development and testing, I'm pleased to finally announce the 1.0 release of Handel. The 1.0 release has undergone a major rewrite from the 0.3x series of releases and includes many new features and fixes. The new features include: DBIx::Class Support Handel now uses

Re: [Catalyst] plat_forms report published on June 20th. 2007. Geneva team on Catalyst wins the Perl track.

2007-06-20 Thread Christopher H. Laco
Cédric Bouvier wrote: [snip] To me, it seems that the enterprise world take it for granted that SOAP is a synonym for web services, the only way to go, whereas the Perl community generaly considers it as useless and as heavy as a dead donkey. Ha ha. Couldn't agree more. -=Chris

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:

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

[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] 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

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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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

[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] [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

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] 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] 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] 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] 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:

[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] 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

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: ...

[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] 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:

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] 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] 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

[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

[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

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

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] {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] 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] 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] [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] 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] 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] 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] 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] 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] 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

  1   2   >