Re: [Catalyst] The model -is- where your business logic lives.

2007-09-27 Thread Matt S Trout
On Thu, Sep 27, 2007 at 11:51:26AM +0100, Ian Docherty wrote: In a previous thread, Matt S Trout said. The model -is- where your business logic lives. The real question is whether your ORM should be directly in the model or not, but that's a whole different thread. Based on this I have

Re: [Catalyst] Can't find my canary

2007-09-24 Thread Matt S Trout
not understand: The canary hidden input tag IS ADDED, according to $c-log-debug($body) It's being added after the body's sent to the browser. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk

Re: [Catalyst] CatalystX::CRUD

2007-09-24 Thread Matt S Trout
On Mon, Sep 24, 2007 at 10:23:11AM -0500, 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

Re: [Catalyst] Catalyst::Controller::Rose::Simple

2007-09-23 Thread Matt S Trout
is not the Catalyst way. If you want to write everything from scratch every time, might I recommend PHP. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want

Re: [Catalyst] Catalyst::Model::Search

2007-09-23 Thread Matt S Trout
. No, leave the discussion on here. John's just uninformed as usual. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform

Re: [Catalyst] CatalystX::CRUD

2007-09-23 Thread Matt S Trout
:) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers

Re: [Catalyst] CatalystX::CRUD

2007-09-23 Thread Matt S Trout
On Sun, Sep 23, 2007 at 01:42:00PM -0400, Perrin Harkins wrote: On 9/23/07, Matt S Trout [EMAIL PROTECTED] wrote: Do you have any thoughts on how to paper over DBIC's ability to chain searches vs. the lack of that feature in RDBO? Isn't it primarily a way to build up your search

Re: [Catalyst] CatalystX::CRUD

2007-09-23 Thread Matt S Trout
On Sun, Sep 23, 2007 at 09:31:35PM -0400, Perrin Harkins wrote: On 9/23/07, Matt S Trout [EMAIL PROTECTED] wrote: You've never done a view all posts owned by the selected set of users link? This sort of thing in DBIC just becomes $posts_rs = $users_rs-search_related('posts

Re: [Catalyst] Audit logs: model or controller?

2007-09-17 Thread Matt S Trout
::InstancePerContext a lot and use the current user as the restricting object, which mostly makes this go away. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed

Re: [Catalyst] Some guidance needed please

2007-09-14 Thread Matt S Trout
On Fri, Sep 14, 2007 at 12:43:15PM +0100, Simon Wilcox wrote: 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

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

2007-09-13 Thread Matt S Trout
(SmallThing), you have to hardcode Chained in SmallThing with the name/private/path pointing to BigThing. Somebody needs to implement :Chained(../something). Given the number of things I'm working on atm, it's unlikely to be me. Patches welcome :) -- Matt S Trout Need help with your

Re: [Catalyst] Some guidance needed please

2007-09-13 Thread Matt S Trout
your ORM should be directly in the model or not, but that's a whole different thread. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] printing the generated SQL

2007-09-13 Thread Matt S Trout
On Thu, Sep 13, 2007 at 03:35:46PM +0300, Octavian Rasnita wrote: Hi, Is it possible to log a certain SQL which is generated in a Catalyst application by a controller that uses a DBIx::Class model? Yes. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] Some guidance needed please

2007-09-13 Thread Matt S Trout
)? ^^ BLAM! Why not just have it as $user-_add_to_used_passwords and then hook that into $user-insert + -update ? Perhaps better still, why not just make this a trigger? (unless you're using MySQL, in which case s/make this a trigger/use a database/ :) -- Matt S Trout Need help

Re: [Catalyst] Some guidance needed please

2007-09-13 Thread Matt S Trout
-create_limited(); S. 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. It's utterly broken. -- Matt S Trout Need help

Re: [Catalyst] Weird -d flag and txn_do interaction...

2007-09-12 Thread Matt S Trout
On Mon, Sep 10, 2007 at 09:06:07AM +0200, Marcello Romani wrote: Matt S Trout ha scritto: On Mon, Aug 27, 2007 at 05:10:23PM +0200, Marcello Romani wrote: Hi, I'm developing an app using cat and dbic, with postgresql 8.1. I've got a table with a unique column. When I try to insert

Re: [Catalyst] How to use querylog plugin...

2007-09-12 Thread Matt S Trout
the author wrote after discussions on here about why it shouldn't have been a plugin. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] Re: a noob delete/cascade problem

2007-09-12 Thread Matt S Trout
it's easy for the maintenance programmer to see why and how it's happened :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk

Re: [Catalyst] unbuffered output via multiple templates

2007-09-05 Thread Matt S Trout
to that effect. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com/http

Re: [Catalyst] Re: Catalyst::Plugin::DBIC::QueryLog

2007-09-04 Thread Matt S Trout
On Tue, Sep 04, 2007 at 01:19:31AM +, Fayland Lam wrote: Matt S Trout wrote: On Sat, Sep 01, 2007 at 04:08:09AM +, Fayland Lam wrote: hi, guys. since I can't touch Cory Watson by [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] so I wonder if this module is fine? No, it's awful

Re: [Catalyst] Catalyst + RHTMLO

2007-09-04 Thread Matt S Trout
:). Maybe if you try and outline what you'd like from an API POV something could be done? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] Re: Catalyst::Plugin::DBIC::QueryLog

