Re: [Catalyst] create controller helper

2010-01-10 Thread Tomas Doran
On 10 Jan 2010, at 11:36, Kiffin Gish wrote: Turns out that make_immutable doesn't always return a true value: make_immutable returns a true value _if_ the class has been made immutable. If it's already immutable then it won't.. So I guess you have make_immutable twice in the same package

Re: [Catalyst] Re: Various ways to use c.uri_for

2010-01-10 Thread Tomas Doran
On 10 Jan 2010, at 07:51, Octavian Rasnita wrote: I hope it is OK (made under Windows...) Spot on. Thank you very much :) Applied with attribution and changelog entry as r12596. http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=12596 Cheers t0m ___

Re: [Catalyst] create controller helper

2010-01-10 Thread Tomas Doran
On 10 Jan 2010, at 11:36, Kiffin Gish wrote: Turns out that make_immutable doesn't always return a true value: make_immutable returns a true value _if_ the class has been made immutable. If it's already immutable then it won't.. So I guess you have make_immutable twice in the same package

Re: [Catalyst] Re: Various ways to use c.uri_for

2010-01-10 Thread Tomas Doran
On 10 Jan 2010, at 07:51, Octavian Rasnita wrote: I hope it is OK (made under Windows...) Spot on. Thank you very much :) Applied with attribution and changelog entry as r12596. http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=12596 Cheers t0m ___

Re: [Catalyst] Re: Various ways to use c.uri_for

2010-01-09 Thread Tomas Doran
On 9 Jan 2010, at 20:35, Octavian Rasnita wrote: (Maybe the docs could be a little more clear, because this is a great feature.) Please supply a doc patch? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin

Re: [Catalyst] Upgraded to Catalyst 5.80016, restarting dev server with HUP crashes

2010-01-09 Thread Tomas Doran
On 6 Jan 2010, at 06:13, Jim Dread wrote: I tried getting some argv in there by giving arguments to the server script, but it didn't fix it. So I edited HTTP.pm to this: #exec $^X, $0, @{ $options->{argv} || [] }; And now it restarts okay when HUPed. Did I do something wrong or is

Re: [Catalyst] C::V::Email::Template cannot send data ...

2010-01-09 Thread Tomas Doran
On 9 Jan 2010, at 15:53, Kiffin Gish wrote: Can't send data That error is caused when you make an SMTP connection, but your mail server rejects the message for some reason. Use wireshark & tcpdump to work out what's actually going down the wire between your app and the mail server? Ch

Re: [Catalyst] myapp_fastcgi.pl does not run in background

2010-01-09 Thread Tomas Doran
On 5 Jan 2010, at 12:28, Emmanuel Quevillon wrote: On 01/05/2010 12:51 PM, Андрей П. Ковбович wrote: Hi, try this option: --detach Hi, That solved my problem. But it could be good to change it from the help message which is still : This is a regression and has been fixed in trunk. I

Re: [Catalyst] create controller helper

2010-01-09 Thread Tomas Doran
On 9 Jan 2010, at 11:35, Kiffin Gish wrote: Yes you're right, I overlooked the presence namespace::autoclean at the top. Checked out the documentation but don't quite understand the difference with namespace::clean. Is the latter the same as auto except then more explicit in that only nam

Re: [Catalyst] create controller helper

2010-01-08 Thread Tomas Doran
On 8 Jan 2010, at 19:48, Kiffin Gish wrote: When I call 'script/myapp_create.pl controller Base' it creates the module Base.pm with the following statement: BEGIN { extends 'Catalyst::Controller'; } What's the advantage of doing this? Are there any times one would NOT want to place it within

Re: [Catalyst] proper flow control with $c->foward, in search of greater grok

2010-01-08 Thread Tomas Doran
Bill Moseley wrote: On Fri, Jan 8, 2010 at 6:55 AM, Tomas Doran <mailto:bobtf...@bobtfish.net>> wrote: $c->response->redirect($c->uri_for("/user/$user_id/blog/$blog_id/entry/list")); Eww, don't do that. You want $c->response->

Re: [Catalyst] proper flow control with $c->foward, in search of greater grok

2010-01-08 Thread Tomas Doran
Dennis Daupert wrote: It seems that when chained path parts increase beyond two links, addressing actions directly doesn't work quite as well. For example, I have these: User.pm User::Blog.pm User::Blog::Entry.pm After I add an entry to blog 'x' for user 'y', I can transport over to the entr

Re: [Catalyst] uri_with and ACCEPT_CONTEXT

