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

2009-09-23 Thread Tomas Doran
On 23 Sep 2009, at 07:38, Toby Corkindale wrote: Marcus Ramberg wrote: Another day, another Catalyst 5.8 maintainance release. This time, lucky number 13. The main reason for this release is a change in the guts of the most recent Class::MOP. Thus, this release depends on the latest Moose/

Re: [Catalyst] Hi, First time using Catalyst and get an install error

2009-09-22 Thread Tomas Doran
On 22 Sep 2009, at 19:02, David Silva wrote: Hi again, i updated CPAN to 1.9402, but the error apeared again, só i decided to force the installation. Have to see if everything is working. There is any command line to see if it is installed already? Well, perl -MModule::Name::Here -e1 wi

Re: [Catalyst] Hi, First time using Catalyst and get an install error

2009-09-22 Thread Tomas Doran
David Silva wrote: Hi everyone! I'm new with Catalyst Framework, and i was installing it with CPAN, everthing was ok until i get an error message: t/01use.t (Wstat: 256 Tests: 2 Failed: 1) Hiya David. The actual useful error message will occur significantly before whe

Re: [Catalyst] FastCGI on dev. server, reloading modules?

2009-09-19 Thread Tomas Doran
On 19 Sep 2009, at 12:54, Christiaan Kras wrote: So far I've always tested my Catalyst apps running through CGI. Since FastCGI gives such a performance boost I was wondering if I can test with FastCGI without having to manually restart my instances after I've made a change to a controller/m

[Catalyst] MooseX::MethodAttributes dev release - please test!

2009-09-18 Thread Tomas Doran
Hiya I have released MooseX::MethodAttributes 0.16_01, which solves the issues with role combination for method attributes roles. Specifically, in a class, you can now say: with qw/ Role1 Role2 /; and the role composition (and conflict detection) will work correctly, rather than hav

Re: [Catalyst] best practice for a protocol mechanism?

2009-09-09 Thread Tomas Doran
On 9 Sep 2009, at 21:35, Bernhard Graf wrote: Zbigniew Lukasiak wrote: I am not entirely sure that I understand what you mean by protocol action - but how about a plain old method call: MyApp::Controller::Root->myProtocolAction( $c, "some message that should be protocolled" ); I think Jens

Re: [Catalyst] Catalyst::Helper Changes

2009-09-09 Thread Tomas Doran
On 8 Sep 2009, at 20:47, kevin montuori wrote: On Tue, Sep 8, 2009 at 3:14 PM, Devin Austin wrote: Can you explain a little more in depth what you're looking to do? Sure. Among other things I'd like the myapp.conf file to live in $root/etc/config and be YAML format. This involves creat

Re: [Catalyst] Integrating Catalyst Applications

2009-09-07 Thread Tomas Doran
Ovid wrote: Are there any guidelines or suggestions on how to approach something like this? Ultimately I'd like to incorporate forums, wikis and other features into my site, but it seems like a bunch of stuff would have to be custom code. There have been several threads which touch on this r

Re: [Catalyst] Where to add access control? Override execute() or dispatch()?

2009-09-02 Thread Tomas Doran
On 30 Aug 2009, at 21:17, Bill Moseley wrote: I'm trying to decide if this is the best approach, or if would be better to test the ACL before dispatching. The issue is if the request is for /foo/bar, and an ACL rule blocks that, should Foo::(begin|end|auto) still run? Or should it act as if th

Re: [Catalyst] How to handle development vs production, required vs recommended module dependencies

2009-09-02 Thread Tomas Doran
On 31 Aug 2009, at 02:44, Daniel Austin wrote: Interested to hear how others might be handling this. It seems to work for us but I'm still learning Module::Install. I tend to use the excellent Module::Install::AuthorRequires and Module::Install::AuthorTests - as things which are not required

Re: [Catalyst] Testing OpenID Logins + more

2009-09-02 Thread Tomas Doran
On 1 Sep 2009, at 04:43, fREW Schmidt wrote: I'd really like to start testing my controllers, and I wished I'd started sooner, but oh well. The biggest barrier at this point is the login system. It uses OpenID for auth, which is where the hard stuff comes from. Why bother with the comp

Re: [Catalyst] TEST - Please ignore.

2009-09-02 Thread Tomas Doran
Tomas Doran wrote: Test email, please ignore. And the list is fixed. mailman-- Thanks mst! 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] Class data in a Moose::Role plugin

2009-09-02 Thread Tomas Doran
Bill Moseley wrote: I also tried with Catalyst::ClassData. Must be missing something. Nope, you're not missing anything - class data in roles doesn't play nicely. This would all be a lot easier (or not needed) if we had an app class instance, rather than it being a class.. Cheers t0m ___

[Catalyst] TEST - Please ignore.

2009-09-02 Thread Tomas Doran
Test email, please ignore. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.pe

Re: [Catalyst] Splitting up a large application: Shared config and templates for multiple applications

