Re: [Catalyst] How and where to run a method at Catalyst start up?

2009-05-15 Thread Tomas Doran
Emmanuel Quevillon wrote: #column sub (like $_->id()) I get 'Unkown error' #Also it looks like $_ is a 'DBIx::Class' only That's as you have some form of syntax error at application compile time. I believe this is fully fixed as of r10169 in trunk. Please test and let me know if it works

Re: [Catalyst] Testing controller which require login.

2009-05-15 Thread Tomas Doran
Louis Erickson wrote: Just today I spent time writing up some documentation patches you pointed out I could contribute on my blog. I'm going to try and keep adding things where I can. Applied in another thread - keep up the good work :) Random question about that... if I have diffs to send t

Re: [Catalyst] Caught exception in engine "Can't call method "header" on an undefined value

2009-05-14 Thread Tomas Doran
Malloy wrote: What's wrong with my application? No idea, not enough info. What version of Catalyst are you using, and can you load Devel::SimpleTrace to turn this into a stack trace which will tell us what methods your actually in when you get the exception. Cheers t0m ___

Re: [Catalyst] Doc patch for ConfigLoader.

2009-05-14 Thread Tomas Doran
Louis Erickson wrote: I wrote a blog entry the other day about ConfigLoader and what the file names generated by MYAPP_CONFIG_LOCAL_SUFFIX etc. are. t0m suggested I write a patch. I've done so. Nice one! Having done that, I am confident I used the most current code. =) Applied perfectly

Re: [Catalyst] My experience porting to CataMoose

2009-05-13 Thread Tomas Doran
On 13 May 2009, at 16:55, Matt S Trout wrote: Maybe I can whip up some testcases tomorrow .. Maybe you can whip up some documentation tomorrow? Though it would be nice if modifier application before ->setup_plugins produced a warning explaining why that's bad, wrong, and not going to work

Re: [Catalyst] Problem with objects

2009-05-13 Thread Tomas Doran
Naylor Garcia wrote: I am creating a sub in the Model/IMAP.pm makes no connection with the database, but performs authentication via IMAP. But failing to call this sub in the controller. I am new to Catalyst and appreciate the help. Hi. Sorry, but you haven't explained what you're actually

Re: [Catalyst] How to bind an array using my own schema

2009-05-13 Thread Tomas Doran
Jakub Tutaj wrote: Hi! Is it possible to bind an array in code like below? Binding simple variables works perfectly... You appear to have posted to the wrong list. You want the DBIx::Class list, this has nothing to do with Catalyst. Thanks t0m ___

Re: [Catalyst] Catalyst dynamic SQL model and custom tables

2009-05-13 Thread Tomas Doran
ivan wrote: Is it possible add to dynamic SQL model in Catalyst custom sources and custom fields ? This question does not make sense, and has no details about what you're trying to achieve. Therefore, I'm going to answer 'Yes'. Everything is possible, it's just a simple matter programming.

Re: [Catalyst] Handling of "keywords" for controller methods

2009-05-13 Thread Tomas Doran
Roland Lammel wrote: I actually did that in intial patch, that just showed the erronous behaviour, I'll add that together and repost to the list, with a note of why that got changed in the test itself. Great stuff. Feel free to drop by irc and demand a commit bit so you can just commit it, r

Re: [Catalyst] Testing controller which require login.

2009-05-13 Thread Tomas Doran
Louis Erickson wrote: > I'm probably going to have several questions in the next few days about > tests. As usual in these parts, all questions welcome, although you implicitly volunteered to document anything not covered in the Manual/documentation already. Well volunteered in advance. ;_) I

Re: [Catalyst] Handling of "keywords" for controller methods

2009-05-12 Thread Tomas Doran
Roland Lammel wrote: Here is the very simplistic patch, which only renames the "actions" attribute to "_controller_actions" in Catalyst::Controller. Test suite still passes with the patch and my app that originally showed that error, is now also working like a charm. Great stuff, change looks

Re: [Catalyst] Need some help with Authorization setup

2009-05-12 Thread Tomas Doran
kakim...@tpg.com.au wrote: What am I missing out? Please help. My apologies for the many files here. Hmm, hard to tell from just looking at the code. It'd probably be easier if you made a TestApp which just contains the code in question (i.e. small enough section to demonstrate your issue)

Re: [Catalyst] More natural access to model?

