Re: [Catalyst] FastCGI on Shared Hosting

2010-07-16 Thread Tomas Doran
On 15 Jul 2010, at 15:02, André Walker wrote: I'm developing my first "real world" Catalyst application, and all I have available to publish it is my shared hosting on Hostmonster. It is working, but it's dynamic fastcgi, which means that after about a minute of inactivity the process is ki

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-16 Thread Tomas Doran
On 15 Jul 2010, at 21:37, Alejandro Imass wrote: On Mon, Jul 12, 2010 at 3:08 PM, Tomas Doran wrote: Each process is in a separate memory space if you're using FCGI or mod_perl or something, but it's not entirely certain (if you use Catalyst::Engine::PSGI and Corona (for exa

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-18 Thread Tomas Doran
On 17 Jul 2010, at 18:58, Alejandro Imass wrote: I am confused now. mod_worker will share the same code segment for sure, and if you said earlier that in some scenarios where the code segment is shared (i.e. two _threads_ using the same model instance) the ACCEPT_CONTEXT call will override any g

Re: [Catalyst] Modifying Catalyst component load order

2010-07-18 Thread Tomas Doran
On 16 Jul 2010, at 17:55, Rob Hoelz wrote: This way, applications requiring a custom load order can override determine_component_load_order if they which, and plugins can override it to provide cool features like dependency resolution. Thoughts? This year's GSOC project is to put Bread::B

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-18 Thread Tomas Doran
On 18 Jul 2010, at 19:58, Alejandro Imass wrote: So in conclusion, it seems reasonable to say that I should not worry about the global vars (the Moose object attributes) in my Model Instance to get overridden by the ACCEPT_CONTEXT call, as this call will only be called once in sequence with a s

Re: [Catalyst] Catalyst::Component/Model Instances and Attributes per Request

2010-07-18 Thread Tomas Doran
On 18 Jul 2010, at 21:42, Alejandro Imass wrote: Ok. already! ;-) I have a big bump in my forehead from all this headbanging. With the headache and all I think I finally understand...I hope... In my case I need a model that creates an object to handle every request individually so: Yep, you g

Re: [Catalyst] Catalyst-Plugin-Params-Nested rt 59604

2010-07-28 Thread Tomas Doran
On 28 Jul 2010, at 00:40, Evan Carroll wrote: Find more information about the issue and the patch set here: https://rt.cpan.org/Public/Bug/Display.html?id=59604 Applied, released, resolved. Thanks for the patch! Cheers t0m ___ List: Catalyst@lis

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80025

2010-07-28 Thread Tomas Doran
Hi It gives me great pleasure to announce the latest maintenance release of the Catalyst 5.80 series. This release fixes some bugs (notably an issue if your application is using 'rails like routes' with the dispatch configured from config) and adds a small refactoring to allow the impleme

Re: [Catalyst] auth_bootstrap.pl question

2010-08-02 Thread Tomas Doran
On 2 Aug 2010, at 08:51, Nicolas Voss wrote: tests were ok for DBIx::Class::Schema::Loader (test=pass after installation). What's wrong here? Can you install Devel::SimpleTrace and re-run auth_bootstrap.pl with PERL5OPTS="-MDevel::SimpleTrace" in your environment? That should emit a stack

Re: [Catalyst] Catalyst::Test local_request(), Test::WWW::Mechanize::Catalyst, and

2010-08-02 Thread Tomas Doran
On 29 Jul 2010, at 21:40, Ronald J Kimball wrote: The only reference I found to this issue is a post to this mailing list from 2007, which no one answered. Has anyone else experienced this problem? Would a patch that cribs some code from LWP::UserAgent and puts it in Catalyst::Test local_

Re: [Catalyst] Trapping exceptions in Catalyst.pm

2010-08-04 Thread Tomas Doran
On 4 Aug 2010, at 10:06, Ton Voon wrote: In general, it's better to test the return value from eval directly instead of depend on $...@. Something like: my $has_exception; eval { $c->state( $code->execute( $class, $c, @{ $c->req->args } ) || 0 ); 1; } || $has_exception++; ... if ( $has_ex

Re: [Catalyst] Cross-link: How do I turn Moose objects into JSON for use in Catalyst?

2010-08-04 Thread Tomas Doran
On 3 Aug 2010, at 17:31, Evan Carroll wrote: I've posted a question and a few possible fixes. Does anyone have anything to add here? How do you go about dumping Moose to JSON in Cat? I use MooseX::Storage, as per perigrin's comment on the stack overflow post. Cheers t0m

Re: [Catalyst] DBIC custom SQL hack stopped working after upgrading Catalyst

2010-08-06 Thread Tomas Doran
On 6 Aug 2010, at 16:44, Tobias Kremer wrote: Hey folks, our app is using the following old and rather obscure hack which injects some custom SQL to perform a UNION. This works perfectly with the latest DBIC 0.08123 and Catalyst::Runtime 5.80007. However, after upgrading to the latest Catalyst

Re: [Catalyst] I18N with variables

2010-08-09 Thread Tomas Doran
On 7 Aug 2010, at 01:03, Ton Voon wrote: I can write a Cat advent calendar entry for this if interested. YES! We were happy to take submissions for this years advent as of Jan 1st, so please do so! ;) (Any time before mid december) Cheers t0m _