2009-09-02 Thread Tomas Doran
On 28 Aug 2009, at 17:55, Rodrigo wrote: Anyone building applications out of multiple small Catalyst applications like this? How do you set up the apps to share templates and a config? Anything more interesting than passing in paths? I have a working module called CatalystX::Featuri

Re: [Catalyst] ActionClass vs. Moose Role?

2009-09-02 Thread Tomas Doran
On 28 Aug 2009, at 19:05, Bill Moseley wrote: Well, if you were going to write something like RenderView now would you still write it as an ActionClass? Yes, as Render view isn't something I would ever want two of them on the same action. As a counter example, Catalyst::ActionRole::ACL is

Re: [Catalyst] Problem flattening arrays in Catalyst/Helper/Model/DBIC/Schema

2009-08-28 Thread Tomas Doran
On 28 Aug 2009, at 18:11, pablo marin-garcia wrote: Hello Tom, thanks for your answer On Thu, Aug 27, 2009 at 11:45 PM, Tomas Doran wrote: On 27 Aug 2009, at 21:52, pablo marin-garcia wrote: Nono, that isn't a Moose feature at all.. It's the use of Moose::Autobox which all

Re: [Catalyst] ActionClass vs. Moose Role?

2009-08-28 Thread Tomas Doran
On 28 Aug 2009, at 18:25, Bill Moseley wrote: I was starting to implement a custom ActionClass (similar to RenderView) and then wondered if it would be better written as a Moose role. Maybe - depends what you're doing. They're doing different things really, and I'd need more details to m

Re: [Catalyst] Splitting up a large application: Shared config and templates for multiple applications

2009-08-28 Thread Tomas Doran
fREW Schmidt wrote: Interestingly, I think the Rails guys (or was it Merb?) made something kindav like this. Basically they made it so that you can drop a Rails app into an existing Rails app and things "just work." That's the idea. I don't know enough about Rails to say how well it works

Re: [Catalyst] Problem flattening arrays in Catalyst/Helper/Model/DBIC/Schema

2009-08-27 Thread Tomas Doran
On 27 Aug 2009, at 21:52, pablo marin-garcia wrote: When you said perl 5.8, could you be a little more specific please? This is perl, v5.8.8 built for i686-linux-thread-multi Like which version of perl 5.8, what your perl -V says, which versions of Moose, Moose::Autobox and autobox you ha

Re: [Catalyst] Problem flattening arrays in Catalyst/Helper/Model/DBIC/Schema

2009-08-26 Thread Tomas Doran
On 26 Aug 2009, at 23:25, pablo marin-garcia wrote: Seems that any Moosy thing will fail because my autobox problem. But autobox is OK in my system (all test passed) so the problem seems to between Moose arrays and the flatten call as a OOmethod. Erm, no. NOT any Moosy thing. Just things usin

Re: [Catalyst] Problem flattening arrays in Catalyst/Helper/Model/DBIC/Schema

2009-08-26 Thread Tomas Doran
On 26 Aug 2009, at 22:46, pablo marin-garcia wrote: urllist 0 [ftp://ftp.mirrorservice.org/sites/ftp.funet.fi/pub/languages/perl/CPAN/ But I can see it on searchCPAN I will try to install it from my mirror tomorrow Tried reloading your index? And I'd pick a faster (to update) mi

Re: [Catalyst] C:P:Authentication upgrade

2009-08-26 Thread Tomas Doran
Chris Devine wrote: Hello all, Is anyone having trouble with clear passwords since this morning's update of C:P:Authentication to ver 0.10014? From what version? (and can you try any in-between versions, to find the specific version change which is causing issues for you? I have two instanc

Re: [Catalyst] Problem flattening arrays in Catalyst/Helper/Model/DBIC/Schema

2009-08-26 Thread Tomas Doran
Will Hawes wrote: 2009/8/26 clive glew : so it appears that autobox causes problems. any ideas on how to fix it? Unrelated to Catalyst (but perhaps relevant to this problem), I've also seen issues with autobox on ActivePerl 5.8.8 build 822 - namely The dependency on Moose::Autobox has been

Re: [Catalyst] problem extending Plugin::I18N

2009-08-26 Thread Tomas Doran
Rodrigo wrote: The problem is that the original Plugin::I18N::setup() gets called twice, which breaks it, I guess due to the "eval Locale::Maketext::Simple" part. I've tried to use Moose and around 'setup' => sub { ... } and it gets loaded twice also. What am I missing? Not sure. Can you

Re: [Catalyst] What is correct way to re-check user password for authenticated user?

2009-08-25 Thread Tomas Doran
On 26 Aug 2009, at 00:50, Matt Whipple wrote: Seems that I can try to authenticate user again, by calling $c->authenticate(name=>$c->user->name, pass=>$form->{password}), but I concerned is this acceptable - calling authenticate, when user is already authenticated. And what will be if provi

Re: [Catalyst] Restarting Catalyst on request or doing something per request

2009-08-25 Thread Tomas Doran
On 25 Aug 2009, at 16:57, Matthias Dietrich wrote: Hi Wade, Am 25.08.2009 um 13:48 schrieb Wade Stuart: Why cant you just do a: # ... incrementally add new lexicons Locale::Maketext::Lexicon->import({ de => [Gettext => 'local/hello/de.po'], }) ... on change instead of reloading

Re: [Catalyst] Problem flattening arrays in Catalyst/Helper/Model/DBIC/Schema

2009-08-25 Thread Tomas Doran
On 26 Aug 2009, at 00:58, pablo marin-garcia wrote: Hello, Problem: Can't call method "flatten" on unblessed reference at /nfs/local_perl/perllib/Catalyst/Helper/Model/DBIC/Schema.pm line 165. Your Moose::Autobox, or autobox modules are busted. At a guess, the latter, but it could be eithe

Re: [Catalyst] use base vs use parent

2009-08-25 Thread Tomas Doran
ccing in -dev, as this is relevant there, and and contains a brain dump :_) If it's a Moose class should you always use "extends" over both? Yep. Hum, the CatalystAndMoose manual doesn't even show the application base class inheriting: http://search.cpan.org/~hkclark/Catalyst-Manual-5.8

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80009