2009-05-12 Thread Tomas Doran
Paweł Tęcza wrote: Thank you very much for your response! Is it a way to autogenerate all necessary subroutines in a loop or I need define all of them manually? They should have very similar body :) Here is the gross method: no strict 'refs'; foreach my $name (qw/ method_one method_two /) {

Re: [Catalyst] My experience porting to CataMoose

2009-05-12 Thread Tomas Doran
Daisuke Maki wrote: > I've switched an application of mine to CataMoose. Thanks for the hard > work, it's seems surprisingly stable for such a massive overhaul. Great, thanks a lot, and thanks for the feedback below! > I've observed a few glitches / gotchas, they seem like things that > probably

Re: Solved: [Catalyst] Howto Catalyst::Plugin::Captcha ?

2009-05-09 Thread Tomas Doran
t...@dix.cz wrote: I see! works for me. Thanx for good hint! Please, please please supply a doc patch to the module, or _at least_ report a bug in the module's rt.cpan queue, so that hopefully this will get fixed and nobody will struggle in future? Tomas Wow, someone who spells Tomas

Re: [Catalyst] Authorization Failure

2009-05-09 Thread Tomas Doran
Tomas Doran wrote: >> I'd recommend making a TestApp, pulling the relevant bits of >> controller code out (the bodies can be mostly blank, you only care >> about the paths), setting up trivial auth (no DB or anything needed, >> just use Auth::Store::Minimal), and

Re: [Catalyst] Odd Formbuilder behavior - parsing twice?

2009-05-09 Thread Tomas Doran
Fahd wrote: > I've deduced this from the very verbose FormBuilder debug output - it shows the same 'generated tag' three time for add, only once (and with correct values) for edit. Hi. Unfortunately, not that many people use FormBuilder these days, the book is fairly dated.. :/ I think your

Re: [Catalyst] Catlyst::Action::REST - NEXT warnings patch

2009-05-09 Thread Tomas Doran
Anthony Gladdish wrote:> I would like to know if I've gone about it correctly? And if so, could you review my patch and possibly apply? This patch looks fine, except: . You don't need to explicitly call Class::C3::initialize . You need to add the MRO::Compat dep to Makefile.PL . Add what you

Re: [Catalyst] My application is broken after upgrading to 5.80003. Please Help.

2009-05-08 Thread Tomas Doran
Oleg Pronin wrote: The problem is that on creation of MyApp object in Catalyst::prepare, i get MyApp object merged with (!!!) my config. The prepare method calls: my $c = $class->context_class->new({}); So I don't see where the config is coming from. MyApp->new does ok until this line of co

Re: [Catalyst] Authorization Failure

2009-05-08 Thread Tomas Doran
Ascii King wrote: the authorization component of my application no longer works properly. Did something change with Catalyst::Plugin::Authorization? I searched the lists, but I didn't see anything. The tests still all pass, and they do test this sort of thing. When testing the above stateme

Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]

2009-05-08 Thread Tomas Doran
Tomas Doran wrote: Nice one, applied with tiny changes as r10052. And shipped as 0.05. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]

2009-05-08 Thread Tomas Doran
Chisel Wright wrote: Attempt #2 attached - I think it covers everything mentioned above. Tests still pass. Running the patch from the top level with "-p 1" should work: Nice one, applied with tiny changes as r10052. Cheers t0m ___ List: Catalyst@l

Re: [Catalyst] Authorization Failure

2009-05-08 Thread Tomas Doran
Oleg Pronin wrote: But in TCP stream we send for example "/chess/action/make_move {JSON_DATA}" I do not see any differences between HTTP requests and request to the daemon. Just protocols are differ. If you're doing something like this, then the correct solution _is_ to be subclassing Catalys

Re: [Catalyst] Authorization Failure

2009-05-08 Thread Tomas Doran
Oleg Pronin wrote: How do i should in this case read my config in script context? use Config::General manually.. MyApp initializes everything - memcached, dbic, uuid, json, etc. Erm, yes, your config is gonna have memcached and dbic connection info in it.. I wasn't aware that generating

Re: [Catalyst] Authorization Failure

2009-05-08 Thread Tomas Doran
Oleg Pronin wrote: Not really :-) While in request, browser header is ok, but the task is to be able to authenticate in offline scripts as well - because the controllers and etc read logged in user from $c->user. Currently we use workaround - fake $c object + setup $c->request->header for base

Re: [Catalyst] Authorization Failure

2009-05-08 Thread Tomas Doran
Oleg Pronin wrote: I've got problem with new Authentication too. It is said that one can pass login & password to authenticate call. But it somewhy no longer authenticates that way (in case of Credential::HTTP) Credential::HTTP doesn't work like that. The credentials for HTTP auth come from t

Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]