Re: [Catalyst] Emulating Catalyst::Request::Upload for HTML::FormHandler

2010-08-11 Thread Tomas Doran
On 10 Aug 2010, at 19:59, Shlomi Fish wrote: I did not get any reply for this on IRC so I'm asking here. I believe you did later get a reply on irc. Could you share with the rest of the class for archival purposes? Cheers t0m ___ List: Catalyst@l

Re: [Catalyst] Catalyst handling big files?

2010-08-13 Thread Tomas Doran
On 13 Aug 2010, at 12:22, Alex Povolotsky wrote: I'm working on processing relatively big (10+Mb) XML files, and it seems to me that Catalyst is taking an awful lot of time on some internal processing before call to handler, using surprisingly 200 MBs of RAM (about 40 MBs before request)

Re: [Catalyst] Finding the memory leaks in a Cat app

2010-08-13 Thread Tomas Doran
On 13 Aug 2010, at 12:11, Octavian Rasnita wrote: I have a Catalyst application that occupies 180 MB of RAM if it uses the internal development server. It occupies more than 1 GB of RAM if it uses Apache/mod_perl. I don't believe that. But never mind.. Even though it is very much, it would

Re: [Catalyst] Problem with prefetch DBIX::Class

2010-08-13 Thread Tomas Doran
On 13 Aug 2010, at 15:43, Marc Perez wrote: Hi Jay, Ok, sorry, I will write next time to the DBIX list. DBIX is a namespace which contains many projects. You mean DBIx::Class, or DBIC for short. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk L

Re: [Catalyst] Store something in the stash at startup

2010-08-17 Thread Tomas Doran
On 17 Aug 2010, at 06:27, Octavian Rasnita wrote: I load and store this object in the stash on each request in the Root::auto : Private method with: $c->stash(menu => $c->model('Menu')); But this would re-create the menu object on each request, and this takes time. No, it wouldn't. The

Re: [Catalyst] Store something in the stash at startup

2010-08-17 Thread Tomas Doran
On 17 Aug 2010, at 14:59, w...@serensoft.com wrote: Is that the part you're referring to as application-lifetime? No. When you say: use MyApp; (or require MyApp) then the application is loaded, and all of it's models, controllers and views are setup initially. They persist for the lifet

Re: [Catalyst] Store something in the stash at startup

2010-08-17 Thread Tomas Doran
On 17 Aug 2010, at 15:50, Charlie Garrison wrote: I was suggesting the Moose attribute as way of storing the model in $c to be easier to reference from templates. I highly recommend taking the model instance and stashing it (as is being done already), rather than making an attribute on th

Re: [Catalyst] Store something in the stash at startup