2009-08-21 Thread Tomas Doran
Unfortunately, Catalyst-Runtime 5.80008 introduced a serious regression. Catalyst-Runtime 5.80009 has just been uploaded, which corrects and adds tests for the issue, with no other changes. The Changelog is included below as always. Cheers t0m Bug fixes: - Fix and add tests for gene

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80008

2009-08-21 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the latest maintenance release of Catalyst-Runtime, version 5.80008. A number of bugs have been fixed, and a load of small but useful features have been added. A full changelog is included below. Thanks to everybody who contrib

Re: [Catalyst] Advice needed on porting 5.7 plugin (monkeypatches Cat::Request)

2009-08-21 Thread Tomas Doran
Pedro Melo wrote: * is it possible for a plugin, at setup time, to set the request_class()? Yes. before setup_finalize => sub { my $self = shift; $self->request_class("New::Request::Class"); }; * is there a better way? Yes. Make a request class role, then use CatalystX::RoleApplicator

Re: [Catalyst] DBI SQLite driver missing after Catalyst update.

2009-08-20 Thread Tomas Doran
On 20 Aug 2009, at 04:42, Collin Condray wrote: I have recently updated my Catalyst installation from 5.71001 to version 5.80007 and have made one of my websites completely unusable. But you've got the old code in revision control, right? And you're deploying a tagged version, so this isn'

Re: [Catalyst] Netiquette (was: Reading Database At Startup)

2009-08-19 Thread Tomas Doran
On 19 Aug 2009, at 20:13, Denny wrote: Yes, but. Didn't we have this discussion a few months ago, with zero result? Yes, sorry - I should shut the fuck up, and should have just replied in the manor in which I preferred. Please lets not have the meta discussion again? Cheers t0m ___

Re: [Catalyst] Reading Database At Startup

2009-08-19 Thread Tomas Doran
On 19 Aug 2009, at 15:35, Matt Koscica wrote: On Wed, Aug 19, 2009 at 9:44 PM, Eden Cardim wrote: Why did you feel that quoting Eden's entire post, including signature was a good idea? Bottom posting and including the _ENTIRE_ message is even worse that top posing IMO, as it forces the

Re: [Catalyst] Make Catalyst NOT reset a cookie on a per action basis

2009-08-18 Thread Tomas Doran
On 18 Aug 2009, at 03:21, Steve Kleiman wrote: Thanks for getting back again. Weird. I didn't dig in too deep to figure why this is, but it is. This was what was suggested but didn't work: $c->res->cookies({}) However this did: $c->res->headers->remove_header('Set-Cookie') Aha :) My su

Re: [Catalyst] Make Catalyst NOT reset a cookie on a per action basis

2009-08-17 Thread Tomas Doran
On 18 Aug 2009, at 01:19, Steve Kleiman wrote: Thanks for taking a look. I thought I had it isolated but seems not. Tried what you suggested below but the instigator of the cookie happens at a different juncture. The instigator for a 'Catalyst::Plugin::Session' cookie being set is 'Sessi

Re: [Catalyst] Why no extra attributes on Private actions?

2009-08-17 Thread Tomas Doran
On 17 Aug 2009, at 22:50, Moritz Onken wrote: Until then it was necessary to add at least one attribute to the method. The calendar uses :Local as attribute. Aah, yes - my bad, you're totally correct, you needed to sprinkle :Action around as decoration.. :) ++ Whoever fixed that...

Re: [Catalyst] Make Catalyst NOT reset a cookie on a per action basis