2009-05-07 Thread Tomas Doran
Tomas Doran wrote: Chisel Wright wrote: - one for View::HTML::Template to deal with the Catalyst::Base warning Committed as r10042. And marcus has sent this to CPAN as 0.03. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]

2009-05-07 Thread Tomas Doran
Chisel Wright wrote: I've attached three patches: Nice work :) For future, patches are possibly best from the top of the distribution, so that you can just apply them from there without having to work out where to cd into (for your patches, I had to cd lib, then patch, then cd ../t, then pa

Re: [Catalyst] Catalyst::Plugin::Scheduler - NEXT warnings patch

2009-05-07 Thread Tomas Doran
Anthony Gladdish wrote: Attached are my diffs and I've put the version number up to 0.09. Passes in Catalyst::Runtime 5.8 + perl 5.10. Passes in Catalyst::Runtime 5.7011 + perl 5.8.8. Great, thanks for the patches. Applied as r10035 with slight changes, and I'll also prod people to get it re

Re: [Catalyst] How do I set the default view in Catalyst?

2009-05-06 Thread Tomas Doran
kakim...@tpg.com.au wrote: From what I have read, to set default view to TT, I have to declare 'default_view' => 'TT', in my myApp.pm file. That's exactly right. So you'll be saying: __PACKAGE__->config( default_view => 'TT' ); in MyApp.pm Cheers t0m ___

Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder

2009-05-05 Thread Tomas Doran
On 5 May 2009, at 22:05, Chisel Wright wrote: On Tue, May 05, 2009 at 11:46:49AM -0700, Louis Erickson wrote: t/01-basic.TestApp::Component::TT is trying to use NEXT, which is deprecated. Please see the Class::C3::Adopt::NEXT documentation for details at /Users/davebowers/.cpan/bui

Re: [Catalyst] Forward to view question

2009-05-05 Thread Tomas Doran
On 5 May 2009, at 20:19, Dennis Daupert wrote: I just got your post, plugged it in, got an error. I'll need to play with this a bit, Sorry for pointing out the obvious, but this is just perl: my $output = delete $c->res->{body}; opem(FH, ">file") or die; print FH $output; close(FH); wil

Re: [Catalyst] Slow fastcgi: A debugging aid

2009-05-05 Thread Tomas Doran
Octavian Râsnita wrote: My development and test server is under Windows and the production server under Linux, so because perl is not a really fully portable language, I also need to do tests under the production server, which is not very nice. If your development environment doesn't look as

Re: [Catalyst] Unknown error

2009-05-01 Thread Tomas Doran
Octavian Râşniţă wrote: Does this mean that if I will compile Perl 5.10.0 from the tarball, it will give the same error? Yes. If yes, is Perl 5.10.1 available somewhere and stable enough for beeing recommended to install it? I wouldn't run bleed perl in production, but why not use that fo

Re: [Catalyst] Is there a good solution of file cache? which plugin is recommended?

2009-04-30 Thread Tomas Doran
Malloy wrote: I think your forgot to explain what problem you would like solved. 'file cache' isn't very clear. I guess you probably want Catalyst::Plugin::PageCache however. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists

Re: [Catalyst] website member urls

2009-04-30 Thread Tomas Doran
J. Shirley wrote: If you did want to do something in Catalyst, you could create a plugin that runs after prepare_path and modifies $c->request->path accordingly (match off $c->req->base domain)... it'd be an interesting plugin, that's for sure. I'm sure some of the deeper Catalyst hackers can

Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded

2009-04-30 Thread Tomas Doran
kakim...@tpg.com.au wrote: " Try subclassing Catalyst::Request::Upload," --> What does it mean and how do I go about doing it? Then again, another question would be, "is it a core issue? ". Catalyst::Plugin::Upload::Image::Magick contains code which says Catalyst::Request::Upload->mk_acce

Re: [Catalyst] Scalable Catalyst

2009-04-30 Thread Tomas Doran
Alejandro Imass wrote: Anyway, the message is that with mod_worker/mod_perl you can spawn _thousands_ of threads, getting impressive concurrency (without counting the mutex). We have tested Catalyst applications that handle _thousands_ of concurrent requests using off the shelf AMD 64Bit HW and 1

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80003

2009-04-29 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the second maintenance release of Catalyst 5.80. This release fixes a number of bugs and regressions found in the previous releases. As far as I can see, this fixes every regression against 5.71 reported thus far, except for a

Re: [Catalyst] Similar attribute appears twice despite a single POST (submit) request.