2010-08-18 Thread Tomas Doran
On 18 Aug 2010, at 04:07, Charlie Garrison wrote: I.e. if you are saying [% c.model('Foo').thing %] or [% c.foo.thing %] then this is less flexible (as you can't override foo for part of your site) than $c->stash(foo => $c->model('Foo')) in your perl code, then [% foo.thing %] in your templ

Re: [Catalyst] App breaks after updating to Catalyst::Plugin::Session::State::URI v0.14

2010-08-19 Thread Tomas Doran
On 19 Aug 2010, at 19:32, Charlie Garrison wrote: Good morning, On 19/08/10 at 6:32 PM +0100, Ash Berlin wrote: if ( my $sid = $c->request->parameters->{$param} ) { Try changing parameters to query_parameters. It sounds like hitting params is causing it to read the body and mes

Re: [Catalyst] Catalyst::Plugin::ConfigLoader snag [and SOLVED]

2010-08-19 Thread Tomas Doran
On 19 Aug 2010, at 22:17, w...@serensoft.com wrote: How about 186:my ( $extension ) = ( $path =~ m{\.([^./]{1,4})$} ); instead? Sure. Could you write a failing test for this? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: htt

Re: [Catalyst] Catalyst::Plugin::ConfigLoader snag [and SOLVED]

2010-08-19 Thread Tomas Doran
On 19 Aug 2010, at 23:20, w...@serensoft.com wrote: I'm not sure. This isn't just $c->something, It'd involve running "catalyst.pl" to create a fresh MyApp with a two-character (or one- character) name, which would then require some post-processing cleanup. I really don't think so. You j

Re: [Catalyst] working with strange port setups

2010-08-21 Thread Tomas Doran
On 21 Aug 2010, at 10:51, Darren Duncan wrote: Therefore, can anyone tell me how to configure Catalyst so that it builds the urls I need, or alternately where in the Catalyst source I should look in order to create a patch to enable this? You want to be adding a test in t/aggregate/unit_cor

Re: [Catalyst] Catalyst wiki is down

2010-08-21 Thread Tomas Doran
On 21 Aug 2010, at 15:52, Deepak Gulati wrote: Works now so must've been a temporary issue. Thanks. http://planet.catalystframework.org/ redirecting to the main site is a bit odd - there used to be some interesting material there. I guess they must be in the middle of fixing it. The guy who

Re: [Catalyst] Re: [Catalyst-dev] [ANNOUNCE] CALL FOR TESTING Catalyst-Runtime 5.80014_01

2010-08-25 Thread Tomas Doran
On 24 Nov 2009, at 09:36, Frank Wiegand wrote: t/ optional_threads .t .. 1/3 # Failed test 'Executed actions' # at t/optional_threads.t line 54. # got: 'TestApp::Controller::Action::Default->begin, TestApp::Controller::Action::Def

Re: [Catalyst] CatalystX-Component-Traits forgot to bump version

2010-08-26 Thread Tomas Doran
On 26 Aug 2010, at 07:34, Bill Moseley wrote: Still at 0.14 which that was the old version before the -excludes change. Yeah, sorry about that - I've been rushed off my feet in the last week and have made a couple of stupid mistakes. This is now corrected by a new release. Cheers t0m

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80026

2010-09-01 Thread Tomas Doran
Hi It gives me great pleasure to announce the latest maintenance release of the Catalyst 5.80 series. There are a number of small changes and bug fixes in this release, and some changes for forward compatibility with newer Moose versions (to avoid warnings about some deprecated features).

Re: [Catalyst] Catalyst::ScriptRole and "excludes"

2010-09-01 Thread Tomas Doran
On 29 Aug 2010, at 14:50, Bill Moseley wrote: In case hasn't been noticed, newer Moose will complain about the renamed -excludes option. This is now fixed in the latest release. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://li

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80027

2010-09-01 Thread Tomas Doran
Hi It gives me somewhat less pleasure than it did 20m ago to announce the latest maintenance release of the Catalyst 5.80 series. This fixes a bug causing the tests to fail on new installs. Full changelog below as always. Cheers t0m -- 5.80027 2010-09-01 22:14:00 Bug fixes: - Fix an is

Re: [Catalyst] Catalyst::Response callbacks? Need to reap auto-generated files on disk after they are served.

2010-09-02 Thread Tomas Doran
On 2 Sep 2010, at 20:21, Tommy Butler wrote: What are your thoughts? Has anyone done something like this who would be willing to share their solution, or are there others among us who would be so kind as to share some ideas of their own? Job for Catalyst::Plugin::RunAfterRequest? Cheers t

Re: [Catalyst] Deleting the expired session files?

2010-09-06 Thread Tomas Doran
On 4 Sep 2010, at 20:27, Darren Duncan wrote: Have you tried using the FastMMap store instead? I understand this can automatically expire sessions. The main caveat that I'm aware of is that it is unreliable in a multi-thread environment. -- Darren Duncan s/in a multi-thread environme

Re: [Catalyst] Weird error with View::JSON

2010-09-07 Thread Tomas Doran
On 7 Sep 2010, at 17:42, Mesdaq, Ali wrote: I am getting a weird error when I start/restart my catalyst server. The error does not seem to be stopping anything from working from what I can tell. This is the error: Tried to write to the catalyst_component_name accessor - is your component

Re: [Catalyst] SIGINT triggers segfault in Oracle libraries

2010-09-07 Thread Tomas Doran
On 7 Sep 2010, at 21:27, E R wrote: If I hit Control-c after starting up the standalone catalyst server without the -r option, I'll get a segfault. Here is the backtrace: #0 0xb6240a07 in nsgetcinfo () from .../rnapps/oracle/libclntsh.so. 10.1 #1 0xb62658c8 in nioqih () from .../rnapps/or

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-07 Thread Tomas Doran
On 7 Sep 2010, at 18:59, Simon Miner wrote: All three of these apps run under a single Apache 1.3.42/mod_perl 1.31 server. Wow, mod_perl 1 Ok then :) It appears that each server process creates a unique database connection variable for each of these apps. Although these database con

Re: [Catalyst] different storage for a controller

2010-09-08 Thread Tomas Doran
On 8 Sep 2010, at 14:53, rahed wrote: in MyApp.pm I have: __PACKAGE->config(session => {storage => '/tmp/mystorage'}); I use FastMmap session storage and would like to change the path for one of my controller. I tried in myapp.yml: This question makes no sense. The session storage is per

Re: [Catalyst] How to share a database connection across multiple Catalyst apps?

2010-09-08 Thread Tomas Doran
On 8 Sep 2010, at 19:17, Javier Arturo Rodriguez wrote: On 9/8/10 4:54 PM, Simon Miner wrote: The parameters defining the connection have to be exactly the same, including the connect attributes! If there is no appropriate database handle or if the ping method fails, a new connection i

Re: [Catalyst] SIGINT triggers segfault in Oracle libraries

2010-09-08 Thread Tomas Doran
On 8 Sep 2010, at 18:56, E R wrote: Does catalyst install a SIGINT handler? No. (Assuming we are talking about the built in dev server here - Catalyst never does, different engines may however0 Is there a way to trace perl execution after the INT signal is received? Try Devel::bt? Che

Re: [Catalyst] SIGINT triggers segfault in Oracle libraries

2010-09-09 Thread Tomas Doran
On 9 Sep 2010, at 02:21, Tomas Doran wrote: On 8 Sep 2010, at 18:56, E R wrote: Does catalyst install a SIGINT handler? No. (Assuming we are talking about the built in dev server here - Catalyst never does, different engines may however0 Is there a way to trace perl execution after the

Re: [Catalyst] How to get from

2010-09-18 Thread Tomas Doran
On 18 Sep 2010, at 17:00, will trillich wrote: So the real question is, how do we get from $self to ->find() ? From a result class, $self->resultset->find is probably what you want. You should also probably be asking questions about DBIx::Class on the DBIx::Class list, not the Catalyst lis

Re: [Catalyst] New install getting "Wide character in syswrite" error

2010-09-22 Thread Tomas Doran
On 22 Sep 2010, at 04:00, Charlie Garrison wrote: Good afternoon, I setup an installation of our app for a new developer last night and keep getting the 'Caught exception in engine "Wide character in syswrite at...' error when making POST requests. Reading through the archives I expect thi

Re: [Catalyst] New install getting "Wide character in syswrite" error

2010-09-22 Thread Tomas Doran
On 22 Sep 2010, at 11:15, Charlie Garrison wrote: Any other suggestions? Using Devel::SimpleTrace or Carp::Always to get a backtrace of what is doing the bad syswrite would be helpful.. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] New install getting "Wide character in syswrite" error

2010-09-22 Thread Tomas Doran
On 22 Sep 2010, at 14:53, Charlie Garrison wrote: I think I already submitted a patch for this; yep, r13505. t0m, any chance of a new release of C::P::Session::State::URI? In the meantime I'll apply the above patch to the new dev's machine. This adds a test which fails. You appear to have f

Re: [Catalyst] Returning to referer - which action to take?

2010-09-27 Thread Tomas Doran
On 26 Sep 2010, at 20:38, Ekki Plicht (DF4OR) wrote: Serving the pages in different languages works fine with C::P::I18N, but I can't figure out how to return the visitor to the refering page. Simply redirecting to the referer does not work, because a prepared cookie isn't preserved over a

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80028

2010-09-28 Thread Tomas Doran
Hi It gives me great pleasure to announce the latest maintenance release of Catalyst-Runtime. This fixes a couple of small bugs which were causing issues for a couple of people. Full changelog below as always. Cheers t0m --- 5.80028 2010-09-28 20:49:00 Bug fixes: - use Class::MOP in

Re: [Catalyst] Remote authN not getting username from remote_user()

2010-09-28 Thread Tomas Doran
On 27 Sep 2010, at 23:33, Trevor Leffler wrote: So, I've opened bugs under C::E::Apache with patch files that fix this issue as well as fix broken tests and minimally bring the code up to date with more current C::Runtime standards. I've just shipped Catalyst-Engine-Apache-1.13_01.tar.gz to

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80029

2010-10-03 Thread Tomas Doran
Hi I've just uploaded a new version of Catalyst to avoid a warning at app startup with the upcoming version of Moose. Full changelog below as always. Cheers t0m --- 5.80029 2010-10-03 16:39:00 New features: - Add a warning when $c->view is called and cannot locate a default_view

Re: [Catalyst] Handling long-running processes (was Re: Logging is not immediate)

2010-10-23 Thread Tomas Doran
On 20 Oct 2010, at 01:48, Toby Corkindale wrote: What is support like for either multi-part or partial-update in browsers like now? Almost everything will now do MXHR. Have a look at Web::Hippie which abstracts the browser-specifics of the actual mechanism away. However, each user is go

Re: [Catalyst] Running system commands under FastCGI with IPC::Cmd / IPC::Run

2010-10-28 Thread Tomas Doran
On 26 Oct 2010, at 18:15, Larry Leszczynski wrote: If you can't upgrade (or upgrading doesn't fix things), Upgrading will fix that error, that's what I patched FCGI for ;) you can also do something like this before the IPC call: Or more elegantly, in the script: package MyApp::Script::Fas

Re: [Catalyst] PageCache support for caching redirect responses

2010-11-01 Thread Tomas Doran
On 31 Oct 2010, at 08:38, Paul Flow wrote: Hi everyone, My Catalyst app supports requests using a variety of easily typed shorthand URIs that redirect to a canonical URI. Determining the canonical from some shorthands can be expensive, but rarely if ever change, so I'm looking to cache the re

Re: [Catalyst] Re: "Wrong Content-Length value"

2010-11-01 Thread Tomas Doran
On 1 Nov 2010, at 08:43, Felix Antonius Wilhelm Ostmann wrote: nothing? :-/ Am 04.10.2010 10:16, schrieb Felix Antonius Wilhelm Ostmann: It there a plan to change this error? I'd love someone to make some patches in a branch :) Cheers t0m ___ L

Re: [Catalyst] Catalyst-Authentication-Store-DBIx-Class-User v0.1400 - patch

2010-11-16 Thread Tomas Doran
On 16 Nov 2010, at 15:28, Anthony Gladdish wrote: The from_session() method has a call to load() with no $c param. It did previously, and this change is breaking my own authentication tests. Catalyst-Authentication-Store-DBIx-Class 0.1400 test suite passes on my attached patch, and my own a

Re: [Catalyst] Catalyst-Authentication-Store-DBIx-Class-User v0.1400 - patch

2010-11-17 Thread Tomas Doran
On 17 Nov 2010, at 14:53, Anthony Gladdish wrote: Failing test case and it's patch attached. Thanks very much! I've released the new version just now.. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/ma

Re: [Catalyst] Having problem with Catalyst::Controller::FormBuilder module with Catalyst 5.8

2010-11-22 Thread Tomas Doran
On 22 Nov 2010, at 16:41, Cory Hollingsworth wrote: Here is a very simple example of a Root.pm code which illustrates my problem: package lookupreset::Controller::Root; use base 'Catalyst::Controller::FormBuilder'; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'

Re: [Catalyst] Converting a GET request to a POST request

2010-11-22 Thread Tomas Doran
On 22 Nov 2010, at 17:44, Ronald J Kimball wrote: This works for JSON requests (e.g. application/json), but not for JSONP requests (e.g. text/javascript), because there is no Catalyst::Action::Deserialize::JSONP. I guess I could create one that extends Catalyst::Action::Deserialize::JSON... Y

Re: [Catalyst] Query : Catalyst forward and relative path in CSS.

2010-11-22 Thread Tomas Doran
On 21 Nov 2010, at 16:10, Rohan M wrote: Although, the scripts are working but I'm facing two problems - 1) The $c->forward('controller/action') NOT working Do you not mean $c->forward('/controller/action'), which looks like a more reasonable private path ? Cheers t0m __

Re: [Catalyst] Converting a GET request to a POST request

2010-11-22 Thread Tomas Doran
On 22 Nov 2010, at 18:28, Ronald J Kimball wrote: It doesn't care what the request method is, as long as it's POST, PUT, OPTIONS, or DELETE. ;) No, it just doesn't care. If I create Catalyst::Action::Deserialize::JSONP, I'll still need to convert the GET request to a POST. That seems to be