2009-08-17 Thread Tomas Doran
On 16 Aug 2009, at 19:59, Steve Kleiman wrote: WHAT I CAN SEE: Catalyst engine calls "finalize_cookies" which resets every cookie it finds. This takes place before the 'begin' method and the 'Set- Cookie' header has already been dispatched. Therefore removing that header in 'begin' does not

Re: [Catalyst] Why no extra attributes on Private actions?

2009-08-17 Thread Tomas Doran
On 17 Aug 2009, at 09:47, Moritz Onken wrote: __PACKAGE__->config( actions => { foo => { Path => 'bar' } } ); sub foo {} This has been introduced in 5.80006. The Catalyst-Manual just didn't catch up with the changes. No, it was not. What gave you that impression? http://www.catalystfr

Re: [Catalyst] Why no extra attributes on Private actions?

2009-08-17 Thread Tomas Doran
On 15 Aug 2009, at 19:44, Bill Moseley wrote: Is there a specific reason that Private actions may not have additional attributes? No, there is not. At the time when that code was written, additional attributes (for example, those used by Catalyst::Controller::ActionRole) weren't supporte

Re: [Catalyst] Catalyst Data Model Error

2009-08-17 Thread Tomas Doran
On 17 Aug 2009, at 15:48, clive glew wrote: I’m attempting to get catalyst 5.80007 up and running on active state perl 5.8.9 826. It seems to install properly and i’ve been working my way through the catalyst book. However when i try to create a model using: The 'autobox' package shipp

Re: [Catalyst] Recommended OS for Catalyst?

2009-08-06 Thread Tomas Doran
On 6 Aug 2009, at 19:16, Samuel Baldwin wrote: Make sure you have a patched 5.10, otherwise you can get ambiguous error messages. Catalyst will tell you if you're unpatched. You're talking about 5.10.0 here. At this point, I'd very much recommend using 5.10.1 RC1.. Cheers t0m _

Re: [Catalyst] Recommended OS for Catalyst?

2009-08-06 Thread Tomas Doran
On 6 Aug 2009, at 18:49, Will Hawes wrote: Out of curiosity, is there a recommended way to compile perl specifically for use with Catalyst? -Duserelocatableinc goes very well with local::lib Then you can have a per-app perl interpreter - so you can upgrade not only your CPAN modules, but als

Re: [Catalyst] Recommended OS for Catalyst?

2009-08-06 Thread Tomas Doran
On 6 Aug 2009, at 11:50, Octavian Rasnita wrote: Hi, Can you recommend a Linux distribution for production for Catalyst apps? ...and a version of Perl? I'm using both debian lenny (perl 5.10) and ubuntu hardy (perl 5.8) in production. I've never had a problem with the perl version th

Re: [Catalyst] 10 Catalyst Models in 10 Days wrapping up-ish

2009-07-28 Thread Tomas Doran
On 28 Jul 2009, at 18:21, Octavian Râsnita wrote: MooseX::TheSchwartz I haven't even looked at this, other than to note that it wins the worst named module EVAR prize (as MooseX:: is a namespace for Moose extensions, which this blatantly isn't). Cheers t0m

Re: [Catalyst] RFC: no make install on catalyst apps