2009-04-29 Thread Tomas Doran
kakim...@tpg.com.au wrote: Guys, if the user is clicking on the submit button in step 6, that's a POST request. So, why is the a 'query parameters' block present? From my understanding, a query_parameter block is for GET requests. Doing a POST to /foo?id=58 will fill query_parameters, as you wo

Re: [Catalyst] Can't seem to use forward or detach. Any special requirements?

2009-04-29 Thread Tomas Doran
kakim...@tpg.com.au wrote: The app works fine except that I have set up an eval block within my controller. My detach call comes right after the redirect call. It looks like this: $c->res->redirect($c->uri_for('/users/subscriptions/added ')); $c->detach (); Wha

Re: [Catalyst] Using path_to()

2009-04-29 Thread Tomas Doran
Octavian Rasnita wrote: Can't locate object method "path_to" via package "MyApp::View::TT" at D:/web/MyApp/scr ipt/../lib/MyApp/View/TT.pm line 7. It works if I use MyApp->path_to() instead... Generally, it would be also very helpful if we could find which methods are offered by a certain $c

Re: [Catalyst] unexpected behavior of $c->request->secure and $c->request->base

2009-04-28 Thread Tomas Doran
Phil Mitchell wrote: For (a) documentation, I took a stab at writing some. If this looks okay, I'll submit a patch ... Heh, unified diffs are easier to read (at least to me) than scanning for [ADDED]. That said, this looks good, please submit said patch :) Thank you! t0m __

Re: [Catalyst] unexpected behavior of $c->request->secure and $c->request->base

2009-04-26 Thread Tomas Doran
On 26 Apr 2009, at 00:13, Bill Moseley wrote: On Sat, Apr 25, 2009 at 04:23:50PM -0400, Hans Dieter Pearcey wrote: On Sat, Apr 25, 2009 at 06:29:50AM -0700, Bill Moseley wrote: The SSL decryption is happening on Apache and Apache is proxying the request to Catalyst. What? No it isn't. It'

Re: [Catalyst] so many 'sleep' process in mysql.

2009-04-26 Thread Tomas Doran
On 25 Apr 2009, at 05:20, Malloy wrote: I use 'Catalyst::Model::DBIC::Schema'. But i find so many 'sleep' process in mysql. Is it normal? If not, why and how to avoid it? At a guess, you're running mod_perl, and you have loads of idle apache processes. You'll gain one persistent db conn

Re: [Catalyst] unexpected behavior of $c->request->secure and $c->request->base

2009-04-24 Thread Tomas Doran
On 24 Apr 2009, at 22:10, seasproc...@gmail.com wrote: The expected behavior (for me) is that secure() returns true if the connection is secured via SSL. Looking at Engine::CGI, it appears that it only returns true if $ENV {HTTPS} eq 'ON' or if you're on Port 443. Furthermore, if secure

Re: [Catalyst] config log in component?

2009-04-24 Thread Tomas Doran
On 23 Mar 2009, at 19:10, Tomas Doran wrote: Is there a way in the config file (Config::Any in my case) to tell the Authen::Simple code to use the logger from Cat? EG Not currently, but looks like a really really trivial patch to me: Please see version 0.05 (on CPAN now) which

Re: [Catalyst] RFC: Sample press release and announcement homepage

2009-04-24 Thread Tomas Doran
Jesse Sheidlower wrote: I've restructured the press release based on comments from John, Chris, and others. Nice work, starting to come together really well IMO. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi

Re: [Catalyst] Problem with authentication

2009-04-22 Thread Tomas Doran
Renee Bäcker wrote: Tomas Doran schrieb: Erm, something wacky is going on here - how come you're rendering a template if this is a redirect? Are you using RenderView, and can you show us your end action? the end action is just a forward to the view class. Don't do that. Use

Re: [Catalyst] Problem with authentication

2009-04-22 Thread Tomas Doran
Ben Vinnerd wrote: Should... user_class: DB::grips_user ...be user_model: DB::grips_user Good call! Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http:

Re: [Catalyst] Problem with authentication

2009-04-22 Thread Tomas Doran
Renee Bäcker wrote: [info] *** Request 1 (0.167/s) [10155] [Wed Apr 22 12:56:43 2009] *** [debug] Body Parameters are: .-+--. | Parameter | Value | +-+

Re: [Catalyst] Problem with authentication

2009-04-22 Thread Tomas Doran
Renee Bäcker wrote: Hi *, I want to use authentication in my catalyst app. The authentication seems to work, but I can't access any user information as $c->user is undefined. The log says "login successful:" but nothing more. What is wrong with my code? Nothing appears wrong with that co

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80002