Re: [Catalyst] Catalyst and Moose with "has" many_to_many

2010-11-25 Thread Tomas Doran
On 25 Nov 2010, at 03:43, will trillich wrote: Greetings Catalystery: Got a new question, trying to implement a many_to_many relationship via Moose... The DBIC portion of the puzzle is straightforward, we've got that working just fine. Here's part I understand -- we have a controller that'

Re: [Catalyst] Converting a GET request to a POST request

2010-11-25 Thread Tomas Doran
On 23 Nov 2010, at 16:22, Ronald J Kimball wrote: Why? Where is the code which forces it to be a POST? In Catalyst::Action::Deserialize: sub execute { my $self = shift; my ( $controller, $c ) = @_; my @demethods = qw(POST PUT OPTIONS DELETE); Dang, my bad. Cheers t0m _

Re: [Catalyst] Catalyst and Moose with "has" many_to_many

2010-11-26 Thread Tomas Doran
On 25 Nov 2010, at 21:57, will trillich wrote: Right. :) These are 'inlined' within the controller that's the only place where they're used. E.g. package Spill::Controller::Spill; use Moose; #... { package Spill::Controller::Incident::IncidentForm; use HTML::FormHandler::Moose; ex

Re: [Catalyst] Re: Query : Catalyst forward and relative path in CSS.

