Re: [Catalyst] Help Deploying on mod-fcgi Rather than mod_fastcgi

2011-02-13 Thread Tomas Doran
On 13 Feb 2011, at 18:46, Francisco Obispo wrote: Is there a reason why you need it to be fast_cgi and not mod_perl ? On Feb 13, 2011, at 10:38 AM, Mark Hughes wrote: I should have added that this is a sample of my error.log: [root@mayfly log]# cat error.log [Sun Feb 13 11:29:45 2011]

Re: [Catalyst] Help Deploying on mod-fcgi Rather than mod_fastcgi

2011-02-14 Thread Tomas Doran
On 13 Feb 2011, at 22:46, Mark Hughes wrote: [info] sumo powered by Catalyst 5.80031 FastCGI: manager (pid 7003): initialized FastCGI: server (pid 7004): initialized FastCGI: manager (pid 7003): server (pid 7004) started Ok, cool. No errors are thrown to the log when sumo_fastcgi.pl is

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80032

2011-02-23 Thread Tomas Doran
Morning everyone! As always it gives me great pleasure to announce the latest release of Catalyst-Runtime. This release includes a couple of backwards compatibility and bug fixes to the last release, as well as some new features to help people customise the restarter used for

Re: [Catalyst] Details of config options

2011-02-28 Thread Tomas Doran
On 28 Feb 2011, at 13:36, will trillich wrote: Doesn't it depend on which __PACKAGE__ you're in? Yes, config will be namespaced according to what component you're in. But for plugins, there isn't a specific component .pm in your application, so the only choice is the top level MyApp.pm

Re: [Catalyst] UTF-8 and Catalyst::Action::Serialize::JSONP

2011-03-01 Thread Tomas Doran
On 1 Mar 2011, at 16:55, James Spath wrote: Does this seems like a reasonable solution to our problem? Is there a better way? Were you using Plugin::Unicode::Encoding? It should do this for you I think... Cheers t0m ___ List:

Re: [Catalyst] Re: DBI handle without magic when calling with dump_info=1 after updating Catalyst::Runtime

2011-03-01 Thread Tomas Doran
On 1 Mar 2011, at 17:38, Matthias Dietrich wrote: I just found out I never got this email through the mailing list and found it in an archive on the web. Thanks you for this, this solves the issue at first glance! However, when using dump_info=1 I get the following lines on the console

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime-5.89002-TRIAL PSGI Catalyst - third development release

2011-03-02 Thread Tomas Doran
On 2 Mar 2011, at 15:08, Pedro Melo wrote: Is this a documented change that I missed or a bug? A bug! Thanks for trying and notifying us :_) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Cache of unchanging content

2011-03-02 Thread Tomas Doran
On 2 Mar 2011, at 05:43, John M. Dlugosz wrote: On 3/1/2011 9:58 AM, Bill Moseley moseley-at-hank.org |Catalyst/ Allow to home| wrote: At build time I minimize and compress css and js (and images) and combine into single files grouped by page(s). They could be pre-processed by TT very

Re: [Catalyst] Cache of unchanging content

2011-03-02 Thread Tomas Doran
On 2 Mar 2011, at 17:27, Pedro Melo wrote: On Wed, Mar 2, 2011 at 5:24 PM, Tomas Doran bobtf...@bobtfish.net wrote: Installing to production servers via rsync / unison is insane, as there is exactly no way of knowing what version the production server is on, with what bugs... Of course

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime-5.89002-TRIAL PSGI Catalyst - third development release

2011-03-04 Thread Tomas Doran
On 3 Mar 2011, at 18:28, Fernan Aguero wrote: In other words, my apps will still work without modification under mod_perl2/Apache whenever the next Catalyst release (5.9, native PSGI) is out. Right? Yes, you should have to make exactly no changes, and everything should continue to work

Re: [Catalyst] Initialization

2011-03-05 Thread Tomas Doran
On 5 Mar 2011, at 07:15, John M. Dlugosz wrote: I want to do something once ahead of time, not every time my Model is used by a page. Where is the correct place to put code that will execute once during app set-up, and how can it know what the configured root directory is? The scope of

Re: [Catalyst] Catalyst::Plugin::RunAfterRequest and Catalyst::View::Email?

2011-03-05 Thread Tomas Doran
On 3 Mar 2011, at 09:14, Chakkit Ngamsom wrote: Thanks Steve, problem solved now. From: Matt S Trout m...@shadowcat.co.uk Date: May 2, 2010 12:49:32 PM PDT Proposal: first you try the -process-by-hand approach to confirm that I'm an idiot the way I think I am. Second we discuss how to

Re: [Catalyst] Best prcatice: same back-end, different UI

