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

[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

[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

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

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

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

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

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

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
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: 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] 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] 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] 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] 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-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] 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] 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] 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] 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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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: 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] 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] 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] 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] 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] 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] 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] 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: 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] 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: [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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] Error calling table class method from Catalyst

2009-05-15 Thread Tomas Doran
Tomas Doran wrote: Dennis Daupert wrote: $c->model('HdeDB::Files')->make_versioned_filename( $id, $filename ); Unknown error This looks to me like the perl 5.10.0 attributes bug, which causes 'Unknown error' rather than a useful message. I think I may have been f

Re: [Catalyst] My experience porting to CataMoose

2009-05-15 Thread Tomas Doran
Tomas Doran wrote: 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? Any news on a hand with the documentation anyone? As far as I can see, this is the only thing which really needs sorting

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

2009-05-15 Thread Tomas Doran
Emmanuel Quevillon wrote: I tried to follow your advices, but unfortunately, I looks like MyApp->model().. does not work : Couldn't instantiate component "MyApp::Model::Mapping", "Can't locate object method "model" via package "MyApp::Model::Mapping" I also tried with $self without success

Re: [Catalyst] My experience porting to CataMoose

2009-05-15 Thread Tomas Doran
Sebastian Willert wrote: I'll give it a try this weekend, having 5.80004 is enough encouragement ;) I guess the main body should go into "Extending Catalyst" while having a pointer to this in "Upgrading"? Great. And yes, that sounds right to me. I'm probably going to do a bit more in ::Upgrad

Re: [Catalyst] Catalyst IPv6 support?

2009-05-18 Thread Tomas Doran
Matija Grabnar wrote: Good news: A catalyst application loaded into an IPv6 configured apache works on IPv6 or on dual IPv4/IPv6 stack completely transparently and without any problems. Cool. Any chance you could write this up on the wiki as it's a frequently (or, at least, more than once) as

Re: [Catalyst] Another thread about porting to CataMoose

2009-05-18 Thread Tomas Doran
J. Shirley wrote: While an obvious blunder to make while coding, I wasn't alerted to anything and the application started with no warnings and no indication that something was wrong. The only thing is that my 'rpx' method no longer was dispatchable. Oops. Hmm, I think that this is actually

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

2009-05-18 Thread Tomas Doran
kakim...@tpg.com.au wrote: Hello, Collin, My modules are: | Catalyst::Plugin::Authentication 0.10011 | | Catalyst::Plugin::Authentication::Credential::Password Woah there! Why are you using Catalyst::Plugin::Authentication::Credential::Passw

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

2009-05-18 Thread Tomas Doran
kakim...@tpg.com.au wrote: 2) Modified MyApp.pm and Schema/Users.pm, Schema/UserRoles.pm and Schema/Roles.pm to reflect my database model. This is what my MyApp.pm has for plugins: # Load plugins use Catalyst qw/-Debug ConfigLoader Static::Simple StackTrace

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80004

2009-05-18 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the third maintenance release of Catalyst 5.80. This release fixes a number of bugs and regressions found in the previous releases, and adds the ability for roles . As far as I can see, this fixes every regression against 5.71

Re: [Catalyst] 15s latency with fastcgi+Apache2+catalyst 5.8

2009-05-19 Thread Tomas Doran
Paul Makepeace wrote: I have Apache and libapache2-mod-fastcgi and the server running in standalone. It's been working fine in the old Apache 1.3 + Catalyst 5.7012 environment for years. Why are you changing _everything_ at once? Why not upgrade from apache 1 => apache 2, and then upgrade Cata

Re: [Catalyst] Authorisation

2009-05-19 Thread Tomas Doran
On 19 May 2009, at 18:19, Ivan Wills wrote: Thanks I did have a 'Plugin::Authentication' => {...} line, fixing that got rid of the spurious DB::User error. By 'fixing that' you mean moving all your config out of the 'authentication' key, and into the 'Plugin::Authentication' key, not th

Re: [Catalyst] Catalyst::Controller::DBIC::Transaction Integration

2009-05-19 Thread Tomas Doran
On 16 Mar 2009, at 10:45, Carl Franks wrote: I think now that Catalyst::Controller::HTML::FormFu isn't first in the inheritance list, its create_action() isn't being called. Yuk, as we get plain old perl method dispatch order, so you get: Other::Thing => Catalyst::Controller; I guess adding

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