2010-11-26 Thread Tomas Doran
On 26 Nov 2010, at 10:44, Rohan M wrote: Hi All, Thanks Tomas and Denny for your reply... I think $c->go is to call a Localized path and the $c->forward for private path. Erm, no. They both call private paths. And >go was never mentioned in your original email?? I'm using the action a

Re: [Catalyst] Transferring control via root/auto

2010-12-08 Thread Tomas Doran
On 7 Dec 2010, at 16:11, Ben van Staveren wrote: You want to $c->detach('end') -- unless that's the default these days. I use this pattern a lot and the only difference I see is that I do: The end action will _always_ be run, there is no need to detach to the end action. However I'm no

Re: [Catalyst] Transferring control via root/auto

2010-12-10 Thread Tomas Doran
On 9 Dec 2010, at 14:41, Thompson wrote: How would you use a chained dispatch to solve a problem like this? Something that needs to be checked before allowing anything else (besides logging in) to happen and if so force them to a specific page? A simple example would help. The simplest

Re: [Catalyst] Static MultiViews?

2010-12-10 Thread Tomas Doran
On 9 Dec 2010, at 09:31, Dorian Taylor (Lists) wrote: Hello, I'm trying to find an a plugin or something that does some rudimentary content negotiation, i.e. multiviews, i.e. serving static files without their extensions. Can't seem to find anything despite having scoured for hours. Clea