2010-01-08 Thread Tomas Doran
Dermot wrote: use parent 'Catalyst::Model::Factory'; use Moose; use namespace::autoclean; Ewww. Use Moose, or don't - don't use both parent.pm and Moose.. __PACKAGE__->config( class => 'MyApp::Local::Class', args=> { arg=> $self->arg}; # Global symbol "

Re: [Catalyst] proper flow control with $c->foward, in search of greater grok

2010-01-04 Thread Tomas Doran
On 4 Jan 2010, at 19:48, Tommy Butler wrote: # FORWARDING WITH URL SYNTAX $c->forward('/groceries/vegetables/carrots'); No, there is no such thing as forwarding to a URL. You forward to a 'private path'. This may, or may not correspond to a dispatchable URI. # FORWARDING WITH ARGUMENTS

Re: [Catalyst] C::P::Authentication, force user authentication

2009-12-28 Thread Tomas Doran
On 28 Dec 2009, at 09:16, Ben van Staveren wrote: Warning: I use this myself, it seems to work, but it's a hack. YMMV. Standard disclaimer applies. I.e. It is very much relying on an implementation detail which I/we can and _will_ feel free to change at our leisure if needed. The solution

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-22 Thread Tomas Doran
On 22 Dec 2009, at 08:15, Bernhard Graf wrote: Woah! I wasn't aware, that this was possible. This is so cool! t0m, you are my hero! You can me my hero too - work out where in the docs that _should be_ so people actually find it (It IS documented!), submit a patch :) Cheers t0m _

Re: [Catalyst] catalyst request path and apache rewrites

2009-12-22 Thread Tomas Doran
On 18 Dec 2009, at 13:38, William Wueppelmann wrote: I have the following rules configured for my virtual host in apache: RewriteCond %{REQUEST_URI} !^/foo/bar RewriteRule ^/(.*)$ /foo/bar/$1 [PT] Alias / /Path/To/MyApp/script/myapp_fastcgi.pl/ In other words, I want a request to http://myserv

Re: [Catalyst] Perl code attributes in Moose roles

2009-12-21 Thread Tomas Doran
On 19 Dec 2009, at 22:47, Bernhard Graf wrote: Where can I add the ACL attributes for edit_new? Add them via config. See: http://blogs.perl.org/users/guillermo_roditi1/2009/12/reaction-and-crud-implemented-in-roles.html http://www.catalystframework.org/calendar/2008/11 Cheers t0m

Re: [Catalyst] Bug in latest Catalyst::Runtime?

2009-12-18 Thread Tomas Doran
On 18 Dec 2009, at 14:24, Hakim Cassimally wrote: 2009/12/18 Florian Ragwitz : On Fri, Dec 18, 2009 at 12:53:52PM +0200, Octavian Râşniţă wrote: I found that in Catalyst::Runtime 5.80016 the following error still appears when there is a bug in the current application: Yes, that's a regres

Re: [Catalyst] catalyst request path and apache rewrites

2009-12-18 Thread Tomas Doran
On 18 Dec 2009, at 19:07, William Wueppelmann wrote: Thanks, but I am already using 5.80016. My suspicion is that the problem actually lies somewhere between apache and fastcgi, but I really don't know. A request for '/' gets mapped to '/foo/bar' and processed correctly, but everything els

Re: [Catalyst] FastCGI fails with file extension mapped configuration for IIS

2009-12-18 Thread Tomas Doran
On 18 Dec 2009, at 17:28, Stuart Watt wrote: The documentation implies that a wildcard mapping is recommended (although this is not supported by IIS5). I suspect the algorithm is completely correct on IIS6/7 with a wildcard mapping. Sounds like a reasonable conclusion. Is this likely to

Re: [Catalyst] catalyst request path and apache rewrites

2009-12-18 Thread Tomas Doran
On 18 Dec 2009, at 13:38, William Wueppelmann wrote: I am developing my first serious catalyst application and am so far finding the application development pretty straightforward, but I am having a really frustrating deployment problem. I am trying to run my catalyst app using fastcgi thro

Re: [Catalyst] Renaming a Catalyst Application

2009-12-16 Thread Tomas Doran
On 17 Dec 2009, at 01:07, Tom Stall wrote: I guess you also found a couple of things missing which weren't listed as dependencies in Makefile.PL? Are these the ones mentioned in an earlier thread? Erm, they're the ones you added to your app as you wrote it.. Not at the point where I know

Re: [Catalyst] Renaming a Catalyst Application

2009-12-16 Thread Tomas Doran
On 17 Dec 2009, at 00:26, Tom Stall wrote: There is a lot of Auto-Magical behavior in Catalyst and the helper scripts; or so it seems. Not really, all the scripts generated have the name of the application buried in them, and then (assuming you're using a checkout) they'll automatically

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Tomas Doran
On 16 Dec 2009, at 22:16, Octavian Râsnita wrote: Using fastcgi under Windows is harder, and I don't even know if it can run as an ExternalServer. Yes, it totally can, however not on a local socket tcp-ip only. But dynamic FCGI Catalyst works out the box with IIS if you want the easiest op

Re: [Catalyst] Renaming a Catalyst Application

2009-12-16 Thread Tomas Doran
On 16 Dec 2009, at 20:57, Tom Stall wrote: Or, barring that, is it possible to update the scripts, (using the catalyst.pl helper script), when they still have the "MyApp" name prefix, in a top level directory of a different name? I might try a link: ln -s OfficialSoundingProductionApp MyApp

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Tomas Doran
On 16 Dec 2009, at 21:33, Stuart Watt wrote: Since on Windows both types of fork are emulated in Perl, whether in mod_perl or in the FCGI process manager, I guess the performance is almost equivalent. (Is this true? -- anybody benchmarked the two??) No idea. Does it matter? Given your pro

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Tomas Doran
On 16 Dec 2009, at 21:00, Stuart Watt wrote: FastCGI allows you to move Perl processes outside Apache, so they are wholly independent of each other, and no longer require any binary compatibility. The downside is that you don't memory sharing, which you get with prefork, especially on pla

Re: [Catalyst] Apache + mod_perl + Digest-SHA fails

2009-12-16 Thread Tomas Doran
I did have FastCGI working. I switched because the Catalyst Cookbook recommended mod_perl. I'll try that again. Where, exactly? Could you please point out the specific section so I can GO BEAT IT WITH A STICK. A STICK WITH RUSTY NAILS HAMMERED THROUGH IT. Thanks in advance. t0m __

Re: [Catalyst] go to chained action

2009-12-16 Thread Tomas Doran
On 16 Dec 2009, at 13:18, Alex Povolotsky wrote: Hello! Having, for example, /controller/*/action handled by /controller/ base (1) => /controller/action, how do I write correct go to / controller/argument/action ? just $c->go('/controller/argument/action') does not work. $c->go('/ control

Re: [Catalyst] Sub-classing Application

2009-12-16 Thread Tomas Doran
On 16 Dec 2009, at 18:22, Bill Moseley wrote: Means I need to make mostly duplicate and empty controllers for both Foo and Bar applications but seems like a reasonable price to pay. An (or, in fact, two!) alternate solutions: 1) Keep the controllers as they are in your first app, then do s

Re: [Catalyst] Sub-classing Application

2009-12-16 Thread Tomas Doran
On 16 Dec 2009, at 17:27, Bill Moseley wrote: It also means I can't easly overide. If I have hello() in both thes controllers: Foo::Controller::Whatever::hello() Bar::Controller::Whatever::hello() I then get: [debug] Loaded Path actions: .- +---

Re: [Catalyst] Catalyst::Script::FastCGI ignores --daemon option (internally it is --detach)

2009-12-15 Thread Tomas Doran
On 15 Dec 2009, at 05:39, Toby Corkindale wrote: As of Catalyst::Runtime 5.8.16, Catalyst::Script::FastCGI is buggy and ignores the --daemon option. Looking at the source, I think it is mistakenly looking for -- detach, although it is documented as wanting --daemon. Fixed in subversion h

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80016

2009-12-11 Thread Tomas Doran
Evening (or insert relevant time zone here). I'm happy to announce the next release of Catalyst-Runtime (5.80016). This release mainly fixes regressions introduced with the new script system. Upgrading to the new scripts requires the latest Catalyst- Devel package (1.24), and choosing to reg

Re: [Catalyst] How to join catalyst dev server?

2009-12-11 Thread Tomas Doran
On 11 Dec 2009, at 06:47, Андрей П. Ковбович wrote: It's not a bug, it's a feature :) No. It is a bug. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http:

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-12-10 Thread Tomas Doran
Wade Stuart wrote: How about making it skip that code for default behavior and a config var check to re-enable the backcompat behavior with bytes::length. I think you're confused. The bytes::length thing is already fixed (in 015). It's the having upgraded characters in a header issue which is

Re: [Catalyst] Partial page cache plugin

2009-12-09 Thread Tomas Doran
On 9 Dec 2009, at 02:51, Peter Karman wrote: I guess I'm saying that I'd be happy to have a go at some patches if I had some sense of what isn't working for people with the current design. Consider this a general gripe request. :) As far as I'm aware, most issues with the general cache pl

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-12-08 Thread Tomas Doran
On 8 Dec 2009, at 05:34, Jonathan Rockway wrote: Sorry to dig up a very old thread, but I am very behind on email and wanted to comment :) No problem. Your insight as to why things are they way they are is useful :) I was shocked to discover this! Any code that uses bytes::length is auto

Re: [Catalyst] Partial page cache plugin

2009-12-07 Thread Tomas Doran
On 7 Dec 2009, at 22:10, Peter Karman wrote: Tomas Doran wrote on 12/07/2009 03:48 PM: I don't see why there needs to be anything CHI specific? (But I'd welcome doc patches / wiki / advent articles showing how to use CHI). strangely, I'm experiencing deja vu all over

Re: [Catalyst] Partial page cache plugin

2009-12-07 Thread Tomas Doran
On 7 Dec 2009, at 21:31, Octavian Râsnita wrote: But by the way, I've seen that there are no CHI plugins for Catalyst even though CHI seems to be an improved version of the Cache module. Of _which_ cache module? CHI is a cache framework which has the same interface as other Cache:: modul

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80015

2009-12-06 Thread Tomas Doran
On 6 Dec 2009, at 16:23, kmx wrote: sorry for making troubles, but could you please revert this commit No trouble at all. Will do. Thanks for the help testing. To sum up: - please revert 12210 - I will do more Win32 testing with the current trunk Brilliant, thank you very much :) Cheers

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80015

2009-12-06 Thread Tomas Doran
On 4 Dec 2009, at 13:59, kmx wrote: Hi, here is a patch that solves a part of the problem: Thanks, applied in r12209. The issue was initially described in the thread 'Avoiding UTF8 in Catalyst': http://lists.scsys.co.uk/pipermail/catalyst/2009-November/023912.html , and Aristotle's messa

Re: [Catalyst] RESTful client

2009-12-03 Thread Tomas Doran
On 4 Dec 2009, at 00:25, Sungsam Gong wrote: OK, let me just clarify my question to narrow down the problem. How does your catalyst application consume remote web services, especially for RESTful? As noted, if at all possible, I don't consume them direct from my application (due to latency

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80015

2009-12-03 Thread Tomas Doran
On 3 Dec 2009, at 13:11, Octavian Râsnita wrote: From: "Tomas Doran" Hiya. I'm pleased to announce a new stable release of Catalyst-Runtime (5.80015). This release mainly wraps up the new features and bugfixes previewed in 5.80014_01 and 5.80014_02. I've tried

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80015

2009-12-03 Thread Tomas Doran
On 3 Dec 2009, at 14:46, Bernhard Graf wrote: Concerning encoding problems with FastCGI I don't see any improvement. Esp. the problem that was discussed in the thread starting with http://lists.scsys.co.uk/pipermail/catalyst/2009-November/023907.html still exists, even though it would be reall

Re: [Catalyst] How to execute a script

2009-12-03 Thread Tomas Doran
On 3 Dec 2009, at 12:00, Jose Luis Martinez wrote: Note: I'm using the devel server in forked mode, and using a quite old Catalyst (debian etch distro). This was fixed in 5.8000_06 (ergo the first 5.80 stable release on 2009-04-18). Cheers t0m ___

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80015

2009-12-02 Thread Tomas Doran
Hiya. I'm pleased to announce a new stable release of Catalyst-Runtime (5.80015). This release mainly wraps up the new features and bugfixes previewed in 5.80014_01 and 5.80014_02. Significant changes are for people running FastCGI - paths containing special characters and Unicode issues

Re: [Catalyst] RESTful client

2009-12-02 Thread Tomas Doran
On 2 Dec 2009, at 12:12, Sungsam Gong wrote: How do you guys implement your client? If at all possible, outside my web application. Waiting for page builds whilst calling out to a remote HTTP service implicitly ties your site's best case performance of that of the remote web service, whic

Re: [Catalyst] View::TT render_output disappeared?

2009-12-01 Thread Tomas Doran
Emmanuel Quevillon wrote: I'd like to render output of some template inside my catalyst application. I remembered that it did exist a method called 'render_output' that allow edit. However in Catalyst::View::TT this method seems to have disappeared. Nope, you're just thinking of the render meth

[Catalyst] [ANNOUNCE] Call for testers - Catalyst Runtime 5.80014_02 - More FCGI changes.

2009-11-30 Thread Tomas Doran
I'd like to announce the second (and hopefully final) development release, before the next stable version, Catalyst 5.80014_02. This release has an important fix for the CGI and FastCGI engines to do with parsing path parts in the case where you have encoded slashes in the URI (e.g. http://

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-11-30 Thread Tomas Doran
Apologies for replying to myself - late night and I'm getting confused. On 1 Dec 2009, at 02:21, Tomas Doran wrote: Any chance of a confirmation that this is fixed in Catalyst for you (or not)? http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-Runtime-5.80014_01.tar.gz

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-11-30 Thread Tomas Doran
On 23 Nov 2009, at 22:20, Tomas Doran wrote: On 23 Nov 2009, at 18:24, Marc SCHAEFER wrote: On Mon, Nov 23, 2009 at 05:43:25PM +0100, Aristotle Pagaltzis wrote: I had an IRC convo with Tomas Doran last night and explained the problem to him. He knocked out some tests for the broken

Re: [Catalyst] Request: Wrong Content-Length value: 2628941

2009-11-30 Thread Tomas Doran
On 15 Nov 2009, at 16:07, Tomas Doran wrote: I suppose if $buffer just happened to be zero. Probably should be checking defined there. Yep, that should be fixed. This has been fixed in trunk, r12100 http://dev.catalystframework.org/svnweb/Catalyst/revision?rev=12100 Does that look

Re: [Catalyst] Re: Supressing passwords in debug messages

2009-11-30 Thread Tomas Doran
On 14 Nov 2009, at 22:03, Brian Phillips wrote: I don't recall any remaining changes that have been suggested that weren't implemented. t0m, I'm guessing that branch is pretty stale by now. Can we rebase or merge the current mainline to make sure it still works with the current state of Cataly

Re: [Catalyst] Gitalist arrives on CPAN

2009-11-27 Thread Tomas Doran
On 27 Nov 2009, at 05:50, Jacob Helwig wrote: Is there anything that explains what the color bars under the SHA-1 hashes mean? Not as far as I know, please log a bug: http://github.com/broquaint/Gitalist/issues Cheers t0m ___ List: Catalyst@lis

Re: [Catalyst] Gitalist arrives on CPAN

2009-11-26 Thread Tomas Doran
On 27 Nov 2009, at 01:33, Ævar Arnfjörð Bjarmason wrote: Is there a demo site? I've got a copy sat in my public_html directory: http://goatse.co.uk/~bobtfish/Gitalist/script/gitalist.fcgi/ Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo

Re: [Catalyst] local helper?

2009-11-25 Thread Tomas Doran
Octavian Râşniţă wrote: because myapp_create.pl doesn't add the local lib to @INC so it can't find it. Why would you want the helper in your application? I can't think of any task where an app-specific helper would be any use.. Cheers t0m ___ Lis

Re: [Catalyst] namespace problem

2009-11-25 Thread Tomas Doran
Octavian Râsnita wrote: Is there any tutorial for using Moose roles in Catalyst? http://search.cpan.org/~flora/Catalyst-Runtime-5.80014/lib/Catalyst/Upgrading.pod#Moose_features http://search.cpan.org/~hkclark/Catalyst-Manual-5.8002/lib/Catalyst/Manual/CatalystAndMoose.pod http://search.cpan.

Re: [Catalyst] Organize tests in sub-directories

2009-11-25 Thread Tomas Doran
On 24 Nov 2009, at 20:31, Octavian Râşniţă wrote: I would like to structure the t directory as lib/MyApp is structured. Is it possible to be able to configure the app somehow so `make test` checks all the test files even if they are in sub- directories? Yes, you just say something like: t

[Catalyst] [ANNOUNCE] CALL FOR TESTING Catalyst-Runtime 5.80014_01

2009-11-23 Thread Tomas Doran
Hot on the heels of Catalyst-Runtime 5.80014, I'd like to announce a development release, Catalyst 5.80014_01. This release has a potentially behavior changing fix for the CGI and FastCGI engines to do with outputting UTF-8. This fixes a serious bug with outputting utf-8 pages using Catalys

Re: [Catalyst] Re: Unicode trouble with Catalyst::Engine::FastCGI

2009-11-23 Thread Tomas Doran
On 23 Nov 2009, at 21:15, Aristotle Pagaltzis wrote: * Bernhard Graf [2009-11-23 20:00]: Aristotle Pagaltzis schrieb: While this fixes the problem, it is still unclear, why the utf8 flag is set for the whole buffer. It shouldn’t matter. But it does. yes, because ::FastCGI is broken. :-

Re: [Catalyst] Re: Avoiding UTF8 in Catalyst

2009-11-23 Thread Tomas Doran
On 23 Nov 2009, at 18:24, Marc SCHAEFER wrote: On Mon, Nov 23, 2009 at 05:43:25PM +0100, Aristotle Pagaltzis wrote: I had an IRC convo with Tomas Doran last night and explained the problem to him. He knocked out some tests for the broken Thank you for your time! It's nice to se

Re: [Catalyst] How to reduce the memory footprint?

2009-11-23 Thread Tomas Doran
On 23 Nov 2009, at 18:18, Julien Sobrier wrote: Hello, I have quite a small Catalyst application that runs with FastCGI + FCGI::ProcManager::MaxRequests I run 5 instances of FastCGI. Each instance was taking about 90MB of memory. I tried to reduce the memory fooprint by reducing the numb

Re: [Catalyst] call of the dbd disconnect method via catalyst model

2009-11-23 Thread Tomas Doran
christian4catal...@lists.muthpartners.de wrote: Can me someone say, where i can, who i can close the dbd-connection in line 09, so that line 10 reopen the connection. 01 sub foo 02 { 03 my ( $self, $c ) = @_; 04 my $model = $c->model('DB::TABLE') ; 05 my

[Catalyst] [ANNOUNCE] Catalyst 5.800014

2009-11-21 Thread Tomas Doran
I'm pleased to announce that the latest maintenance release of Catalyst 5.80 is available from a CPAN mirror near you. This release is the result of just over two months work and includes an number of bugfixes and cleanups. Of note, the case_sensitive setting is now deprecated - if anyone i

Re: [Catalyst] data access trough mysql stored procedures

2009-11-21 Thread Tomas Doran
On 21 Nov 2009, at 01:18, Eisenberger Tamás wrote: So the question is that: Can I tell dbix::class somehow to use my stored procedures for it's select, insert, update and delete actions? Yes, you can. Please ask on the DBIx::Class list or see the fine documentation[1]. Cheers t0m 1: ht

Re: [Catalyst] Strange warning...

2009-11-20 Thread Tomas Doran
On 20 Nov 2009, at 18:40, Steve Rippl wrote: it stops warning me. Not sure where I got the idea to put WsdSis::Controller::Sections (with the plural would help), so it's wrong to pass in a full class name? Yes. On Fri, 2009-11-20 at 18:19 +0000, Tomas Doran wrote: I note that me

Re: [Catalyst] Strange warning...

2009-11-20 Thread Tomas Doran
Rippl, Steve wrote: Hi, Catalyst version 5.80011 This line... $c->response->redirect($c->uri_for($c->controller('WsdSis::Controller::Section')->action_for('list'))); is giving me this warning... [warn] Used regexp fallback for $c->controller('WsdSis::Controller::Section'), which found 'WsdSi

Re: [Catalyst] Catalyst & E-Commerce

2009-11-18 Thread Tomas Doran
goetz wrote: A marriage between Interchange and Catalyst would be very helpfull for perl ! Well volunteered. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: ht

Re: [Catalyst] Request: Wrong Content-Length value: 2628941

2009-11-15 Thread Tomas Doran
On 15 Nov 2009, at 14:55, Bill Moseley wrote: I see this error every once in a while. It does not seem like an aborted connection (I get a different error for that). Is there any other reason why the read() method might returning false before done. while ( my $buffer = $self->read

Re: [Catalyst] show_internal_actions => 1

2009-11-15 Thread Tomas Doran
On 15 Nov 2009, at 13:09, Kiffin Gish wrote: On Sun, 2009-11-15 at 03:07 -0800, Jacob Helwig wrote: Unless that's a typo in "show_internal_actions => 0", then you probably haven't actually enabled it. I'm guessing you actually want "show_internal_actions => 1". Yes that's a typo. Should be

Re: [Catalyst] attrs for DBIx::Class::Row

2009-11-15 Thread Tomas Doran
On 15 Nov 2009, at 11:20, Octavian Râşniţă wrote: After I constructed a resultset object, I can get the hash of attributes used for generating it using: my $attrs = $rs->{attrs} Erm, this is a bad move, you're breaking abstraction here.. But if I get a row object from that resultset, I ca

Re: [Catalyst] Re: Supressing passwords in debug messages

2009-11-14 Thread Tomas Doran
On 13 Nov 2009, at 21:03, Geoff Flarity wrote: Bump. Anyone know the status of this feature? Even if it was available only as plugin it was would be incredibly useful. http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Runtime/5.80/branches/param_filtering I'm struggling to remember whe

Re: [Catalyst] Adding controllers to an app from a plugin

2009-11-07 Thread Tomas Doran
On 7 Nov 2009, at 20:06, Edmund von der Burg wrote: Is there already code on CPAN that helps me inject my plugin controller into the app? Is there a better way to do this? Should I rip out the smarts from C::P::AutoCRUD and make them reusable (and if so what should it be called)? You're after

Re: [Catalyst] Question about C:P:Unicode(::Encoding)

2009-11-05 Thread Tomas Doran
On 5 Nov 2009, at 21:31, Bill Moseley wrote: In general, I think the right place to do the decoding is as close to the "edge" of the program as possible. That might mean HTTP::Body -- or in the Engine code for query params. But, I haven't looked at it. Where do you think that "edge" woul

Re: [Catalyst] Question about C:P:Unicode(::Encoding)

2009-11-05 Thread Tomas Doran
On 5 Nov 2009, at 05:04, Bill Moseley wrote: Great! And nice work on the upload file names. For that, you can thank Masahiro Chiba, that part was his patch :) I've been using Data::Visitor::Callback to decode the parameters. Not sure if it's any better, but then the keys are decoded as

Re: [Catalyst] Question about C:P:Unicode(::Encoding)

2009-11-04 Thread Tomas Doran
On Sat, Oct 24, 2009 at 1:26 PM, Bernhard Graf > wrote: These plugins hook into prepare_parameters() to decode data. Why does it leave query_- and body_parameters untouched? Always seemed like a bug to me. I agree. I've also taken some of your other thoughts onboard. I've just sent 0.5 to

Re: [Catalyst] Catalyst::Runtime dependency

2009-11-04 Thread Tomas Doran
On 4 Nov 2009, at 11:39, Jose Luis Martinez wrote: I thought it could have to do with some module not having a strict enough dependency set, so I made a guess and cpanned HTTP::Response. That updated my libwww-perl, and got all tests running OK. Just wanted to let the list know about it..

Re: [Catalyst] auto method never triggered

2009-10-31 Thread Tomas Doran
On 31 Oct 2009, at 05:10, Julien Sobrier wrote: Whether I access / or /admin, I don't see any log from any of the auto functions, but I do see it from the begin fuctions. I am wondering what I am missing. Unsure. Can you attach the debug log of your application startup and the debug l

Re: [Catalyst] Re: Debian recommendation

2009-10-29 Thread Tomas Doran
On 29 Oct 2009, at 15:23, Bogdan Lucaciu wrote: On Wed, Oct 28, 2009 at 7:37 PM, Alexander Hartmaier wrote: Is building a package for every perl module (not only cpan, private too) really of help and not just a waste of time? If you add them to the Debian repo you'll be the hero of all th

Re: [Catalyst] Debian recommendation

2009-10-28 Thread Tomas Doran
On 27 Oct 2009, at 13:53, Buchan Milne wrote: I am prepared to package other Catalyst modules for Mandriva on request. Can you package (the latest version of) every Catalyst module in my CPAN directory which isn't marked as DEPRECATED please? Cheers t0m ___

Re: [Catalyst] Request

2009-10-28 Thread Tomas Doran
On 27 Oct 2009, at 21:16, Octavian Râsnita wrote: I didn't know that c.req.uri is not just a string, but an object that has its own methods, and c.req.uri.path_query was the one I needed. http://search.cpan.org/~flora/Catalyst-Runtime-5.80013/lib/Catalyst/ Request.pm#$req-%3Euri > $req

Re: [Catalyst] Unicode in request captures

2009-10-28 Thread Tomas Doran
On 27 Oct 2009, at 10:29, Bernhard Graf wrote: I think that your patch may be a little too enthusiastic about encoding as it is currently, but also looks like a reasonable first attempt. hmm, what do you mean with too enthusiastic? I mean may encode too much - so, for example, people worki

Re: [Catalyst] Unicode in request captures

2009-10-27 Thread Tomas Doran
On 24 Oct 2009, at 23:13, Bernhard Graf wrote: While I am at encoding issues in Cat ... I filed a bug report together with patch and test about Unicode characters in request captures more than two weeks ago: https://rt.cpan.org/Public/Bug/Display.html?id=50339 It would be great if someone co

Re: [Catalyst] Serialize a resultset?

2009-10-27 Thread Tomas Doran
On 27 Oct 2009, at 07:21, Octavian Râşniţă wrote: Hi, Can a DBIC resultset be serialized in order to be stored in the cache? This is a dbix::class question, not a Catalyst question. But, nonetheless, why not just use DBIx::Class::ResultClass::HashRefInflator Cheers t0m _

Re: [Catalyst] IE6 shows page cannot be displayed

2009-10-20 Thread Tomas Doran
On 20 Oct 2009, at 19:51, Ascii King wrote: Alexander Hartmaier wrote: Maybe HTTP::Server::Simple? The Changelog mentions win32 in the revisions from April. I did suspect that one, but I was updating groups at a time and then testing, so I can't be sure. Can you _downgrade_ that release

Re: [Catalyst] Debian recommendation

2009-10-17 Thread Tomas Doran
On 17 Oct 2009, at 13:38, Octavian Râşniţă wrote: Can you tell me more about this last step? I have tried to put in Makefile.PL: use FindBin; use local::lib "$FindBin::Bin/support"; But when I run it, it still tries to write to /var/www which is the home dir of www-data user (the current u

Re: [Catalyst] Debian recommendation

2009-10-16 Thread Tomas Doran
Octavian Râşniţă wrote: Good idea. Is there a way of using Makefile.PL of the application to automaticly install all the dependencies using local::lib? perl Makefile.PL && make install HTH t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://l

Re: [Catalyst] I'm getting wrong uri_for

2009-10-13 Thread Tomas Doran
Oleg Pronin wrote: I rendered tt2 template from offline script (mail template). On catalyst 5.7 i made a "fake" object i.e. $c = new MyApp(); and set $c->request/response etc. for the code to work as in request with no differences. But the way i initialized Request object is no longer working on

Re: [Catalyst] Choosing the language

2009-10-12 Thread Tomas Doran
On 12 Oct 2009, at 22:30, Octavian Râşniţă wrote: Is there a recommendation for storing the language ID in the URL in order to be as easy to get it from there? Catalyst::TraitFor::Request::PerLanguageDomains Cheers t0m ___ List: Catalyst@lists.sc

Re: [Catalyst] Adding default query parameters to generated links.

2009-10-12 Thread Tomas Doran
On 12 Oct 2009, at 21:36, Bill Moseley wrote: What do you recommend? Override uri_for() and make sure that every URI generated includes the query paramters, even links within the Catalyst part that will not use the parameters? I'd very likely go with this myself. You can apply it as a rol

Re: [Catalyst] I'm getting wrong uri_for

2009-10-12 Thread Tomas Doran
Oleg Pronin wrote: Holy shit! i'm an asshole. That template was rendered in offline script :-) Strange... how did that work on Catalyst 5.7 ?:-) Huh? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/

Re: [Catalyst] I'm getting wrong uri_for

2009-10-12 Thread Tomas Doran
Oleg Pronin wrote: Hello. I upgraded to Catalyst 5.8 (5.80013) and i've got problem with uri_for. It warns Explicit blessing to '' (assuming package main) at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 1281. Becase $c->req->base is empty. I'm not using custom Request object. Any id

Re: [Catalyst] Catalyst benchmark 5.7 vs 5.8 - new test

2009-09-29 Thread Tomas Doran
On 29 Sep 2009, at 22:12, Oleg Pronin wrote: 5.8 !!TWICE!! slower at startup than 5.7 under any perl version. This is annoying because i have 100 models and i do not want to wait 10 secs while it is starting in debug. Patches welcome to optimise things for your wacky use-case given appropr

Re: [Catalyst] Catalyst benchmark 5.7 vs 5.8 - new test

2009-09-29 Thread Tomas Doran
Toby Corkindale wrote: It's interesting to note the headline figures have 5.71 performing 316 tps, vs 5.80 making only 283 tps. The very important thing you haven't noted (unless I missed it) is what perl version this benchmark was conducted under. Some benchmarking was done before 5.8 was r

Re: [Catalyst] Re: Catalyst benchmark 5.7 VS 5.8

2009-09-29 Thread Tomas Doran
Fayland Lam wrote: Tomas Doran wrote: top totally doesn't show how much RAM is shared by copy on write at all, and so is misleading you here. do you know how to do a real benchmark? the siege result shows 5.7 is better under pressure. I didn't actually do any 'real' b

Re: [Catalyst] Catalyst benchmark 5.7 VS 5.8

2009-09-29 Thread Tomas Doran
Tobias Kremer wrote: and I hope that 3480 is really not the amount of memory that is shared because that'd be quite low. Shared memory indicates things which are shared at a library linking level (e.g. libc is a shared object which both processes will share). This has nothing to do with the

Re: [Catalyst] Catalyst::Controller::REST JSON Serialization/Encoding Problem

2009-09-28 Thread Tomas Doran
Alejandro Imass wrote: Well, that's it for now, but I can verify that by using to_json it actually solves my encoding problems. Well, I have this working fine for me in my environment, but I'm prepared to believe it may not work for you, as we do fairly wacky things with uft8 (for hysterical

Re: [Catalyst] Catalyst benchmark 5.7 VS 5.8

2009-09-28 Thread Tomas Doran
Fayland Lam wrote: from the top, each httpd takes 20M more RAM in 5.8 compared with 5.7 No, that'll be 20Mb of RAM _in total_, as all of those pages should be shared between your apache processes (given that you're preloading your application in the parent process). top totally doesn't show

Re: [Catalyst] Re: Catalyst 5.800013 - missing dependency version

2009-09-23 Thread Tomas Doran
Michele Beltrame wrote: With MooseX::Type 0.19 (version of Moose I currently have is 0.91) I get the same load of warnings as Toby: upgrading to 0.20 solves the issue. I hope this report is of some help. Yes, thanks. Shipped: http://pause.perl.org/incoming/MooseX-MethodAttributes-0.17.tar.gz

<    1   2   3   4   5   6   7   8   9   10   >