2011-03-09 Thread Tomas Doran
On 9 Mar 2011, at 04:48, Julien Sobrier wrote: I am wondering what is the best way to achieve this. You've got some good suggestions already. One more - stealing from / reusing Catalyst::TraitFor::Request::PerLanguageDomains could be handy. Cheers t0m

Re: [Catalyst] CatalystX-ExtJS is not installed on Windows with Microsoft compiler

2011-03-09 Thread Tomas Doran
On 9 Mar 2011, at 04:19, Ignatov Serguei wrote: Hi, I've found that CatalystX::ExtJS (and other modules) is not installed on Windows with Microsoft compiler because installation of Devel::Size fails. Please report a bug for Devel::Size with this info? (If you haven't done already).

Re: [Catalyst] debug prints

2011-03-27 Thread Tomas Doran
On 5 Mar 2011, at 23:09, Nicholas Wehr wrote: use the log method of $c: $c-log-debug(my message); cheers, -nw On Sat, Mar 5, 2011 at 2:21 PM, John M. Dlugosz wxju46g...@snkmail.com wrote: How do I send stuff to the console running the script/ Appname_server.pl -d from a component

Re: [Catalyst] Re: external post request

2011-03-27 Thread Tomas Doran
On 14 Mar 2011, at 05:39, shawn wilson wrote: actually, i take it back, it does 'see' the post request, just no data: [info] *** Request 4 (0.005/s) [23913] [Mon Mar 14 00:52:22 2011] *** [debug] POST request for data from 72.59.91.219 [debug] Path is data [warn] 0 the '0' came from this:

Re: [Catalyst] Unicode::Encoding - utf8 \xBA does not map to Unicode

2011-03-27 Thread Tomas Doran
On 13 Mar 2011, at 14:46, ryan lauterbach wrote: Even if the URL is inproperly formed I think Catalyst should handle it gracefully. I entirely agree with this. At the very least, we should serve a 400 (bad request) page in some way, rather than a 500 (internal server error). Can you log

Re: [Catalyst] Action for index not 'index'?

2011-03-27 Thread Tomas Doran
On 23 Mar 2011, at 17:16, Kyle Hall wrote: That sounds like a good technique. I've modified Plugin::Breadcrumb to work properly and put it in my source tree, but I think I like your technique better. Is there a way to make your change generic, and send the author a patch? As then you don't

Re: [Catalyst] Sending Email from Page?

2011-03-27 Thread Tomas Doran
On 22 Mar 2011, at 10:33, John M. Dlugosz wrote: If Catalyst had something called an accessory that could draw upon the auto-discovery, loading, configuration, etc. of Components, but did not claim to be a model, I might agree. Erm, why? Why should it be called an 'accessory', rather

Re: [Catalyst] Re: Caching with DBIx::Class::Cursor::Cached and Catalyst::TraitFor::Model::DBIC::Schema::Caching

2011-03-27 Thread Tomas Doran
On 22 Mar 2011, at 07:20, woosley. xu. wrote: I summited a bug to C::P::C::B::FastMmap and hope this would be fixed soon. For the benefit of the list - this was fixed :) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Sending Email from Page?

2011-03-27 Thread Tomas Doran
On 27 Mar 2011, at 16:30, John M. Dlugosz wrote: The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller). Right. And I

Re: [Catalyst] Unicode::Encoding - utf8 \xBA does not map to Unicode

2011-03-27 Thread Tomas Doran
On 27 Mar 2011, at 18:49, Ashley Pond V wrote: I think there's been an open ticket on this issue for a few months. I was a little surprised it hadn't got any attention but now I'm guessing you just never saw it: https://rt.cpan.org/Public/Bug/Display.html?id=62120 I probably have seen it a

Re: [Catalyst] Updating a database entry

2011-04-04 Thread Tomas Doran
On 3 Apr 2011, at 20:25, Adam Jimerson wrote: Or is it complaining about the lack of a primary key all together? Yes. Also, you're probably better asking DBIx::Class questions on the DBIx::Class list :) Cheers t0m ___ List:

Re: [Catalyst] server memory usage

2011-04-12 Thread Tomas Doran
On 11 Apr 2011, at 14:07, John M. Dlugosz wrote: Looking at the server's processes, I see three of script/ myapp_fastcgi.pl, which I suppose co-inside with the Apache configuration option where I said to start 3 fastcgi processes to handle this app. WebMin tells me size, which can't be

Re: [Catalyst] server memory usage

2011-04-29 Thread Tomas Doran
On 13 Apr 2011, at 08:25, Jorge Gonzalez wrote: It's plausible that multiple fire-ups of the same program would wind up with identical pages, if no memory allocation ever depends on timing or anything other than static configuration. Could be, but lots of perl modules defer their load

Re: [Catalyst] server memory usage