Re: [Catalyst] Re: Static MultiViews?

2010-12-14 Thread Tomas Doran
On 10 Dec 2010, at 20:32, Aristotle Pagaltzis wrote: * Tomas Doran [2010-12-10 17:05]: MultiViews is an apache feature for language customisation, and has nothing to do with not having extensions on files. I don’t think such a thing exists for Catalyst. I guess the question I was

Re: [Catalyst] Static MultiViews?

2010-12-14 Thread Tomas Doran
On 10 Dec 2010, at 20:03, Dorian Taylor (Lists) wrote: Language, mime type, charset and content encoding, actually. I was looking for similar behaviour but implemented in Catalyst (i.e. presumably using HTTP::Negotiate). It's entirely possible to serve static files without extensions if

Re: [Catalyst] CatalystX::SimpleLogin with multiple roles

2010-12-28 Thread Tomas Doran
On 28 Dec 2010, at 00:51, Harold Frayman wrote: Hi I'm trying to use CatalystX::SimpleLogin with multiple roles via DBIx::Class and with Redirect. What should happen, when a user is redirected to log in and does so but without the level of authorization required for the method they were

Re: [Catalyst] Catalyst::Action::RenderView 0.15

2011-01-05 Thread Tomas Doran
On 5 Jan 2011, at 11:12, ryan lauterbach wrote: Hello, Redirects after login stopped working after this latest upgrade, as if Root::end() isn't ignoring 3xx status'. I've downgraded Catalyst::Action::RenderView from 0.15 to 0.14 and the redirects work again. Bad end() code or bug? No sure,