2009-04-21 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the first maintenance release of Catalyst 5.80. This release fixes a number of bugs and regressions found in the initial release. As far as I can see, this fixes every issue reported thus far in the initial release. If you hav

Re: [Catalyst] Problem with reloading in fresh project (5.80001)

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 20:53, Oleg Kostyuk wrote: Really, I not write any new code, but server can't restart. I'm sure that this is not expected behaviour. Is this known bug? No, it wasn't a known bug. Only happens on perl 5.10, and I do most of my development on 5.8 (although I run 5.10 some pl

Re: [Catalyst] Re: [ANNOUNCE] Re: Catalyst Runtime 5.80001 - MooseX::MethodAttributes::Inheritable 0.06

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 20:50, Tomas Doran wrote: I think you'll find that this will _only_ happen for controllers whos names sort alphabetically below 'Base.pm', and which don't contain any actions. I guess that is pretty atypical for normal applications :) Still a bug

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 20:58, Oleg Kostyuk wrote: I don't think that was what Matt asked for. Anyways, 1) Why can't your changes be a patch to Text::SimpleTable? I think that new module will be better in this case, because someone else can be needed unchanged Text::SimpleTable. sri _wrote cataly

[Catalyst] Re: [ANNOUNCE] Re: Catalyst Runtime 5.80001 - MooseX::MethodAttributes::Inheritable 0.06

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 09:53, Octavian Râsnita wrote: But if I rename the BlaBla.pm controller to Ana.pm and also edit it to be package T5::Controller::Ana; the server doesn't start, but gives the error below. I can replicate this, and I've got a fairly good idea what it's caused by - this

Re: [Catalyst] nmake catalyst_par

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 10:01, Octavian Râşniţă wrote: Thanks and sorry for not giving a complete explanation, but I use Perl 5.10.0. I've also added "use Class::C3" but it still gives the error below. I will report this to the PAR mailing list if you think it is a PAR error. That sounds reaso

Re: [Catalyst] [PATCH] Catalyst::DispatchType::Chained (5.7101, 5.80001)

2009-04-20 Thread Tomas Doran
On 20 Apr 2009, at 03:16, Oleg Kostyuk wrote: As I see, we don't have this error in 5.80001, but we have other error nearly to same place: == --- Chained.pm.orig 2009-04-20 05:10:24.0 +0300 +++ Chained.pm 2009-04-2

Re: [Catalyst] Local action in controller not mapping to template (retry)

2009-04-19 Thread Tomas Doran
On 19 Apr 2009, at 15:55, Anne Brown wrote: Apache says: File does not exist: c:/webs/webapp/www/somecontroller/ Does anyone know what I'm doing wrong? This doesn't make any sense - : Private makes an action not dispatchable, you have to forward to it.. Also, does everything work c

Re: [Catalyst] nmake catalyst_par

2009-04-19 Thread Tomas Doran
On 19 Apr 2009, at 17:27, Octavian Râşniţă wrote: With Catalyst 5.8 I've tried: E:\web\T2> perl Makefile.PL ... E:\web\T2> nmake ... E:\web\T2> nmake catalyst_par ... Could be an error of PAR, or something else? I guess you're using perl 5.8 rather than 5.10? If so, then this is as PAR

[Catalyst] [ANNOUNCE] Re: Catalyst Runtime 5.80001 - MooseX::MethodAttributes::Inheritable 0.06

2009-04-19 Thread Tomas Doran
Octavian Râsnita wrote: Congratulations to all for this much awaited version! Thank you very much. I want to report something that might be a packaging bug, or maybe you can tell me what could be the problem... This version requires MooseX-MethodAttributes-0.05.tar.gz and I couldn't instal

[Catalyst] [ANNOUNCE] Catalyst Runtime 5.80001

2009-04-18 Thread Tomas Doran
The Catalyst Core Team is proud to announce that we've just shipped the next major release of the Catalyst framework, version 5.8001. This release is the result of the helpful contributions of a large number of people, comprising documentation, new features, bug fixes and entire branches of

Re: [Catalyst] Catalyst::Plugin::Session::State::Cookie and HttpOnly flag

2009-04-18 Thread Tomas Doran
On 17 Apr 2009, at 10:37, Scott Thomson wrote: CGI::Simple::Cookie 1.109 (soon to hit the mirrors) now contains support for HttpOnly. You sir, are a bloody legend, good work :) My question now is about the tests for the Catalyst components, I've had a dig through them and I can't see where I

Re: [Catalyst] PAR file - can't build it . Prolly documentation is out of date?