2011-04-29 Thread Tomas Doran
On 12 Apr 2011, at 13:51, Jorge Gonzalez wrote: Rather, it needs to load all the stuff and _then_ fork, so that the stuff is identical and shared. You are right in this case: the pages would be shared just after the fork, but would probably start to get copied individually for each

Re: [Catalyst] Re: Using htpasswd file.

2011-04-29 Thread Tomas Doran
On 25 Apr 2011, at 09:54, Rohan M wrote: Catalyst::Plugin::Authentication::Store::Htpasswd Erm, I don't know why this is being loaded / used. You want Catalyst::Authentication::Store::Htpasswd Can you confirm that module is installed? Cheers t0m

Re: [Catalyst] Mistake in documentation

2011-04-29 Thread Tomas Doran
On 8 Apr 2011, at 23:05, Mark A. Stratman wrote: So when a core contributor gets around to it, can you please review and put in master (there's another /people/mstratman/* branch too, btw). Merged to master, thanks t0m ___ List:

Re: [Catalyst] RFC: Catalyst::Plugin::SpecialAction::Trail

2011-06-01 Thread Tomas Doran
On 1 Jun 2011, at 19:35, BUCHMULLER Norbert wrote: Comments welcome. Monkey patching Catalyst::Controller is a horrible horrible horrible idea, please don't do that! If (for example) one were to load two Catalyst apps at once (e.g. FCGI::Engine running multiple apps, or one mod_perl

[Catalyst] Users of search_extra feature - I need to hear from you.

2011-07-18 Thread Tomas Doran
Hi Is anyone actually using the 'search_extra' feature (as documented here: http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.80032/lib/Catalyst.pm#$c-%3Elocate_components%28_$setup_component_config_%29) I don't see how it's useful to anyone in its current form, and some of the

Re: [Catalyst] Users of search_extra feature - I need to hear from you.

2011-07-18 Thread Tomas Doran
On 18 Jul 2011, at 16:42, Stephen Clouse wrote: On Mon, Jul 18, 2011 at 8:54 AM, Tomas Doran bobtf...@bobtfish.net wrote: Is anyone actually using the 'search_extra' feature (as documented here: http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.80032/lib/Catalyst.pm#$c

[Catalyst] Use of expand_modules

2011-07-26 Thread Tomas Doran
Hiya. Is anyone (other than MusicBrainz) using the expand_modules feature in Catalyst::Component in their codebases? We're evaluating it as a possibility for deprecation and future removal due to the fact that we have a much better solution to this problem in the works. Cheers t0m

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.89003-TRIAL PSGI Catalyst - LAST development release

2011-07-28 Thread Tomas Doran
Hi It gives me great pleasure to announce the fourth (and hopefully final) development release of the next major version of Catalyst. The changes from the previous PSGI development release include fixes for various backward compatibility issues found by users, and almost all user

Re: [Catalyst] Configuring Apache for mod_perl Catalyst and php via mod_proxy

2011-07-29 Thread Tomas Doran
On 29 Jul 2011, at 12:03, matthew couchman (JIC) wrote: Hi, I’m currently running a couple of Catalyst applications configured as VirtualHosts in Apache. I have some php software that I’d like to serve from the same server but I’ve discovered that php and mod_perl don’t seem to get

Re: [Catalyst] Configuring Apache for mod_perl Catalyst and php via mod_proxy

2011-07-29 Thread Tomas Doran
On 29 Jul 2011, at 12:03, matthew couchman (JIC) wrote: Which, if I am only running one host on the mod_perl server, works perfectly well. I’d like to tweak it further to redirect to the various VirtualHosts that I have been running with mod_perl alone but I’m not familiar enough with

Re: [Catalyst] Configuring Apache for mod_perl Catalyst and php via mod_proxy

2011-07-29 Thread Tomas Doran
On 29 Jul 2011, at 12:25, matthew couchman (JIC) wrote: Thanks for your reply. Perhaps it was too sweeping a statement but I can only say that for my setup mod_perl works fine through Apache alone as does php but when I combine them it crashes with memory corruption errors. (At a

Re: [Catalyst] Catalyst Model Issue

2011-08-02 Thread Tomas Doran
On 2 Aug 2011, at 20:37, gor...@gorste.plus.com wrote: Alejandro I am running uptodate version of DBD::mysql(4.019) and DBD::SQLite(1.33), but the issue is not with me creating the schema that works fine. The problem is with creating a record via the model as described in the catalyst

Re: [Catalyst] Force https in generated URIs

2011-08-04 Thread Tomas Doran
On 4 Aug 2011, at 16:18, Tobias Klug wrote: I am looking for a way to configure Catalyst in a way that all URIs generated are forced to use https. Add this to your app class: around uri_for = sub { my ($orig, $ctx, @args) = @_; my $uri = $ctx- $orig(@args); $uri-secure(1); $uri }; Cheers

Re: [Catalyst] Force https in generated URIs

2011-08-04 Thread Tomas Doran
On 4 Aug 2011, at 16:57, Larry Leszczynski wrote: Hi Tobias - Therefore I need to force all generated URIs to be https. If generated URIs means those coming from $c-uri_for() and friends, you should be able the modify the URI scheme in $c-request-base, which gets used by uri_for(). Not

Re: [Catalyst] Force https in generated URIs

2011-08-05 Thread Tomas Doran
On 4 Aug 2011, at 21:54, Larry Leszczynski wrote: Thanks for the clarification - I had seen a fair amount of Moose code that did *not* use namespace::autoclean, If you say: package Foo; use Moose; ... code ... no Moose; Then you're also fine.. However if you import stuff from half a

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime-5.89002-TRIAL PSGI Catalyst - third development release

2011-08-07 Thread Tomas Doran
On 2 Mar 2011, at 15:08, Pedro Melo wrote: I've just tested my app with the this version. I've noticed a small difference with Catalyst::Test. The latest stable version include two headers, 'host' and 'https'. They are missing from this version. Is this a documented change that I missed or a

Re: [Catalyst] Re: use for expand_modules

2011-08-08 Thread Tomas Doran
This is brilliant, and exactly what I was looking for. Thank you _so much_ for taking the time to write all of this up. On 8 Aug 2011, at 10:13, Gianni Ceccarelli wrote: - How the %$%$^# did you think this was a good idea? Well, it *is* documented :) And it seems to be the obvious hook:

Re: [Catalyst] [ANNOUNCE] Catalyst-Runtime-5.89002-TRIAL PSGI Catalyst - third development release

2011-08-09 Thread Tomas Doran
On 8 Aug 2011, at 23:56, John Napiorkowski wrote: - Original Message - From: Tomas Doran bobtf...@bobtfish.net To: Pedro Melo m...@simplicidade.org Cc: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Saturday, August 6, 2011 10:47 AM Subject: Re: [Catalyst] [ANNOUNCE

Re: [Catalyst] Starman in Catalyst::Devel

2011-08-30 Thread Tomas Doran
On 26 Aug 2011, at 14:21, Moens, Karl wrote: Mmmm, it seems Starman does not compile on Windows. The docs say: UNIX only This server does not support Win32. Now that Starman is included in Catalyst::Devel, installing that module also fails utterly. :( Does anyone have a solution for

Re: [Catalyst] Starman in Catalyst::Devel

2011-08-30 Thread Tomas Doran
On 30 Aug 2011, at 11:51, Christiaan Kras wrote: Starlet won't build on Windows for me. Can you give us some more info? Plackup however, works fine for me though. But doesn't seem to support keep-alive and forking. erm? plackup is orthogonal to what server you use? Ergo if you use a

Re: [Catalyst] Path is /

2011-09-06 Thread Tomas Doran
On 6 Sep 2011, at 14:34, Nick wrote: Catalyst isn't dispatching how I expected. A 'Login' controller has This is due to you mixing path and chained actions. The path actions take higher priority if they're able to match at all.. [debug] Loaded Path actions:

Re: [Catalyst] Path is /

2011-09-06 Thread Tomas Doran
On 6 Sep 2011, at 15:12, Nick wrote: On 2011-09-06 14:47, Tomas Doran wrote: This is due to you mixing path and chained actions. The path actions take higher priority if they're able to match at all.. [debug] Loaded Path actions

Re: [Catalyst] Path is /

2011-09-06 Thread Tomas Doran
On 6 Sep 2011, at 15:30, Nick wrote: | /default/...| / default | This is your bug, probably as you copied what I said without stopping to think about it (and I forgot a bit!) :) sub default : Chained('/') PathPart('') Args() { Cheers

Re: [Catalyst] Path is /

2011-09-06 Thread Tomas Doran
On 6 Sep 2011, at 15:49, Nick wrote: On 2011-09-06 15:37, Tomas Doran wrote: On 6 Sep 2011, at 15:30, Nick wrote: | /default/...| /default | This is your bug, probably as you copied what I said without stopping to think about it (and I forgot a bit!) :) sub

Re: [Catalyst] HTTP method matching (was Path is /)

2011-09-07 Thread Tomas Doran
On 7 Sep 2011, at 11:23, Nick wrote: On 2011-09-06 14:34, Nick wrote: Catalyst isn't dispatching how I expected. A 'Login' controller has I found the culprit. My controller uses this http://wiki.catalystframework.org/wiki/gettingstarted/howtos/HTTP_method_matching_for_actions snip

Re: [Catalyst] Catalyst still doesn't work under Windows

2011-09-21 Thread Tomas Doran
On 21 Sep 2011, at 06:48, Octavian Rasnita wrote: Hi, Even though I have the latest Catalyst installed under Windows, it seems that Catalyst is not compatible with Windows anymore, because I cannot run the apps that use it. When I try to run the app, it gives the error that

Re: [Catalyst] Catalyst still doesn't work under Windows

2011-09-21 Thread Tomas Doran
On 21 Sep 2011, at 12:03, Octavian Rasnita wrote: From: Tomas Doran bobtf...@bobtfish.net On 21 Sep 2011, at 06:48, Octavian Rasnita wrote: Hi, Even though I have the latest Catalyst installed under Windows, it seems that Catalyst is not compatible with Windows anymore, because I

Re: [Catalyst] Catalyst still doesn't work under Windows

2011-09-21 Thread Tomas Doran
On 21 Sep 2011, at 13:30, Octavian Rasnita wrote: This was the recommendation when accessing it with Internet Explorer. Isn't it needed anymore? No idea. Don't know what recommendation from where by whom. Does that error depend on this parameter? Yes. the simple dev server in plack

Re: [Catalyst] Slash characters in a path argument

2011-09-28 Thread Tomas Doran
On 27 Sep 2011, at 15:41, Ian Wells wrote: I have a string I want to use as one argument to a controller. It's user-sourced and occasionally has slashes in. I use this as $c-uri_for('/controller/action', 'string/with/slashes'); (done in TT, as it happens, but the results are the

Re: [Catalyst] Re: Group based access control

2011-09-28 Thread Tomas Doran
On 28 Sep 2011, at 12:34, linuxsupport wrote: I am sorry, please read the line as below. Is there a way to implement ACL based on group? similar to role base access controller where we use check_user_roles. No, there are several? I assume you mean using

Re: [Catalyst] Re: Group based access control

2011-09-28 Thread Tomas Doran
On 28 Sep 2011, at 17:30, linuxsupport wrote: I was looking if there is a read made solution, or someone implemented it I was suggesting offering the maintainer a patch, and getting them to subsequently maintain it wouldn't be a herculean effort :) Cheers t0m

Re: [Catalyst] Using a model class from other class

2011-10-01 Thread Tomas Doran
On 29 Sep 2011, at 18:36, Nicholas Wehr wrote: perhaps a simple way: my $rs = $c-model(DB::Group)-all; while (my $group = $rs-next) { for my $user ($ group-users ) { # do stuff } } Less good - this is implying that the code goes into the controller layer, whereas this

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.90003

2011-10-05 Thread Tomas Doran
Morning! I'm very pleased to announce the latest maintenance release of Catalyst::Runtime is available: 5.90003. Full changelog is included below as always. Many thanks t0m 5.90003 - 2011-10-05 08:32:00 Bug fixes: - Make default body reponses for 302s W3C compliant. RT#71237 -

Re: [Catalyst] ACCEPT_CONTEXT with Module::Pluggable::Object

2011-10-05 Thread Tomas Doran
On 5 Oct 2011, at 15:42, Cylon Toaster wrote: Hello, in the book 'Guide to Catalyst' is described how to build a Driver Model using Module::Pluggable::Object. You can find it on page 88, chapter 'A Driver Model for Generic Translation'. All works fine :-) But now I wanted to implement

Re: [Catalyst] Log::Dispatch::Output::log Missing mandatory parameters

2011-10-24 Thread Tomas Doran
On 14 Oct 2011, at 07:30, clara resende wrote: How to fix that? No idea as you haven't shown us any of your code. This isn't an error I've seen before, so one would assume it's something to do with your logging configuration.. :) Cheers t0m

Re: [Catalyst] Re: Recommended caching back-ends

2011-10-24 Thread Tomas Doran
On 13 Oct 2011, at 23:12, Toby Corkindale wrote: On 7 October 2011 18:22, Stephen Clouse stephenclo...@gmail.com wrote: On Fri, Oct 7, 2011 at 12:05 AM, Toby Corkindale t...@dryft.net wrote: Is there a Plugin::CHI or a CHI driver for Plugin::Cache anywhere? CHI works fine with

Re: [Catalyst] Re: DBIC_TRACE=1 and Progressive Realms not moving on with HTTP basic auth

2011-10-24 Thread Tomas Doran
On 12 Oct 2011, at 11:25, Gavin Henry wrote: Turns out this won't work due to the fact that -detach is called in Credential::HTTP As discussed on irc, patch would be both trivial and welcome. Well volunteered? Cheers t0m ___ List:

Re: [Catalyst] Paradigm question: how to use ResultSet level security based on $c-user?

2011-10-24 Thread Tomas Doran
On 11 Oct 2011, at 17:57, will trillich wrote: Is this Kosher? Yes, this is entirely fine! You may however want to look at Catalyst::TraitFor::Model::DBIC::Schema::WithCurrentUser, which will help your DBIC schema 'magically' get hold of the user if available, and

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.90005

2011-10-24 Thread Tomas Doran
I'm pleased to announce the latest maintenance release of Catalyst- Runtime: 5.90005 This release contains a couple of new features, and a number of documentation improvements. Thanks to all the contributors for all the the patches which make up this release. Full changelog is included

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

2011-10-24 Thread Tomas Doran
On 24 Oct 2011, at 15:48, Oleg Kostyuk wrote: I looked at diff to previous version via CPAN (http://goo.gl/BlHhv), and part that is related to lib/Catalyst.pm seems like not finished, as for me. May be, this is because I'm not native English speaker? Here is relevant part: Thanks for

[Catalyst] ANNOUNCE Catalyst-Runtime-5.90006

2011-10-25 Thread Tomas Doran
Hi It gives me great pleasure to announce the latest maintenance release of Catalyst-Runtime, which fixes issues for some users on perl versions 5.8 and 5.10, fixes issues with mod_perl behind a proxy and adds a couple of new features and documentation fixes. Full changelog as always is

Re: [Catalyst] Plack::Hanlder::FCGI Bug?

2011-10-25 Thread Tomas Doran
On 25 Oct 2011, at 06:27, Josef Chladek wrote: If I comment this block out, the correct PATH_INFO somecontroller/ method is called. An if around this block if ($env-{SERVER_SOFTWARE} $env-{SERVER_SOFTWARE} =~ m!lighttpd!) would be the solution, I guess... I think the plan is to remove this

Re: [Catalyst] Plack::Hanlder::FCGI Bug?

2011-10-25 Thread Tomas Doran
On 25 Oct 2011, at 15:08, N.A. wrote: Speaking about 'non-default middleware of Plack', 'Plack::Middleware::LighttpdScriptNameFix' enabled in 'apply_default_middlewares' (line 2746 of Catalyst.pm) should be also 'non-default', because it is just harmful for user of recent version lighttpd.

Re: [Catalyst] Plack::Hanlder::FCGI Bug?

2011-10-30 Thread Tomas Doran
On 29 Oct 2011, at 23:49, N.A. wrote: Sorry for late replay. My problem was about Non-root configuration” of lighttpd::FastCGI. I use lighttpd/1.4.28, which is newer than the target version of LighttpdScriptNameFix. With this combination, $env-{PATH_INFO} is wrong when catalyst-

Re: [Catalyst] YA CRUD module

2011-10-31 Thread Tomas Doran
On 31 Oct 2011, at 14:49, David Schmidt wrote: It's about time I publish my first CPAN module and it happens to be yet another CRUD module. Feedback greatly appreciated. I haven't looked at this in depth - but it generally looks nice (other than lack of tests).. But some comments: You

Re: [Catalyst] Catalyst::Plugin::AutoCRUD setup_components

2011-11-01 Thread Tomas Doran
On 1 Nov 2011, at 03:24, Jason Galea wrote: any suggestions? Can you show us the code that doesn't work when it's in your app? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst

Re: [Catalyst] Plack::Hanlder::FCGI Bug?

2011-11-01 Thread Tomas Doran
On 30 Oct 2011, at 12:01, N.A. wrote: t0m, I'm very happy if you fix this transparently!!! Following are some information. Thanks very very much for this. This may be enough for me to just write the tests and fix it, it's certainly It'll take me a few days to get around to this, but I

Re: [Catalyst] Catalyst::Plugin::AutoCRUD setup_components

2011-11-01 Thread Tomas Doran
On 1 Nov 2011, at 10:48, Jason Galea wrote: On Tue, Nov 1, 2011 at 7:38 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 1 Nov 2011, at 03:24, Jason Galea wrote: any suggestions? Can you show us the code that doesn't work when it's in your app? Hi t0m, thanks, I'll try to keep

Re: [Catalyst] Cat App on dotcloud

2011-11-01 Thread Tomas Doran
On 1 Nov 2011, at 20:15, Richard Thomas wrote: On 02/11/2011, at 6:38 AM, Dimitar Petrov wrote: Since Catalyst 5.9x supports psgi natively you can check these docs here also: https://metacpan.org/module/ Catalyst::Upgrading#Upgrading-the-PSGI-Engine You want to skip the step (Then

Re: [Catalyst] Dealing with timestamps from Postgres

2011-11-03 Thread Tomas Doran
On 3 Nov 2011, at 02:05, Adam Jimerson wrote: but in my Catalyst app the date looks like this 2011-05-07T13:53:41. The T instead of the space is driving me crazy, I think it is coming from DateTime::Format:Pg As other people have noted, what's happening is that DateTime::Format:Pg is

Re: [Catalyst] Dealing with timestamps from Postgres

2011-11-03 Thread Tomas Doran
On 3 Nov 2011, at 12:21, Adam Jimerson wrote: Also would it accept a ymd hms format or do they have to be separate? Please see the fine documentation for DateTime. Another option is to add a 'format_date' method to your view, and use the expose_methods config setting for View::TT.. In

Re: [Catalyst] Dealing with timestamps from Postgres

2011-11-03 Thread Tomas Doran
On 3 Nov 2011, at 15:38, will trillich wrote: Aha, that's what http://search.cpan.org/~mstrout/Catalyst-View-TT-0.37/lib/Catalyst/View/TT.pm#expose_methods is talking about. Hadn't noticed that before. Not noticed it before (fair enough), or not clear enough in the documentation? Cheers

Re: [Catalyst] Dealing with timestamps from Postgres

2011-11-03 Thread Tomas Doran
On 3 Nov 2011, at 19:03, will trillich wrote: In order to have 'perfect documentation' it must meet two criteria: A) explain the utility and usage (benefits and how-to) in a way that I can grok and B) show up on my radar in my searches. Both of these depend a helluva lot on my own

Re: [Catalyst] Catalyst and Puppet

2011-11-09 Thread Tomas Doran
On 8 Nov 2011, at 15:38, Nick wrote: We're investigating Catalyst and Puppet. Does anyone have any pointers, specifically with respect to installing and managing Catalyst and applications using it, with a local::lib for each application? Not specifically, as the place I use puppet does

Re: [Catalyst] Should I create a new view for rendering a pdf in browser?

2011-11-09 Thread Tomas Doran
On 9 Nov 2011, at 14:34, Steve wrote: My question is fairly straightforward - If I want to render a pdf in a browser, should I create a new Catalyst View? Yes. In a perfect world, you'd just say $c-stash( current_view = 'PDF' ) (and set a filename?) to make a pdf... The background on

Re: [Catalyst] Catalyst and Puppet

2011-11-10 Thread Tomas Doran
On 9 Nov 2011, at 16:23, Nick wrote: On 09/11/11 10:20, Tomas Doran wrote: Not specifically, as the place I use puppet does everything with .deb packages. Noted. Indeed, it's useful simply to know what other people's strategies are. We pin the packages for applications in production

Re: [Catalyst] action whose name started with underscore

2011-11-14 Thread Tomas Doran
On 14 Nov 2011, at 08:20, Hu Hailin wrote: I defined some actions in controller for inner forwarding purpose. To make the purpose clearly, I named them starting an underscore. You explicitly made those actions private, so they didn't get shown.

Re: [Catalyst] Apache2 and mod_perl deployment issue

2011-11-14 Thread Tomas Doran
On 14 Nov 2011, at 02:55, Adam Jimerson wrote: I am trying to deploy my app using the Catalyst Runtime 5.90006 using mod_perl 2.0.5 on apache 2.2.17. I have all my configurations in a virtual host file, can be found here

Re: [Catalyst] Apache2 and mod_perl deployment issue

2011-11-14 Thread Tomas Doran
On 14 Nov 2011, at 19:24, Adam Jimerson wrote: Would strace be able to follow the fork, or would I be in the same boat there? The only thing that I can see that would be causing it is a couple of lines like this: Yes, it totally is (strace -f) - you just get the PID added.. {SIG_DFL,

Re: [Catalyst] Apache2 and mod_perl deployment issue

2011-11-14 Thread Tomas Doran
On 14 Nov 2011, at 20:59, Adam Jimerson wrote: I did use the -X flag on gdb and it didn't provide any useful information. Can you still get it to segfault? What's the backtrace look like? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk

Re: [Catalyst] Apache2 and mod_perl deployment issue

2011-11-16 Thread Tomas Doran
On 15 Nov 2011, at 00:22, Adam Jimerson wrote: Here is the last several lines from a backtrace with the -f flag http://pastie.org/2864471 (the whole backtrace is quite large but I piped it to a file just in case) This is not a backtrace. A backtrace is specifically a call stack dump

Re: [Catalyst] Apache2 and mod_perl deployment issue

2011-11-16 Thread Tomas Doran
On 15 Nov 2011, at 01:49, Adam Jimerson wrote: On Mon, Nov 14, 2011 at 5:31 PM, Tomas Doran bobtf...@bobtfish.net wrote: Why are you deploying with mod_perl anyway? After looking into deploying under mod_fastcgi turns out the closest thing openSUSE ships with is mod_fcgid version 2.3.6

Re: [Catalyst] Apache2 and mod_perl deployment issue

2011-11-17 Thread Tomas Doran
On 16 Nov 2011, at 18:51, Adam Jimerson wrote: On Wed, Nov 16, 2011 at 12:10 PM, Tomas Doran bobtf...@bobtfish.net wrote: and shared memory that mod_perl deployment had over fastcgi This just isn't true unless you're deploying many applications (like the doc says). Are you trying to run

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.90007

2011-11-22 Thread Tomas Doran
Hi It gives me great pleasure to announce the latest maintenance release of Catalyst-Runtime which fixes issues with lightttpd at non-root paths, and handling of un-decodable data (with Catalyst::Plugin::Unicode::Encoding). Full changelog as always is below. Cheers t0m 5.90007 -

Re: [Catalyst] Questions with Authentication/Authorization

2011-11-24 Thread Tomas Doran
On 24 Nov 2011, at 12:40, Johannes Kilian wrote:: * Isn't $c-user a persistent value within $c? When I try to access to c.user later (after successfull login) $c-user is undefined. What is neccessary to make it persistent? The session plugin (with a session store etc) needs to be setup for

Re: [Catalyst] Questions with Authentication/Authorization

2011-11-24 Thread Tomas Doran
On 24 Nov 2011, at 14:15, Johannes Kilian wrote: * Isn't $c-user a persistent value within $c? When I try to access to c.user later (after successfull login) $c-user is undefined. What is neccessary to make it persistent? The session plugin (with a session store etc) needs to be setup

Re: [Catalyst] ”Non-root configuration” of lighttpd::FastCGI doesn't work with Catalyst-Runtime-5.90002

2011-11-28 Thread Tomas Doran
On 27 Nov 2011, at 08:22, N.A. wrote: With Catalyst-Runtime-5.90007, everything is OK! The following psgi setting is not required anymore. Thank you t0m. Woot! I'm glad the latest release fixed this up for you :_) Cheers t0m ___ List:

Re: [Catalyst] Project specific templates for Helpers

2011-11-29 Thread Tomas Doran
On 29 Nov 2011, at 17:36, Duncan Garland wrote: Does this facility exist or do you have to write a whole custom helper module? The latter, unfortunately. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] fastcgi process is pegging CPU

2011-12-02 Thread Tomas Doran
On 2 Dec 2011, at 01:45, Robert Dormer wrote: Thank you. However, this isn't really shedding much light on the situation - as far as I can tell I'm getting tons of reads and writes, Reads and writes of _what_? try the -s option on strace to get more context, and lsof -p to match up the

Re: [Catalyst] Re: Catalyst::Test Test::DBIx::Class

2011-12-04 Thread Tomas Doran
On 4 Dec 2011, at 04:13, Jason Galea wrote: hmm.. actually.. can I hand Catalyst::Test the schema I can get from Test::DBIx::Class? I think you can just force replace the schema, with something like MyApp-model('DB')-schema($mytestschema); Alternatively, you can setup a test config (by

Re: [Catalyst] YA CRUD module

2011-12-05 Thread Tomas Doran
On 4 Dec 2011, at 23:46, David Schmidt wrote: just thought i'll keep you up to day so you dont waste time trying to help with a problem i already solved. Turns out the error cause was in one of the roles. It required a method declared in the same role. This has to be a Moose bug in some

Re: [Catalyst] Single-domain multi-shop, multi-gateway; linked to the one shopping-cart

2011-12-06 Thread Tomas Doran
On 6 Dec 2011, at 08:07, Alec Taylor wrote: Currently we are looking for a good starting base, with a lot of the development already done for us; then we'll build up from that foundation. Research includes: Ruby on Rails (spree), DJango (satchmo) and Catalyst. Use whatever the development

Re: [Catalyst] chunked response and Catalyst ??

2011-12-07 Thread Tomas Doran
On 7 Dec 2011, at 07:32, Denis Spichkin wrote: chunked response and Catalyst ?? Totally possible. Is there any way of generating chunked response inside Catalyst and any its Views. The default way that the views / RenderView extension works is to render an entire page and give that to

Re: [Catalyst] ”Non-root configuration” of lighttpd::FastCGI doesn't work with Catalyst-Runtime-5.90002

2011-12-08 Thread Tomas Doran
On 7 Dec 2011, at 23:53, Charlie Garrison wrote: I've got the opposite problem from that solved in v5.90007. I'm running lighttpd/1.4.26 (on centos) so the LighttpdScriptNameFix middleware should not be needed. But when I updated staging server, our app broke, and applying

Re: [Catalyst] Questions with Authentication/Authorization

2011-12-08 Thread Tomas Doran
On 24 Nov 2011, at 12:40, Johannes Kilian wrote: Questions: * Isn't $c-user a persistent value within $c? When I try to access to c.user later (after successfull login) $c-user is undefined. What is neccessary to make it persistent? The Session plugin. * When I try to check the user role

<    2   3   4   5   6   7   8   9   >