2007-09-04 Thread Matt S Trout
:) You're almost there :) Thank God. it works now. :) plz have a check, then I'll commit it to Catalyst trunk and release as a CPAN module. Beautiful. fayland++ -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed

Re: [Catalyst] uri_for adding :443 to URL when HTTPS=on

2007-09-04 Thread Matt S Trout
On Tue, Sep 04, 2007 at 11:24:43PM +1000, Charlie Garrison wrote: Good evening, On 3/9/07 at 7:54 PM +0100, Matt S Trout [EMAIL PROTECTED] wrote: The above error makes sense in the context of frontend/backend apache with rewrite rules. RewriteRule ^/login(.*)$ http

Re: [Catalyst] FastCGI config for standalone mode

2007-09-04 Thread Matt S Trout
maint? It's not like your fcgi server should ever really be down except when you're fucking with the backend DB or whatever -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems

Re: [Catalyst] Should CATALYST_DEBUG suppress manual calls to $c-log-debug()?

2007-09-03 Thread Matt S Trout
On Mon, Aug 27, 2007 at 05:38:26AM -0700, Jonathan Swartz wrote: On Aug 25, 2007, at 3:17 PM, Matt S Trout wrote: On Fri, Aug 24, 2007 at 10:15:37PM +0100, Will Hawes wrote: I've been trying unsuccessfully to disable all debug messages while running tests on my app with prove. Setting

Re: [Catalyst] Weird -d flag and txn_do interaction...

2007-09-03 Thread Matt S Trout
. Therefore the error string I get is something like command ignored until end of transaction block. Something's numifying the $rs thus causing -count to be called. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development

Re: [Catalyst] Is there any way to change the catalyst model parameters at the runtime ?

2007-09-03 Thread Matt S Trout
. Works fine. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com

Re: [Catalyst] uri_for adding :443 to URL when HTTPS=on

2007-09-03 Thread Matt S Trout
://%{HTTP_HOST}:8627/progs/login$1 [P] RewriteRule ^/progs/(.*)$ http://%{HTTP_HOST}:8627/progs/$1 [P] That's kinda broken, it's relying on the request header which a browser could easily cock up. I suspect %{REMOTE_HOST} would be better (see the mod_rewrite docs for more info) -- Matt S

Re: [Catalyst] Attribute::Handlers wont work in own classes under catalyst

2007-09-03 Thread Matt S Trout
. Any code that uses them will randomly break in dynamic loading environments like Catalyst. Please don't file a bug report for this, perl 5.10 introduces a UNITCHECK block type to solve exactly this problem; we can't change the interpreter :) -- Matt S Trout Need help with your

Re: [Catalyst] Catalyst::Plugin::DBIC::QueryLog

2007-09-03 Thread Matt S Trout
for Catalyst::Model::DBIC::Schema instead. (otherwise how do you deal with two DBIC models each with their own querylog etc. etc.) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat

Re: [Catalyst] user maintenance

2007-09-03 Thread Matt S Trout
/ Dev site: http://dev.catalyst.perl.org/ -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http

Re: [Catalyst] Catalyst and Informix

2007-09-03 Thread Matt S Trout
of and willing to send error messages and try DBI tests. (I have no idea how to use RDBO, though Catalyst::Controller::Rose may help you there) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform

Re: [Catalyst] CMS

2007-08-25 Thread Matt S Trout
yet, but I don't imagine our website copy is of great re-use value to anybody else anyway :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] Problem with Catalyst::View::HTML::Template + config file