2009-04-18 Thread Tomas Doran
On 17 Apr 2009, at 03:21, kakim...@tpg.com.au wrote: Quoting Tomas Doran : How do you guys get your PAR files made? We don't. PAR isn't a recommended deployment method these days. K. akimoto: Really?? i would really suggest someone to the mention of it out of the Catalys

Re: [Catalyst] Keep getting checksum mismatch problems each time I regenerate my schema files

2009-04-18 Thread Tomas Doran
This discussion should be on the DBIC list really, as it doesn't have much to do with Catalyst. On 17 Apr 2009, at 03:27, kakim...@tpg.com.au wrote: Quoting John Romkey : Look in the schema file. You see this line? # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum: it means that you m

Re: [Catalyst] Tutorial for cache?

2009-04-16 Thread Tomas Doran
On 16 Apr 2009, at 08:54, Graeme Lawton wrote: Also Catalyst::Plugin::Cache::Store::FastMmap is now deprecated as you can use it without store, and should see a slight performance improvement. Erm, the configuration which was shown doesn't use C::P::Cache::Store::FastMMap. Also, I guess i

Re: [Catalyst] Advice Needed on Masking Sensitive Content from Logs

2009-04-16 Thread Tomas Doran
On 16 Apr 2009, at 00:27, Ewan Edwards wrote: As you can see, I've taken the opportunity to mask the password from the log too. My question is: is there a better, or more Catalyst-approved way of accomplishing this? This seemed to be the most direct/simple way, but it would have been n

Re: [Catalyst] PAR file - can't build it . Prolly documentation is out of date?

2009-04-16 Thread Tomas Doran
On 16 Apr 2009, at 06:57, kakim...@tpg.com.au wrote: Hi there, I refered to http://catalyst.infogami.com/cookbook/par. I can't seem to find the line, "catalyst_files();". I don't know what you're talking about - as that phrase isn't mentioned anywhere in that document. How do you

Re: [Catalyst] Tutorial for cache?

2009-04-16 Thread Tomas Doran
On 16 Apr 2009, at 07:32, Alexander Tamm wrote: Tomas Doran wrote: Take a look at Catalyst::Plugin::Cache. The docs are a bit crap (patches welcome!), but it'll do what you want, and has nice features to give you curried accessors for things etc.. Well, that's just it... I&#

Re: [Catalyst] Tutorial for cache?

2009-04-15 Thread Tomas Doran
On 15 Apr 2009, at 07:23, Alexander Tamm wrote: J. Shirley wrote: I'm trying to find out how to implement caching on a site, preferrably with Cache::FastMmap, but I'm open to suggestions. I'm not including my trial source now, since I'm unsure I have read the correct docum

Re: [Catalyst] Using JSON

2009-04-14 Thread Tomas Doran
On 14 Apr 2009, at 16:05, Octavian Râşniţă wrote: What's the recommended module for getting a JSON request and creating a JSON response in a Catalyst app? (I want to use them with JQuery.) I'm using Catalyst::Controller::REST to go to/from JSON. HTH t0m __

Re: [Catalyst] Catalyst::Plugin::Session::State::Cookie and HttpOnly flag

2009-04-14 Thread Tomas Doran
On 14 Apr 2009, at 10:58, Scott Thomson wrote: Currently Catalyst::Plugin::Session::State::Cookie doesn't allow configuration of the HttpOnly flag, it looks trivial to add, so basically I'm wondering whether this idea has been discussed and discounted before and if there is any reason why I shou

Re: [Catalyst] Issue with Catalyst:Can't locate object method "get_user" via package "Catalyst::Plugin::Authentication::Store::DBIC"

2009-04-08 Thread Tomas Doran
kakim...@tpg.com.au wrote: When was "http://search.cpan.org/~hkclark/Catalyst-Manual-5.7020/lib/Catalyst/Manual/Tutorial/Authentication.pod"; updated? Does it reflect the latest modules? Please revert. Yes, the latest documentation reflects the latest code. And I don't see any reason to reve

Re: [Catalyst] Installing Catalyst::Authentication::Store::DBIx::Class Breaks Catalyst

2009-04-08 Thread Tomas Doran
Collin Condray wrote: As J. has requested here are the relevant parts of my configuration files: 'Session::Store::FastMmap', I'd be prepared to bet that the issue with C3 was related to an old version of this plugin. Upgrading this will have solved your issue, not DBIC or Class::C3(::X

Re: [Catalyst] Installing Catalyst::Authentication::Store::DBIx::Class Breaks Catalyst

2009-04-08 Thread Tomas Doran
Collin Condray wrote: This completely rendered my site totally unusable. Now I am receiving the error: Inconsistent hierarchy during C3 merge of class 'myAPP': merging failed on parent 'Class::Accessor::Fast' at /home/username/local/lib/perl/5.8.4/Class/C3/XS.pm line 56., referer: https://www.