Re: [Catalyst] Issue with Plugin::Session

2011-01-05 Thread Tomas Doran
On 5 Jan 2011, at 16:07, jeff robinson wrote: Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Is the time correct on your server and your client? This issue is

Re: [Catalyst] Catalyst::Action::RenderView 0.15

2011-01-05 Thread Tomas Doran
On 5 Jan 2011, at 11:12, ryan lauterbach wrote: Hello, Redirects after login stopped working after this latest upgrade, as if Root::end() isn't ignoring 3xx status'. I've downgraded This is a bug and entirely my fault. I have just uploaded a fixed version. Apologies for the inconvenience.

Re: [Catalyst] Zeus and Catalyst

2011-01-11 Thread Tomas Doran
On 10 Jan 2011, at 22:05, Duncan Garland wrote: Are there any known problems using two serving running Zeus with a load balancer, fastcgi, Catalyst and Oracle 10.2 on Red Hat? None known :) Our servers lock up occasionally. Half a dozen times a day, which is often enough to cause real emba

Re: [Catalyst] Zeus and Catalyst

2011-01-12 Thread Tomas Doran
On 12 Jan 2011, at 09:02, Duncan Garland wrote: It appears to be preparing an SQL statement but it doesn't give us much idea about which one. Have you (or anyone else) got any idea what all this means? 0x003bbe20d8e0 in __read_nocancel () from /lib64/libpthread.so.0 (gdb) (gdb) #0

Re: [Catalyst] Catalyst::Action::Serialize warnings under 5.80030

2011-01-12 Thread Tomas Doran
On 7 Jan 2011, at 12:36, Justin Hunter wrote: that sounds about right. here is a proposed patch: Applied with some changes and extra tests. Released. Thanks! t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/ma

Re: [Catalyst] ".part" file downloading while login/logout

2011-01-13 Thread Tomas Doran
On 13 Jan 2011, at 08:04, mani kandan wrote: I have created a catalyst web application , it working fine . But the problem I am facing is, when I click login its asking to save ".part" file , the same problem while logout. Kindly help me where I may made mistake . No idea without more in

Re: [Catalyst] Zeus and Catalyst

2011-01-14 Thread Tomas Doran
On 14 Jan 2011, at 11:02, Duncan Garland wrote: However, the whole mode of operation of the system has changed and there has been a performance hit. When a request arrives, we get multiple catalyst processes spawned. These hang around for a while, handle the request and die within a coupl

Re: [Catalyst] Job Queue recommendation