2009-05-19 Thread Tomas Doran
On 19 May 2009, at 13:01, Emmanuel Quevillon wrote: I tried what you mentioned but it didn't change anything unfortunately. Has someone in the list another idea what's is going wrong? No idea as we don't know where it's being called from, or why it's failing. Try with perl -MDevel::Simple

Re: [Catalyst] Problem with column in DBI

2009-05-20 Thread Tomas Doran
Naylor Garcia wrote: I need to make a select in database of the a specific column, but the result is a array. How I do to get a specific column? I think that you meant to post to the DBIC list. my $change_color = [$c->model('database::dominio')->search( { id_domain => 21240, name => {

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

2009-05-20 Thread Tomas Doran
Emmanuel Quevillon wrote: Thanks to try helping me. Here is the Trace from Devel::SimpleTrace. Actually, the error is not even when I try to call my method from my Catalyst::Model but when I start the dev server : Aha, yes - the stack trace makes it fairly clear what's happening! Catalyst is

Re: [Catalyst] 15s latency with fastcgi+Apache2+catalyst 5.8

2009-05-20 Thread Tomas Doran
Arjuna Del Toso wrote: On Tue, 19 May 2009 17:49:32 +0100 Paul Makepeace wrote: Any other hints? My 2 cents: have you tried to disable mod_deflate (if running)? Oh yes, good call - that's a known gotcha. Can someone work up a doc note to stick in ::Engine::FastCGI about that? Cheers t0m

Re: [Catalyst] RESTful authentication

2009-05-21 Thread Tomas Doran
Christian Lackas wrote: I already did some googling, but did not find a satisfying answer yet. What is state-of-the-art approach to control access to REST resources. When you say 'REST resources', I'm guessing you mean some sort of API, rather than a normal person facing site which happens to

Re: [Catalyst] Run the test server on a different port than 3000

2009-05-21 Thread Tomas Doran
Update Catalyst::Devel to at least 1.15 and regenerate your scripts, you're currently using scripts generated by 1.13 or 1.14 which suffered from this bug. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mai

Re: [Catalyst] Run the test server on a different port than 3000

2009-05-21 Thread Tomas Doran
On 21 May 2009, at 20:11, Octavian Râşniţă wrote: In my test I created a new app, so regenerating the scripts isn't helpful. Anyway, I have also tried to create a new app, and regenerate the scripts, but it still doesn't work with -p. On 21 May 2009, at 18:41, Tomas Doran wro

Re: [Catalyst] Strange RenderView error

2009-05-23 Thread Tomas Doran
Ivan Wills wrote: |Caught exception in Diet::Controller::Root->end "Can't use an undefined value as a HASH reference at /usr/local/share/perl/5.10.0/Catalyst/Action/RenderView.pm line 34."| This only with one of my controllers all the others work fine, also the line mentioned in RenderView use

Re: [Catalyst] Plugin::Cache silent failures

2009-05-23 Thread Tomas Doran
Apologies for the delay, I'm a little behind on things this week.. Bill Moseley wrote: Unfortunately, Cache::Entry doesn't really specify a return value for set(), but common backends like Memcached and FastMmap do seem to return a value indicating success. Not sure if there are other commonly

Re: [Catalyst] Run the test server on a different port than 3000

2009-05-23 Thread Tomas Doran
Tomas Doran wrote: and a new Catalyst-Devel will be released shortly.. This has now happened, please upgrade so that you don't have this problem again. Thanks t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cg

Re: [Catalyst] Strange RenderView error

2009-05-24 Thread Tomas Doran
Ivan Wills wrote: I have finally worked out what was causing me the problem, if I take away the :Arg(0) from the sub definition the error goes away. Does any one know what :Arg(0) is doing that might be causing this? Erm, which subroutine definition? I just generated a TestApp, and changed '

Re: [Catalyst] ACL Error: deny_access_unless

2009-05-26 Thread Tomas Doran
Gordon Stewart wrote: Does anyone know where in the catalyst code it contacts the database to check if a user has the rights in question? It should be calling $c->user->roles, and this gets the list of roles for the user in question. How this lookup is performed will vary depending on which

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