Re: [Catalyst] Error calling table class method from Catalyst

2009-04-03 Thread Tomas Doran
Dennis Daupert wrote: __PACKAGE__->load_components("ResultSetManager","Core"); You know ResultSetManager is deprecated / not recommended and scheduled for deletion, right? Guess you're getting this from the catalyst book, I'd recommend seeing the errata page which covers this (http://dev.cat

Re: [Catalyst] HTTP Response body doesn't get sent

2009-04-03 Thread Tomas Doran
Terence Monteiro wrote: In my Catalyst application, I'm reading an attachment of a multipart message into a variable and trying to send it as HTTP response. I've set the content type too, but I don't get the file on the browser. I'm getting the following in the log: Caught exception in engine "

Re: [Catalyst] Init Question and Not Loading a Model Question

2009-04-03 Thread Tomas Doran
Dylan Martin wrote: I have two questions: 1st, where is a good place to mess with a Cat instance after its instantiated its components but not during requests? setup_finalize is the 'approved' hook to run stuff after all the plugins and components are setup, but before requests start. You n

Re: [Catalyst] Catalyst 5.8 NEXT deprecated warnings

2009-03-31 Thread Tomas Doran
Anthony Gladdish wrote: Does anyone know if these plugins are to be updated/fixed to remove this dependency on NEXT, or if there is a recommended work around? Yes, they are, people have been converting things as they've cared about them. As you seem to care about these two, I think you just v

Re: [Catalyst] Catalyst LDAP SASL

2009-03-31 Thread Tomas Doran
Walter Vargas wrote: I'm working with *Catalyst::Authentication::Store::LDAP and Catalyst::Model::LDAP*, but i dont want use SSL, i want use SASL how to do that ? Neither of these support SASL, but it would be easy to add. Net::LDAP->bind($dn, password => 'password'); # What happens currentl

Re: [Catalyst] Application stallling problem

2009-03-26 Thread Tomas Doran
kakim...@tpg.com.au wrote: sorry, guys, some bad character encodings from my mail client. Here's the mail again: Any ideas?? Not sure, but I think its something between the server you're using and the browser - if you're getting the request table, then as far as the Catalyst server is awar

Re: [Catalyst] config log in component?

2009-03-23 Thread Tomas Doran
Dylan Martin wrote: Hello everyone. I'm using Catalyst for the first time and I'm using Authen::Simple for authentication. Authen::Simple and Catalyst have very similar ideas about logging, where your Authen::Simple object and your Cat object each take a Log4Perl/Log::Dispatch object like so:

Re: [Catalyst] Using Test::Log4perl, testing cat log output only works after firing initial request

2009-03-23 Thread Tomas Doran
Anthony Gladdish wrote: Has anyone else experienced this problem? Should this be happening in this way and is there a fix or workaround? I'm trying to test and iron this out prior to rolling out into production. I certainly haven't seen this sort of behavior in my applications. Can you try

Re: [Catalyst] how to authenticate using database users

2009-03-23 Thread Tomas Doran
Adam Witney wrote: For general information, with a *lot* of help from mst on IRC, i have something working using a custom Catalyst::Authentication::Store::*. I will get it packaged up and submit it when i have written some docs for it Thats awesome :_) If you can get it somewhere in the Catal

Re: [Catalyst] UTF8 Characters in Chained Arguments

2009-03-20 Thread Tomas Doran
On 21 Mar 2009, at 00:02, Rod Taylor wrote: I've found that URI parameters (?foo=bar) function fine but unicode characters in Chain() arguments do not survive from one page to the next. This is almost certainly a bug. Can you try and work up a test case, either against C::P::U, or against

Re: [Catalyst] how to authenticate using database users