2009-07-28 Thread Tomas Doran
On 28 Jul 2009, at 14:14, Marcus Ramberg wrote: I see catalyst apps being complete CPAN packages as a real advantage. Taking away the make install option seems very limiting +1 I would very much support moving to a 'real' sharedir for templates / config etc, rather than the current hacks (

Re: [Catalyst] recommended/best practice way of serving static files after authentication?

2009-07-28 Thread Tomas Doran
On 28 Jul 2009, at 14:55, Ash Berlin wrote: On 28 Jul 2009, at 14:42, John SJ Anderson wrote: $WORK-mate is working on a Cat app that (among other things) allows authenticated users to download from a set of static files. He's wondering what the best way is to set things up so that the C

Re: [Catalyst] latest catalyst/moose/formbuilder - error: Attribute (formbuilder) of class MyApp::Controller::MyController has no associated methods

2009-07-26 Thread Tomas Doran
On 26 Jul 2009, at 19:09, Gavin Aiken wrote: The errors look like this: Attribute (formbuilder) of class MyApp::Controller::MyController has no associated methods (did you mean to provide an "is" argument?) at /Library/Perl/5.8.8/Moose/Meta/Attribute.pm line 565 Moose::Meta::Attribu

Re: [Catalyst] How to enhance Log4Perl log-files about the loggend in user ($c->user->id)?

2009-07-23 Thread Tomas Doran
Jon Schutz wrote: Somewhere early on on the request cycle do Log::Log4perl::MDC->put( 'user' => $user ); then insert it into your log messages via your Log4perl configuration such as: log4perl.appender.Logfile.layout.ConversionPattern: "%d %-5p %c - USER:%X{user} - %m%n" Doc patches on Catal

Re: [Catalyst] how to set up $HOME or $ROOT to start myapp_server.pl via init.d script?

2009-07-20 Thread Tomas Doran
On 20 Jul 2009, at 14:40, Christoph Metz wrote: so, where do i have to set a "HOME" oder "PATH" var, so that i can run the dev server from any fs-point? You can use CATALYST_HOME or MYAPP_HOME (replacing MYAPP with your capitalised app name with :: changed to _). Cheers t0m _

Re: [Catalyst] local::lib and mini-cpan for Catalyst apps

2009-07-16 Thread Tomas Doran
On 16 Jul 2009, at 20:21, Amiri Barksdale wrote: I offer encouragement. Patches are the best form of encouragement.. Cloning a CPAN config and mangling some options isn't exaclty a big deal - well volunteered. :) I'd certainly be encouraged to pull my finger out my ass and make perl sc

Re: [Catalyst] Multiple Chain Actions

2009-07-16 Thread Tomas Doran
On 16 Jul 2009, at 16:30, Derek Wueppelmann wrote: sub json : Chained('/') ChainedArgs(0) { my ($self, $c) = @_; Is this something that is possible? Should I even be using Chaining for this? Any help would be appreciated. Call your top level path part root, then inherit (or apply

Re: [Catalyst] local::lib and mini-cpan for Catalyst apps

2009-07-16 Thread Tomas Doran
On 16 Jul 2009, at 02:48, Chris wrote: I'm trying to establish a working recipe for Cat apps with local::lib and app-local mini-CPANs. The aim is to have completely independent app installations with their own copies of all their dependancies, so an install will be copy to server and run instal

Re: [Catalyst] nginx configuration tute for catalyst

2009-07-15 Thread Tomas Doran
On 15 Jul 2009, at 13:50, Jason Galea wrote: Hi K, that'd be your nginx.conf. You should find it in /etc/nginx/ or maybe /usr/local/nginx all depending on how nginx was installed. On 16 Jul 2009, at 01:40, kakim...@tpg.com.au wrote: On 16 Jul 2009, at 00:20, kakim...@tpg.com.au wrote

Re: [Catalyst] nginx configuration tute for catalyst

2009-07-15 Thread Tomas Doran
On 16 Jul 2009, at 00:20, kakim...@tpg.com.au wrote: I wish someone would just patch the documentation as that single line does help a non-nginx/admin savvy person trying to set up nginx. So why don't you? Cheers t0m ___ List: Catalyst@lists.scsys

Re: [Catalyst] default : Local v. default : Path

2009-07-15 Thread Tomas Doran
On 7 Jul 2009, at 08:15, Paul Makepeace wrote: My app recently started failing with default : Private. IIRC at YAPC10 mst said this was a relic of bygone Catalyst days. So what does "default : Path" actually _mean_? The docs say, "Path actions match things starting with a precise specified

Re: [Catalyst] Catalyst crashing hard with UTF-8 string

2009-07-15 Thread Tomas Doran
On 13 Jul 2009, at 15:33, Paul Makepeace wrote: Summary: this turns out to be an issue with Catalyst::Engine::HTTP's Remote handle not being set to UTF-8. Setting the remote handle to utf8 makes perl automagically encode everything from a utf8 character string into a byte string (for you).

Re: [Catalyst] Hangs in RenderView in "end"

2009-07-15 Thread Tomas Doran
On 15 Jul 2009, at 09:31, Gordon Yeong wrote: hi, gents:) any ideas? I have tried firefox 3.0 and 3.5 on my mac os X and it causes myapp_server.pl to hang (ie. cause the CPU server to go 100%). Running an strace just shows me write(6, "=\"http://www.myexample.com.";..., 2715) = -1 EAG

Re: [Catalyst] RFC: CatalystX::RedirectAfterLogin

2009-07-14 Thread Tomas Doran
Devin Austin wrote: I'm quite positive others are working on something like this, but I'd like this to serve as A) my volunteering to help with ongoing efforts and B) help get a center point from which to start. http://github.com/bobtfish/catalystx-simplelogin/blob/73580ed8bd94b707ef5d5e26f881

Re: [Catalyst] Catalyst action attributes

2009-07-13 Thread Tomas Doran
On 13 Jul 2009, at 07:50, Toby Corkindale wrote: Devin Austin wrote: Check this out: http://search.cpan.org/~hkclark/Catalyst- Manual-5.8000/lib/Catalyst/Manual/ExtendingCatalyst.pod#Attributes and http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/ Catalyst/Manual/ExtendingCatalyst

Re: [Catalyst] How to do pass-through login?

2009-07-12 Thread Tomas Doran
On 12 Jul 2009, at 08:49, Gunnar Strand wrote: That's great! Still, I think the Manual::Cookbook page need clarification concerning pass-through login because it's not obvious how it's implemented. Yes, I totally agree. Or have it permanently implemented on CPAN and then have the Cookbook u