2007-08-25 Thread Matt S Trout
it didn't since that's not the buggy thing. What you need to be testing it the svn version from: http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-View-HTML-Template -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed

Re: [Catalyst] DBIx question

2007-08-25 Thread Matt S Trout
administrator, which incidentally is me. You're a programmer for a living. You can figure out how to work a mailing list. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd

Re: [Catalyst] Should CATALYST_DEBUG suppress manual calls to $c-log-debug()?

2007-08-25 Thread Matt S Trout
the configuration of your logger whatsoever. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com

Re: [Catalyst] XML RPC Server and RenderView

2007-08-25 Thread Matt S Trout
if it is the correct thing to do, or I'm doing something wrong. I'd do - sub end :Private { my ($self, $c) = @_; $c-forward('render') unless $c-req-xmlrpc-is_xmlrpc_request; } sub render :ActionClass('RenderView') { } Seems a bit cleaner than your approach. -- Matt S Trout Need help

Re: [Catalyst] How do I run finalize_error only if $c-debug is false?

2007-08-22 Thread Matt S Trout
() and what will happen if I want to skip my version under debug. my $c = shift; if ($c-debug) { return $c-NEXT::finalize_error(@_); } rest of your custom finalize_error here -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed

Re: [Catalyst] RFC: Multiple :Chained and/or :PathPart attributes?

2007-08-20 Thread Matt S Trout
correctly, and the controller base class approach seems to work fine for eliminating duplication. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] improving usability / doc

2007-08-17 Thread Matt S Trout
what you're complaining about is presentation though and where things are referenced from. If you send a message to catalyst-dev@ asking for it one of the wiki gnomes will give you access to that and you can re-arrange the order stuff's displayed in to your heart's content. -- Matt S Trout

Re: [Catalyst] t directory hierarchy

2007-08-15 Thread Matt S Trout
and only runs test scripts in the 't' directory. That's the default behaviour. To add subdirs, put tests('t/*.t t/*/*.t'); in your Makefile.PL -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment

Re: [Catalyst] Serving server-dependent static content

2007-08-13 Thread Matt S Trout
a plugin's fine :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com

Re: [Catalyst] Often used templates as method

2007-08-13 Thread Matt S Trout
which resides in the View itself. Something like: Why not just wrap these up into a controller method? $c-forward('/setup_error', [ $title, $message ]); or whatever? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed

Re: [Catalyst] Method to overload per request

2007-08-10 Thread Matt S Trout
. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com/http

Re: [Catalyst] Catalyst Hosting

2007-08-09 Thread Matt S Trout
a recommendation of dreamhost :). -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Matt S Trout
? Ooh. doc patch to View::TT ? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com

Re: [Catalyst] Catalyst Unicode woes ...

2007-08-09 Thread Matt S Trout
and ENCODING: UTF-8 should be enough for most people ... Because (1) we don't control the TT docs, (2) you haven't written the doc patch for the Catalyst docs yet. I agree that you should patch the main manual as well as View::TT docs though :) -- Matt S Trout Need help with your Catalyst

Re: [Catalyst] Multi Mod_Perl apps

2007-08-08 Thread Matt S Trout
. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com/http

Re: [Catalyst] output to tt2 and pdf

2007-08-08 Thread Matt S Trout
on the same page! Example: I create a list of names in the controller bla and bring this list to a web-page via TT: http://search.cpan.org/~andrewf/Template-Latex-2.17/lib/Template/Plugin/Latex.pm TT can make PDFs too. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

[Catalyst] Canonical address changes from rawmode.org - scsys.co.uk

2007-08-08 Thread Matt S Trout
on the DBIC list and keep complaining their sieve configs don't work, so can you all get this done -now- and I'll cut it over later please :) Also, somebody get the cat docs changed and a new manual release ready. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] overload/override sub? (Session::PerUser)

2007-08-07 Thread Matt S Trout
the MyApp package directly - that level of stupidity I haven't seen since Class::DBI::Plugin::* -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] TT macro to avoid excessive $c-uri_for calls

2007-08-07 Thread Matt S Trout
really matters most for my current application. I have this in a global macros.tt2 file: That's why we optimised the living crap out of uri_for. It's more than 10x faster than it used to be. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Catalyst] Reseting a chained action

2007-08-07 Thread Matt S Trout
catalyst ei, please disregard me and start over. Wouldn't it be simpler to have two parallel chains via subclassing, one set chained off '/' and one off the 'approve' action? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed

Re: [Catalyst] How to execute controller at startup