2009-03-20 Thread Tomas Doran
Karl Forner wrote: 2) write a custom Authentication plugin, the your specific code is in _authenticate_against_SGDB package Serono::Gecko::Business::CredentialVerifier; use Catalyst::Plugin::Authentication::User::Hash; sub authenticate { my ( $self, $c, $realm, $authinfo ) = @_; You kn

Re: [Catalyst] Catalyst::Engine::HTTP and Expect.pm

2009-03-19 Thread Tomas Doran
Frank Wiegand wrote: Hi, I have problems to get Expect.pm working within the builtin test server. Anyone else used Expect.pm and got this behaviour? I use Catalyst::Engine::HTTP from Catalyst-Runtime-5.8000_06. No, but I'd guess that this may fix your issue: http://dev.catalyst.perl

Re: [Catalyst] Accessing a Controller from ~/script

2009-03-11 Thread Tomas Doran
Dermot wrote: Currently I load the configuration into the stand alone Class with a combination of FindBin and Config::General. I thought I could avoid that seeming as config is already in my context ($c). So I did: package MyApp::Model::MyAdaptor; use strict; use warnings; use base 'Catalyst::Mo

Re: [Catalyst] Thoughts On GeoIP Modules?

2009-03-11 Thread Tomas Doran
Andy Dorman wrote: We have several signup web sites using Catalyst. Recently we have realized we are going to have to limit signups by geographical region to help limit abuse. Captchas (we use and love reCaptcha) and other heuristics just do not seem to be sufficient. Please start new threads

Re: [Catalyst] reconnecting the DB model using a different DB account

2009-03-11 Thread Tomas Doran
Karl Forner wrote: The problem is that I get error messages [error] DBIx::Class::Storage::DBI::ensure_connected(): DBI Connection failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME (Linux) env var or PATH (Windows) and or NLS settings, permissions, etc. I have tried using directly the DBI dbh

Re: [Catalyst] Problem with static model in Tutorial::MoreCatalystBasics

2009-03-11 Thread Tomas Doran
Adam Witney wrote: ok, so i posted too soon and have figured out the problem. I need to add "Result" into the relationships. Does the Tutorial need to be updated to reflect this? If so i have included below a quick patch against http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Manual/5.70

Re: [Catalyst] clear() method for Catalyst::Plugin::Cache?

2009-03-11 Thread Tomas Doran
Larry Leszczynski wrote: But I see your point about the danger of clearing/flushing more than you might expect. Regardless of cache flavor, you could set up separate backend instances for different pools of data (via e.g. different cache_roots for Cache::FileCache or different server instances f

Re: [Catalyst] Can't locate method ??? via MyApp

2009-03-03 Thread Tomas Doran
On 3 Mar 2009, at 10:22, Dermot wrote: Loading a leaf node in your object graph does not imply loading all of its parent nodes. Is this because of use base? I was under the impression that the inheritance search would go up to the parent. Correct, but MyApp::Model::Foo ISA Catalyst::Model:

Re: [Catalyst] Google Summer of Code: mentors, projects

2009-03-03 Thread Tomas Doran
On 3 Mar 2009, at 07:06, Kieren Diment wrote: I'm still keen on the idea of an easy Perl/Catalyst installer. Something that might encompass local::lib, PAR and deployable on the three or four main OSs windows (strawberry perl), OS X (10.4 and 10.5, using the system provided perl) and lin

Re: [Catalyst] Google Summer of Code: mentors, projects

2009-03-03 Thread Tomas Doran
On 3 Mar 2009, at 09:08, Octavian Râsnita wrote: Of course, the only out of the box solution for running the apps would be the CGI way, because for running the testing server or for configuring fastcgi or mod_perl would need root permissions, but I think this is the same in case of other fr

Re: [Catalyst] Can't locate method ??? via MyApp

2009-03-03 Thread Tomas Doran
On 3 Mar 2009, at 09:40, Dermot wrote: Hi, Running prove over my t directoty is giving me errors: Error: Can't locate object method "config" via package "MyApp" at lib/MyApp/Model/DB.pm line 7. Can't locate object method "path_to" via package "MyApp" at lib/MyApp/View/TT.pm line 20.

Re: [Catalyst] PathPart("") v PathPart compared with Path("") v Path

2009-02-28 Thread Tomas Doran
On 28 Feb 2009, at 21:27, Ashley wrote: Just throwing that out there if anyone is under that part of the hood or someone Googling for why their Chained stuff won't work made the same error in assumptions I just did. :) Wild stab in the dark, Path works like this: my @register = @{ $act

Re: [Catalyst] (OT) Navigation parameters in session

2009-02-27 Thread Tomas Doran
On 26 Feb 2009, at 16:54, Zbigniew Lukasiak wrote: I think I can have some fighting chance to counter that trend if I feed the bosses with some authoritative enough documents. From the horses mouth (Tim Berners-Lee) in 1991: http://www.w3.org/DesignIssues/UI.html > Some basic principles: > >

Re: [Catalyst] stripping path parts and then redispatch?

2009-02-25 Thread Tomas Doran
On 25 Feb 2009, at 01:49, Bill Moseley wrote: At what catalyst version can you use $c->next:: ? Any version where you use MRO::Compat Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catal

<    4   5   6   7   8   9   10   11   >