Re: sub Attributes (was Re: [Catalyst] How to do pass-through login?)

2009-07-12 Thread Tomas Doran
On 12 Jul 2009, at 08:44, Zbigniew Lukasiak wrote: By the way - theoretically all this could be equivalently coded as something like: package MyController; use with ACL; sub foo : Local { ($self, $c, @args ) = @_; $self->check_acl_role( 'admin', 'denied' ); It seems that people pref

Re: [Catalyst] "Use of uninitialized value $buffer" error

2009-07-11 Thread Tomas Doran
On 1 Jul 2009, at 10:11, Merlyn Kline wrote: What are people's thoughts about adding a specific warning if you try to write undef? (As you could still cause this warning by doing that explicitly) Depends why you might do this - if it's legitimate (e.g. to force the headers to be flushed?) the

Re: [Catalyst] how to set CATALYST_DEBUG

2009-07-11 Thread Tomas Doran
On 30 Jun 2009, at 02:59, Malloy wrote: I can get $ENV{CATALYST_DEBUG} in my templates. But can't get it in lib/{App}.pm. #Use of uninitialized value $ENV{"CATALYST_DEBUG"} in print at / path/lib/{app}.pm line 38. And Catalyst is up to date. cpan> install Catalyst Catalyst is up to date

Re: [Catalyst] Re: Incorrect $c->req->base using Catalyst::Engine::SCGI on Win32

2009-07-11 Thread Tomas Doran
On 30 Jun 2009, at 14:51, Will Hawes wrote: Having played around with this a little more it looks as though when things are working properly, REQUEST_URI is the same as SCRIPT_NAME concatenated with PATH_INFO. With that in mind, perhaps revising the suggested fix to something like this: sub pre

Re: [Catalyst] Hangs in RenderView in "end"

2009-07-11 Thread Tomas Doran
On 9 Jul 2009, at 07:45, Gunnar Strand wrote: Here's what I wrote, and I've attached a patch for Catalyst::View::TT.pm. I'm very inexperienced using patches, so let me know if you want it in any other way. I changed the wording slightly to be a little more affirmative and applied: http://

Re: [Catalyst] sql debugging hooks

2009-07-11 Thread Tomas Doran
On 11 Jul 2009, at 19:45, Minty wrote: But I want to inject my $debugger via the Model or schema, and enable/disable it globablly via a configuration file flag. I'm a bit lost as to where/how I can do that. Any pointers? package MyApp::Model::DB; use Moose; use namespace::autoclean; extends

Re: [Catalyst] How to do pass-through login?

2009-07-11 Thread Tomas Doran
On 10 Jul 2009, at 21:09, Gunnar Strand wrote: Thanks to all who answered my post regarding pass-through login! It put me on the right track and it works like a charm now. In my solution I have an action, Catalyst::Action::Restricted, which I put on the subroutines which require a logged-i

Re: [Catalyst] How to do pass-through login?

2009-07-11 Thread Tomas Doran
On 10 Jul 2009, at 22:07, Stephan Jauernick wrote: Hi, i got a similar problem some time ago then Tomas 't0m' Doran pointed me someway on irc. If you wish i could post it. It relays on a technique where you flash the url where you want to post to and then it will be placed in a session w

Re: [Catalyst] Looking at upload size/type before it is uploaded?

2009-07-11 Thread Tomas Doran
On 10 Jul 2009, at 16:36, A Murka wrote: What's the recommended way to validate file upload's size and type (either filename or MIME) before downloading it into the temp directory? I don't want the user to be able to upload a 200 MB file in its entirety before having the controller reject it fo

Re: [Catalyst] "Dynamic" authorization

2009-07-09 Thread Tomas Doran
Gunnar Strand wrote: The table would then be consulted whenever a resource is accessed, and the lookup would be put in a central place, if possible. I've implemented a ":Restricted" action which handles authentication, and that is where I would try to add the authorization as well. One of the

Re: [Catalyst] New Apress book shipping now from Amazon.com

2009-07-09 Thread Tomas Doran
Thomas L. Shinnick wrote: Anybody going to have one of those "link to Amazon from here and we'll get a donation" links on their web page. (hint hint) Hmm, http://books.perl.org/ should, but doesn't...? (I'll wait until tomorrow before ordering) http://www.enlightenedperl.org/ Cheers t0m

Re: [Catalyst] Catalyst crashing hard with UTF-8 string

2009-07-08 Thread Tomas Doran
On 8 Jul 2009, at 18:01, Paul Makepeace wrote: You know it's dieing inside TT, right? So you can Data::Dumper the input which causes it to die to a file, write a program that instantiates View::TT, calls ->render with the same input (and template), and that should crap out in the same way?

Re: [Catalyst] Hangs in RenderView in "end"

2009-07-08 Thread Tomas Doran
Gordon Yeong wrote: hi there I am facing almost the same issue in that even clicking the "stop" button on firefox would see no difference in the debugging terminal or have a response from the webpage. When i have safari accesssing the same page, i can submit without a problem and the server

Re: [Catalyst] Catalyst crashing hard with UTF-8 string

2009-07-08 Thread Tomas Doran
Paul Makepeace wrote: Something's definitely changed wrt to UTF-8 behavior since we did our big upgrade from Catalyst 5.7. Are there any 'known gotchas' I could check? At this point my debugging fu runs out--help appreciated on where to look next. No gotchas that I can think of. Are you sure

Re: [Catalyst] how to implement Transactions (over different db tables) in a Catalyst project

2009-07-07 Thread Tomas Doran
kakim...@tpg.com.au wrote: Sorry, after reading it again after the many responses to this thread, I realised it's ok. It's _NOT OK_, as you didn't get it first time. So it's obviously not clear *enough*. Please supply the DBIC list with a doc patch to make it more clear and explicit. Tha

Re: [Catalyst] Polymorphism?

2009-07-07 Thread Tomas Doran
Dave Rolsky wrote: As do Moose roles. I've found using roles in controllers incredibly helpful, since I often have similar/same "process this data and invoke a ->search method", where the only thing that varies is what is being searched and/or the way the results are being displayed. Unfortun

Re: [Catalyst] Parse errors: Tests out of sequence - any ideas?

2009-07-07 Thread Tomas Doran
kakim...@tpg.com.au wrote: I tried searching on google but I just don't know what's causing this. Any ideas would be welcomed. Something in your test is emitting something that looks like TAP, and so confusing the TAP parser.. Cheers t0m ___ Lis

[Catalyst] PLEASE HELP - Action attribute documentation confusing (Was: default : Local v. default : Path)

2009-07-07 Thread Tomas Doran
Paul Makepeace wrote: FWIW, IMO, http://search.cpan.org/~hkclark/Catalyst-Manual-5.8000/lib/Catalyst/Manual/Intro.pod#Built-in_special_actions is a slightly odd place to be documenting in reference style the actions. Is there another place? This is one of those things I keep expecting has a ho

Re: [Catalyst] how to implement Transactions (over different db tables) in a Catalyst project

2009-07-06 Thread Tomas Doran
On 6 Jul 2009, at 12:38, kakim...@tpg.com.au wrote: So, in the case of an exception, an automatic rollback will take place. I have tested this in my application and it seems that way. Can anyone confirm this? Did you even look for this in the manual? http://search.cpan.org/~ribasushi/DBIx

Re: [Catalyst] how to implement Transactions (over different db tables) in a Catalyst project

2009-07-06 Thread Tomas Doran
On 6 Jul 2009, at 12:32, kakim...@tpg.com.au wrote: hi Tomas and everyone:) I still have some questions as per my prev post. Can you please help me out? :) Sorry, this is too far into DBIC land for this list IMO. Please ask on that list. Cheers t0m ___