2007-08-07 Thread Matt S Trout
stick to the correct naming conventions for things. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http

Re: [Catalyst] TT macro to avoid excessive $c-uri_for calls

2007-08-07 Thread Matt S Trout
On Tue, Aug 07, 2007 at 01:10:09PM +, Zbigniew Lukasiak wrote: On 8/7/07, Matt S Trout [EMAIL PROTECTED] wrote: That's why we optimised the living crap out of uri_for. It's more than 10x faster than it used to be. Great to hear that. Does it also apply to uri_with? Nobody ever

Re: [Catalyst] Ajax

2007-08-05 Thread Matt S Trout
)); Always, -always- use View::JSON rather than doing the serialisation direct. Otherwise you're writing an 'MC' system not 'MVC' and claco'll start making hammer time jokes again. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed

Re: [Catalyst] accessing methods in another controller?

2007-08-05 Thread Matt S Trout
, but I'd probably push it into the model anyway. Generally the controller should be application control flow logic and very little else. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform

Re: [Catalyst] Catalyst and IPC::Open2

2007-08-04 Thread Matt S Trout
' users: STDOUT and STDERR probably aren't what it expects. Try doing the same save+restore trick I use here - http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Controller-WrapCGI/lib/Catalyst/Controller/WrapCGI.pm -- Matt S Trout Need help with your Catalyst or DBIx::Class

Re: [Catalyst] Test server as a child process

2007-08-01 Thread Matt S Trout
instead is really just testing Catalyst::Engine as well as your code, and we already have a test suite. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-31 Thread Matt S Trout
On Mon, Jul 30, 2007 at 06:19:09PM -0400, Perrin Harkins wrote: On 7/30/07, Matt S Trout [EMAIL PROTECTED] wrote: I used to consider it a neat hack. After some time with the internals, some fun explicitly disabling it within DBIC since it sometimes broke our reconnect code, and even

Re: [Catalyst] Re: Running MyAppB under MyAppA (only for developers)

2007-07-31 Thread Matt S Trout
On Tue, Jul 31, 2007 at 07:23:20PM +0400, Oleg Pronin wrote: Thanks for a lot of usefull answers :) I went through this with you at some length in a different thread, and don't have anything else to add. I guess most other people don't either. -- Matt S Trout Need help with your

[Catalyst] perl survey 2007

2007-07-29 Thread Matt S Trout
http://perlsurvey.org/ Go. Take the survey. The FAQ explains why. I could provide a long explanation but the site has a perfectly good one already :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development

Re: [Catalyst] Using Workflow with Catalyst (was Making Controllers thin and Models thick)

2007-07-29 Thread Matt S Trout
accepted it ); }, ); to my mind. Perhaps it would be worth adding a way of setting up a workflow in code and documenting that first rather than the XML format? (no, being able to use four perl-syntax files instead of four XML files does -not- count from my POV :) -- Matt S Trout

Re: [Catalyst] Use Undo on A List Apart

2007-07-28 Thread Matt S Trout
the appropriate information, saving you needing to call anything at all to make the undo happen. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] unconsistency

2007-07-27 Thread Matt S Trout
(spurious) trick ? I presume you'd want to patch View::XSLT for this, but we're not XML::Lib* experts - you might be better discussing how to handle that on their lists and then come back here and work with us to patch in what you learn? -- Matt S Trout Need help with your Catalyst

Re: [Catalyst] Using Workflow with Catalyst (was Making Controllers thin and Models thick)

2007-07-26 Thread Matt S Trout
in mind. how far off ? I know Yuval's implemented it a couple times; you just storable-ify the workflow object and drop it in a column. Should be a fairly trivial inflate_column call. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant

Re: [Catalyst] YAML Config

2007-07-24 Thread Matt S Trout
supports something like that, so maybe throwing the horror that is YAML out of your app early and moving to .conf would work. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd

Re: [Catalyst] do I need to load Apache::DBI?

2007-07-24 Thread Matt S Trout
has exactly no effect on database connections. It's a web framework. You might not even be using a database. DBIx::Class and Catalyst::Model::DBI both maintain persistent connections themselves though. Apache::DBI is an awful hack and should be avoided where possible. -- Matt S Trout

Re: [Catalyst] YAML Config

2007-07-24 Thread Matt S Trout
. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com/ http

Re: [Catalyst] YAML Config

