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

2006-08-09 Thread Simon Wilcox
On Tue, 8 Aug 2006, Christopher H. Laco wrote: http://weblog.rubyonrails.org/2006/8/7/ruby-on-rails-will-ship-with-os-x-10-5-leopard By obsessively marketing Catalyst. Ideally build several web apps that are really, really useful (c.f. Basecamp) market the hell out of them. Make it really

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

2006-08-09 Thread Simon Wilcox
On Wed, 9 Aug 2006, Brian Kirkbride wrote: I'd rather have the design decisions for my chosen framework made in consideration of the pragmatic than the marketing side of things. Actually Rails is an emergent framework that's been rolled out from Basecamp. That's why it has functionality holes,

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

2006-08-09 Thread Simon Wilcox
On Wed, 9 Aug 2006, Matt S Trout wrote: Point out that everybody on http://dev.catalyst.perl.org/wiki/LiveApplications disagrees :) Wow, another invisible wiki page. Why isn't that linked directly and prominently off the Catalyst homepage ? How do I get a login to add a site to that page, or

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-06 Thread Simon Wilcox
considered best practice in this area, is it still Data::FormValidator or should we be looking at something else ? Simon Wilcox -- Digital Craftsmen Ltd Exmouth House, 3 Pine Street, London. EC1R 0JH t 020 7183 1410 f 020 7099 5140 m 07951 758698 w http://www.digitalcraftsmen.net

Re: [Catalyst] Question on serving files

2007-02-16 Thread Simon Wilcox
/ Location /static SetHandler default /Location Location /movies SetHandler default /Location Location /images SetHandler default /Location Works just fine. The same should work for mod_perl too. Simon Wilcox

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Simon Wilcox
; and in the template use [% obj.name1 %]... [% obj.name2 %]? I just put the object in the stash. TT abstracts the method/hash key accessor issue for you so that [% obj.name1 %] will work whether obj is an object with a name1 accessor or a hash with a name1 key. Simon Wilcox -- Digital Craftsmen

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Simon Wilcox
to understand this, if you don't already. It's worth having a read through the tutorials. And buy Damian's book - Object Oriented Perl. http://www.amazon.co.uk/Object-Oriented-Perl-Damian-Conway/dp/188491 Simon Wilcox -- Digital Craftsmen Ltd Exmouth House, 3 Pine Street, London. EC1R 0JH t 020 7183

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Simon Wilcox
On Tue, 13 Mar 2007, Octavian Rasnita wrote: From: Simon Wilcox [EMAIL PROTECTED] I just put the object in the stash. TT abstracts the method/hash key accessor issue for you so that [% obj.name1 %] will work whether obj is an object with a name1 accessor or a hash with a name1 key. Ok

Re: [Catalyst] putting an object in the stash

2007-03-13 Thread Simon Wilcox
On Tue, 13 Mar 2007, Octavian Rasnita wrote: That's why I want to find how to put the key/values from $obj into a common hash. It sounds like this might be a bad design decision. Why would you not want to group your template variables ? As your app grows you'd be much more likely to see one

Re: [Catalyst] Changing the request-user_agent

2007-03-20 Thread Simon Wilcox
On Tue, 20 Mar 2007, Adeola Awoyemi wrote: Is it possible to change the request-user_agent? I am writing some tests where I want to set the user_agent before making the request and have my app behave differently depending on the user agent. You mean in Catalyst::Test ? Looks to me as though

Re: [Catalyst] OT: security through obscurity (was: Encrypt/Decrypt URI)

2007-05-18 Thread Simon Wilcox
On Fri, 18 May 2007, A. Pagaltzis wrote: Relying on obscurity as your only defense is foolish, but using it as a supplemental layer on top of a defense in depth is generally wise. Ah you mean like http://xkcd.com/c257.html ? Sorry, it's Friday :-) Simon.

Re: [Catalyst] CMS

2007-08-23 Thread Simon Wilcox
Cory Watson wrote: Next year I will have a need for a CMS that: - multi-user - tracks changes - allows previewing - is perl - doesn't impose a templating system - extensible - is open source - works with my cat site If you want sledgehammers, Bricolage and Krang are probably the

Re: [Catalyst] Some guidance needed please

2007-09-13 Thread Simon Wilcox
Will Hawes wrote: Whoops, my bad. $c-model() does indeed return a DBIx::Class::ResultSet, so you would need to retrieve/create an instance of your UsedPassword class from the resultset in order to call any methods on it: my $used_password = $c-model('DBIC::UsedPassword')-create( { user =

Re: [Catalyst] Some guidance needed please

2007-09-13 Thread Simon Wilcox
Matt S Trout wrote: On Thu, Sep 13, 2007 at 03:14:58PM +0100, Ian Docherty wrote: Almost, if I do my $used_password = $c-model('DBIC::UsedPassword')-result_class-create_limited(); it works. So that should do for now, thanks Simon and Will for your help ;) No. Don't do that. Really don't.

Re: [Catalyst] Some guidance needed please

2007-09-14 Thread Simon Wilcox
Matt S Trout wrote: The docs are correct. That's just completely the wrong place for the create_limited method. I'd better read them more thoroughly then :-) I'm coming at this as an ex-Class::DBI user who uses DBIx::Class every few months. Each time I come into contact with it the state