2011-01-24 Thread Tomas Doran
On 21 Jan 2011, at 15:30, Alexander Hartmaier wrote: t0m created CatalystX::JobServer which is currently only available on This entirely requires RabbitMQ (well, any AMQP broker should be fine, but I've only tried Rabbit) to do the actual queueing. Cheers t0m __

Re: [Catalyst] progressive authentication via db & LDAP

2011-01-24 Thread Tomas Doran
On 24 Jan 2011, at 15:17, piccard wrote: Is there a possibilty to map the keys, so they also work for a LDAP- authentication? Yes, there is. You'll need to patch the code, but the patch would be very welcome upstream. Add an authinfo_remap key to the config, and the code... if ( my $map

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.89000-TRIAL PSGI Catalyst - first development release.

2011-01-24 Thread Tomas Doran
Hi It gives me great pleasure to announce the first development release of the next major version of Catalyst. This is a development release, and we need people to start trying to use it _NOW_, and to tell us about the issues you find with your real world applications. Otherwise we're goi

Re: [Catalyst] progressive authentication via db & LDAP

2011-01-25 Thread Tomas Doran
On 25 Jan 2011, at 10:01, piccard wrote: In view of that, I've got one more question. What I would really need, is a password authentification against LDAP and if successful, get the user and his roles from the database. So, is it possible to split up this process and still use methods like

Re: [Catalyst] progressive authentication via db & LDAP

2011-01-25 Thread Tomas Doran
On 25 Jan 2011, at 14:55, piccard wrote: I'm not sure if I will really run into these problems. I've tried it so far this way: You will. It will come and bite you on the ass, trust me. You are trying to make Catalyst (and the authentication framework) take place of your business logic co

Re: [Catalyst] Catalyst-Controller-FormBuilder-0.05 NEXT patch

2011-01-26 Thread Tomas Doran
On 25 Jan 2011, at 15:43, Anthony Gladdish wrote: Could someone apply/roll it out please? Applied, dist rolled. http://goatse.co.uk/~bobtfish/Catalyst-Controller-FormBuilder-0.06.tar.gz Should get shipped in the next 24 hours hopefully (I don't have the permissions to do so personally).

Re: [Catalyst] Catalyst-Runtime-5.80030 install error

2011-01-26 Thread Tomas Doran
On 26 Jan 2011, at 11:23, Anthony Gladdish wrote: Anyone else experienced this/know how to fix? Run package-stash-conflicts Upgrade the modules it tells you to. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/c

Re: [Catalyst] Catalyst-Runtime-5.80030 install error

2011-01-26 Thread Tomas Doran
On 26 Jan 2011, at 12:33, Anthony Gladdish wrote: Awesome! ( in this case, culprit was MooseX::Role::WithOverloading ). Ack, the next release already depends on the latest version to avoid this. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Li

Re: [Catalyst] progressive authentication via db & LDAP

2011-01-26 Thread Tomas Doran
On 26 Jan 2011, at 13:48, piccard wrote: You set it in the config, you implement a check_password method in your user object (which goes and checks the password from LDAP), you're done. For anybody who is working on the same problem, this solution worked 4 me: + set the extended cla

Re: [Catalyst] progressive authentication via db & LDAP

2011-01-26 Thread Tomas Doran
On 26 Jan 2011, at 16:27, piccard wrote: but ... I decided to go for the new extended class because I still need progressive Auth, means, some users are only in the DB (including their password) and some are only in the LDAP-Dir. So, if I go for the example above a normal PasswordCheck again

Re: [Catalyst] Opinions on static::simple - with caching

2011-01-31 Thread Tomas Doran
On 31 Jan 2011, at 07:17, Toby Corkindale wrote: However, I suppose in situations where that matters, you shouldn't be serving files via Static::Simple.. And the regular Static::Simple still provides Last-Modified headers, which do allow browsers to perform some caching. What do you think?

Re: [Catalyst] progressive authentication via db & LDAP

2011-01-31 Thread Tomas Doran
On 28 Jan 2011, at 16:34, piccard wrote: So put that logic in your domain model (i.e. DB row class), where it belongs? sorry, I'm not sure what u mean (new to Catalyst and DBIx). I need progressive authentication. No, you don't. First it should check against the db and then against the

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.80031

2011-01-31 Thread Tomas Doran
Hi It gives me great pleasure to announce the latest maintenance release in the Catalyst 5.80 series. This release mainly fixes a warning produced by applications deployed as FastCGI which was introduced in Catalyst-Runtime 5.80030. Full changelog below as always. Cheers t0m 5.80031 201

Re: [Catalyst] Opinions on static::simple - with caching

2011-02-01 Thread Tomas Doran
On 1 Feb 2011, at 02:17, Toby Corkindale wrote: The case that I find having the headers enabled is as follows: Yep, perfectly reasonable really. I'd like to see it as an option on Static::Simple; I could mod that and send a patch over if you liked? Sure, or just commit into a branch (you a

Re: [Catalyst] Deployment incompatibility

2011-02-04 Thread Tomas Doran
On 4 Feb 2011, at 08:14, Octavian Rasnita wrote: I've seen that this problem appeared because the file Makefile.PL is created automaticly with the following line in it: all_from 'lib\MyFoo.pm'; instead of: all_from 'lib/MyFoo.pm'; Can you log a bug against Catalyst-Devel for this? I u

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

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 start

[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 development.

Re: [Catalyst] Simple literal Model

2011-02-25 Thread Tomas Doran
On 25 Feb 2011, at 01:56, John M. Dlugosz wrote: I'm planning several web pages that will be the same except for the actual content. Rather than code the details in the TT template or prepare a list literally in the Controller, I'm thinking that this ought to go into a Model. But, it can

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 (o

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: Catalyst@lists.scsy

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 w

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 18:25, Matthias Dietrich wrote: Am 01.03.2011 um 19:06 schrieb Tomas Doran: What perl version are you using here? I'm on v5.12.2 on a Mac OS X 10.6.6 with a custom Perl build (via macports). Bah, no idea what's going on there then :)

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