2007-07-24 Thread Matt S Trout
is a syntax error on all three parsers: var2: *var/subdir var2: *var /subdir etc I didn't find it in specification. YAML::XS is the most advanced Yaml parser supporting Yaml 1.1, but it is not used by Catalyst. If you want it to be, submit patches to Config::Any. -- Matt S Trout Need

Re: [Catalyst] Using Workflow with Catalyst (was Making Controllers thin and Models thick)

2007-07-24 Thread Matt S Trout
the list their opinion and experiences with it? It's an awful horrible piece of shit. Class::Workflow was written by our very own Yuvla Kogman to replace it and works very nicely with Catalyst. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Catalyst] YAML Config

2007-07-24 Thread Matt S Trout
= $var_dir-subdir('log'); $log_file = $log_dir-file('default.log'); .. return +{ map { $_ = ${RGames::ConfigurationSet::$_} } grep { $_ !~ /^BEGIN$/ } keys %{MyApp::ConfigurationSet::} }; : That's both utterly evil and extremely neat. Nice hack. -- Matt S

Re: [Catalyst] Trimming and Quoting Oh My!

2007-07-24 Thread Matt S Trout
returns to keep the damn things to 78 chars -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http

Re: [Catalyst] Gentoo portage overlay

2007-07-23 Thread Matt S Trout
? It looks like somebody took the first tarball I posted on trout.me.uk to checksum rather than the one that was actually released. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat

Re: [Catalyst] Re: [RHTMLO] RDBO/RHTMLO integration with Catalyst - work in progress

2007-07-22 Thread Matt S Trout
to pass on it because it assumed you wanted RDBO as well. Catalyst stuff should really be as non-opinionated as possible - people might want to use RDBO with a different form library too, and it'd be nice for the glue to elegantly support that case as well. -- Matt S Trout Need help

Re: [Catalyst] PATCH: refactor Catalyst::Engine::HTTP::Restarter to standalone module

2007-07-22 Thread Matt S Trout
everybody's had a chance to play with the factored-out code and stabilise it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] PATCH: refactor Catalyst::Engine::HTTP::Restarter to standalone module

2007-07-22 Thread Matt S Trout
And can we move this to the -dev list where it belongs, please? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk

Re: [Catalyst] Re: PATCH: refactor Catalyst::Engine::HTTP::Restarter to standalone module

2007-07-22 Thread Matt S Trout
On Sun, Jul 22, 2007 at 04:30:48PM -0400, Mark Stosberg wrote: Matt S Trout wrote: On Sun, Jul 22, 2007 at 08:58:42AM -0400, Mark Stosberg wrote: Hello, I like the auto-restart feature that is in the Catalyst HTTP::Restarter server. I wanted to use the restarting trick with a project

Re: [Catalyst] Catalyst::Plugin::Authentication::logout() true?

2007-07-22 Thread Matt S Trout
On Sun, Jul 22, 2007 at 01:37:05PM -0700, apv wrote: Should Catalyst::Plugin::Authentication::logout() return something true upon success? I'd more expect an exception on failure. Not being able to log out is an exceptional condition if ever I heard one. -- Matt S Trout Need

Re: [Catalyst] question about sharing models with different applications/hosts

2007-07-19 Thread Matt S Trout
of shared repository for the lib directory, or something else? I'd tend to use one DBIC schema with the domain logic in it and two apps. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform

Re: [Catalyst] Re: [Catalyst-dev] Announce:Catalyst::Plugin::Authentication 0.10000 Released

2007-07-17 Thread Matt S Trout
On Tue, Jul 17, 2007 at 05:33:52PM +0200, Hartmaier Alexander wrote: The Makefile.PL is missing a requirement for Module::Install! No, the dist is missing inc/ And there's already a new version on CPAN that fixes this :) -- Matt S Trout Need help with your Catalyst or DBIx::Class

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

2007-07-17 Thread Matt S Trout
of ActiveState brain damage), so I'm curious now :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http

Re: [Catalyst] question about retrieving all current Controllers

2007-07-16 Thread Matt S Trout
for the 'controllers' method. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com

Re: [catalyst] conditional loading of Controllers and Models

2007-07-16 Thread Matt S Trout
bit for testing. Depends what you're trying to achieve really, and you haven't told us :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] C::P::Session installation error

2007-07-13 Thread Matt S Trout
On Thu, Jul 12, 2007 at 12:51:53AM +0300, Octavian Rasnita wrote: Hi, I have tried to install C::P::Session using the cpan shell, and it gave the following error: Without prove -v output we can't help you. Please stop posting just the 'make test' output. -- Matt S Trout Need