Re: [Catalyst] default : Local v. default : Path

2009-07-06 Thread Tomas Doran
On 6 Jul 2009, at 18:14, Paul Makepeace wrote: We just upgraded from 5.80005 to 5.80007 and default : Local is no longer matching $controller/ (i.e. requires $controller/default) I was curious what the difference is, and flagging it for anyone else. Yes, sorry about that - it's a regressio

Re: [Catalyst] how to implement Transactions (over different db tables) in a Catalyst project

2009-07-06 Thread Tomas Doran
Tomas Doran wrote: $c->model('myAppDB')->txn_do( sub { my $rs = $c->model('myAppDB::Table')->search(..); # Etc etc die("Rollback") if $foo; # Exceptions cause rollback # Etc etc # If you get here, to the end, transaction is committed

Re: [Catalyst] how to implement Transactions (over different db tables) in a Catalyst project

2009-07-06 Thread Tomas Doran
On 6 Jul 2009, at 06:30, kakim...@tpg.com.au wrote: In the past, when I had to work with just DBI, I would manually start a transaction and commit it at the end if no exceptions occur. In the case of the latter, I will call a rollback. This is fairly easy to get wrong - txn_do forces you t

Re: [Catalyst] Custom error handling

2009-07-06 Thread Tomas Doran
On 6 Jul 2009, at 02:56, kakim...@tpg.com.au wrote: Using die(' A problem occurred when saving your address. Please try again later' );, I would get an error message such as "Exception caught in myApp::Controller::Subscription->_save_address" which doesn't look so good to the users. that's why

Re: [Catalyst] Hangs in RenderView in "end"

2009-07-06 Thread Tomas Doran
On 6 Jul 2009, at 05:33, Gunnar Strand wrote: Wow, that's a fairly unexpected gotcha. Any chance of a doc patch to make it easier for the next poor soul who gets stuck on this? Sure. Where would you like it? A 'NOTES' or 'CAVEATS' section in the POD for Catalyst::View::TT is the best p

Re: [Catalyst] Custom error handling

2009-07-05 Thread Tomas Doran
On 5 Jul 2009, at 05:32, kakim...@tpg.com.au wrote: Any idea of how to get a custom screen up? You're not clearing the errors, so Catalyst gives you an error screen: http://search.cpan.org/~flora/Catalyst-Runtime-5.80007/lib/ Catalyst.pm#$c-%3Eclear_errors Cheers t0m

Re: [Catalyst] Custom error handling

2009-07-03 Thread Tomas Doran
On 3 Jul 2009, at 08:33, kakim...@tpg.com.au wrote: I can see that a $c->error () is being called in one of my controllers You mean you're calling $c->error yourself in your own controller code? and the Room->end has been called (thanks to my debugging messages above) BUT the $c->error does

Re: [Catalyst] Configuration process

2009-07-02 Thread Tomas Doran
On 3 Jul 2009, at 15:36, Alejandro Imass wrote: You are right and this is something new. I've only ported my apps to new cat releases but haven't started one from scratch in a while. I just tested, and sure enough, it creates a .conf file instead of the traditional yaml file, although it says:

Re: [Catalyst] Hangs in RenderView in "end"

2009-07-02 Thread Tomas Doran
On 2 Jul 2009, at 21:33, Gunnar Strand wrote: I found the problem. Turning on debugging for TT (DEBUG => DEBUG_ALL) in TT.pm showed that it hangs on the [% USE CGI %] directive. Apparently [% USE CGI('-no_debug') %] is needed. Got it from here: https://bugzilla.mozilla.org/show_bug.cgi?i

Re: [Catalyst] Re: Warnings when upgrading Catalyst

2009-07-02 Thread Tomas Doran
On 2 Jul 2009, at 14:03, Ovid wrote: Thanks from me, too. This will make our test suite much quieter. I guess this means that was also your issue, and I can stop worrying about that also then? ;_) Cheers t0m ___ List: Catalyst@lists.scsys.co.

Re: [Catalyst] Re: Warnings when upgrading Catalyst

2009-07-02 Thread Tomas Doran
On 2 Jul 2009, at 12:55, George Nistorica wrote: It looks like I was mistaken when talking about missing actions in the stats output, in the sense that supressing the Catalyst warning didn't automagically make more actions to be displayed in the stats. Righto, glad that's cleared up. However

Re: [Catalyst] Re: Warnings when upgrading Catalyst

2009-07-02 Thread Tomas Doran
George Nistorica wrote: I've checked it out and indeed using the version of Controller::REST you provided fixes the warning. Not only that, but it seems it doesn't break the functionality for both the test application I provided and another more complex one I'm using. Great, thanks for testing

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80007

2009-06-30 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the latest maintenance release of Catalyst-Runtime, version 5.80007. This fixes an important regression with actions on the application class which have custom attributes (for example, end : ActionClass ('RenderView')). Whilst

Re: [Catalyst] Warnings when upgrading Catalyst

2009-06-30 Thread Tomas Doran
On 25 Jun 2009, at 10:57, Ovid wrote: --- On Wed, 24/6/09, Tomas Doran wrote: From: Tomas Doran Also, you're in debug mode.. Do you get the warnings when debug mode is disabled? Cool! When I disable debug mode, the warnings go away. Never thought to look at that. This makes me

Re: [Catalyst] "Use of uninitialized value $buffer" error

2009-06-30 Thread Tomas Doran
On 20 Jun 2009, at 15:32, Jesse Sheidlower wrote: I'm having a hell of a time trying to track down the reasons for this error. I'm getting an error that looks like: Use of uninitialized value $buffer in concatenation (.) or string at /usr/share/perl5/Catalyst/Engine/CGI.pm line 220. For th

Re: [Catalyst] RE: uri_for() corrupts query parameters hash for caller

2009-06-29 Thread Tomas Doran
On 30 Jun 2009, at 00:31, Byron Young wrote: If you don't mind, though, can you explain what you mean about the 'unsafe each'? If your application code half iterates through the params hash with each before calling uri_for, then the param copy would only copy the second half of the hash (

Re: [Catalyst] RE: uri_for() corrupts query parameters hash for caller

2009-06-29 Thread Tomas Doran
On 26 Jun 2009, at 23:19, Byron Young wrote: Alrighty, here you go, patch + test are attached. There are based off the 5.71001 svn head because that's what I have currently. 5.8's uri_for() looks the same, so it should apply there as well, but let me know if you need another one from 5.8

Re: [Catalyst] Re: Warnings when upgrading Catalyst

2009-06-29 Thread Tomas Doran
On 29 Jun 2009, at 11:40, George Nistorica wrote: Tomas Doran wrote: Hmm, I can't replicate this in a simple case, from that description.. Here: http://www.depechemode.ro/MyApp-0.1.tar.gz a simple TestApp using Catalyst::Controller::REST to replicate the problem, having Catalyst 5.

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