Re: [Catalyst] TT2 + CP::Authentication + DBIC gotcha

2007-07-13 Thread Matt S Trout
-need- a static rather than just a lexically closed-over var is vanishingly small and they can explicitly turn off the behaviour themselves. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform

Re: [Catalyst] DBIC puking on relationships from objects within TT2 but not from stash objects

2007-07-07 Thread Matt S Trout
will work. if you're storing a 'user' object in the session, something like $c-session-{user}-result_source($c-model('DB')-schema-source('User')); will restore the result source. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant

Re: [Catalyst] Ask Catalyst: What are your prefered DB and HTML abstraction layers ?

2007-07-07 Thread Matt S Trout
one-table test app using Catalyst::Controller::Rose, and port one of your current DBIC+FB controllers to DBIC+RHTMLO, and then decide at that point which approach you like better. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant

Re: [Catalyst] using a persistent hash in a model

2007-07-07 Thread Matt S Trout
ad-hoc persistent data out of the database? For a single machine deployment I'd try DBM::Deep -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] including InflateColumn::DateTime

2007-07-06 Thread Matt S Trout
the trick for you (working out which one left as an exercise to the person reading the documentation :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst

Re: [Catalyst] html::prototype syntax in new Cat version

2007-07-05 Thread Matt S Trout
complex applications (and widgets) exists, based on prototype.js. Complex applications can be written using shit tools. It doesn't stop them being shit. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development

Re: [Catalyst] Uniform treatment of all parameters (including file uploads)

2007-07-04 Thread Matt S Trout
On Wed, Jul 04, 2007 at 11:29:12AM +, Zbigniew Lukasiak wrote: On 7/3/07, Matt S Trout [EMAIL PROTECTED] wrote: No, because this would break the ability to pass the request object to something expecting the CGI.pm API, and break compat for existing app code. I think you meant Apache

Re: [Catalyst] Uniform treatment of all parameters (including file uploads)

2007-07-03 Thread Matt S Trout
of them)? No, because this would break the ability to pass the request object to something expecting the CGI.pm API, and break compat for existing app code. Maybe have a think about what you'd like to see from a completely new unified API and propose that? -- Matt S Trout Need help

Re: [Catalyst] How to access current MyApp instance ?

2007-07-01 Thread Matt S Trout
); weaken(MyApp-c); from anywhere: $c = MyApp-c; Congratulations, you just reinvented Catalyst::Plugin::Singleton. You should still be using ACCEPT_CONEXT though. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development

Re: [Catalyst] IDE for use with Catalyst

2007-07-01 Thread Matt S Trout
On Sun, Jul 01, 2007 at 06:50:36PM +0400, Oleg Pronin wrote: OptiPerl does. The coolest IDE for perl i ever seen http://xarka.com Wake me up when they release a version for an OS worth doing dev work on. -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Catalyst] IDE for use with Catalyst

2007-06-30 Thread Matt S Trout
:). If anyone has any suggestions I wold love to hear them. I've not yet found anything that beats four 80x25 xterms running screen plus bash plus vi :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development

Re: [Catalyst] Template rendering error under mod_perl

2007-06-29 Thread Matt S Trout
code while still root. su to the user it runs at and try to cd into the MyApp dir and cat a template file. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat Systems Ltd. Contact

Re: [Catalyst] Template rendering error under mod_perl

2007-06-29 Thread Matt S Trout
/root/forms, yet search.fb is most definitely present in /home/raj/www/apps/MyApp/root/forms. All root sub-dir files set to 0644 permissions, with user/group set to same as other web files. What gives? The directory needs to be 755. -- Matt S Trout Need help with your Catalyst

Re: [Catalyst] Proper way to perform cleanups on server shutdown?

2007-06-27 Thread Matt S Trout
} doesn't seem to do it. DESTROY doesn't seem to every get called. Add some better traces - I suspect this is either (a) a DBIC problem fixed in 0.08 or (b) a problem that isn't that you didn't give us a test case for yet :) -- Matt S Trout Need help with your Catalyst or DBIx::Class

Re: [Catalyst] instantiating persistent DBHs: MyApp.pm? Model?

2007-06-25 Thread Matt S Trout
and match DBIC and legacy/specialised stuff and still have a single DB connection. But hell, if it works for now, sorted :D -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical DirectorWant a managed development or deployment platform? Shadowcat

  1   2   3   4   5   6   >