Re: [Catalyst] ACL Error: deny_access_unless

2009-05-26 Thread Tomas Doran
On 26 May 2009, at 21:07, Gordon Stewart wrote: Tomas I have am not using an authentication store, I am just using: Authentication Authorization::Roles Authorization::ACL Session Session::Store::FastMmap

Re: [Catalyst] My experience porting to CataMoose

2009-05-27 Thread Tomas Doran
On 19 May 2009, at 02:38, Sebastian Willert wrote: . Here is my first stab at creating such a thing. Please bear in mind that English is not my native language and this is my first dab into Moose so this document is probably rife with factual and grammatical errors. That was brilliant, apo

Re: [Catalyst] Where is the DAO equivalent?

2009-05-28 Thread Tomas Doran
Jarom Smith wrote: Hello Catalysters: First of all, a thousand apologies if this is a FAQ (and if it is, please point me in the right direction). I have been programming in Perl for a while but I freely admit there's a lot I don't know, which is why I am here. I have completed the Catalyst

Re: [Catalyst] perl -d chokes in namespace-clean ...

2009-05-28 Thread Tomas Doran
Kiffin Gish wrote: For some reason I cannot use the Perl debugger to debug my Catalyst application, which normally starts up and runs just fine without the debugger. Can you let us know what versions of B::Hooks::EndOfScope and Variable::Magic you have installed? (perl -MVariable::Magic\ )

Re: [Catalyst] ACL Error: deny_access_unless

2009-05-28 Thread Tomas Doran
Gordon Stewart wrote: I have created a test application to use Catalyst::Authentication::Store::Minimal But I am still having the same issue. Well, yes, I'd expect you would :) The point of making a minimal test app was so you could show us, and we could download / play with someth

Re: [Catalyst] Looking for a working example using DBIC and Authentication

2009-05-28 Thread Tomas Doran
Simon Baird wrote: [1] Well perhaps some details in brief note form... - The Authentication section of the Tutorial in CPAN uses some deprecated stuff (I find out eventually) - I got Auth working with DBIC as per the docs (with users, roles, user_roles tables) but without a realm. So I can use (t

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-28 Thread Tomas Doran
Stephen Clouse wrote: I have seen hints dropped in places such as http://osdir.com/ml/lang.perl.modules.dbix-class/2006-08/msg00188.html that Catalyst 5.80 has gained more explicit support for such a deployment model under mod_perl, but so far I have come up empty on finding references or exam

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-28 Thread Tomas Doran
Stuart Watt wrote: I did a simple tweak to the configuration file management so environment variables could be substituted into configuration files. All I added to MyApp.pm was: Then, I could use YAML settings like: session: storage: '__ENV(TEMP)__/sessions' It was pretty easy for u

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-28 Thread Tomas Doran
Matthias Dietrich wrote: do you use Log::Log4perl in your Catalyst apps? Months ago I wrote a message to the list about problems with Log::Log4perl and multiple instances of Catalyst within one Apache. Nobody answered and because it's currently not very important to me (not in production envi

Re: [Catalyst] Looking for a working example using DBIC and Authentication

2009-05-28 Thread Tomas Doran
On 29 May 2009, at 01:49, hkcl...@gmail.com wrote: For example, a search for "Catalyst Tutorial" on search.cpan.org shows a bunch of the 5.7014 stuff near the top... and that's over 7 months (and 9 releases) old. Is there a way to "kill off" older releases like that (or at least push them down

Re: [Catalyst] Inconsistent hierarchy during C3 merge

2009-05-29 Thread Tomas Doran
Alok Sharma wrote: Hi, I am having trouble running my Catalyst apps which were running properly till recently. Problem started after some updates and each server throws error stating "Inconsistent hierarchy during C3 merge of class at /usr/share/perl/5.10/mro.pm " Have a read of: h

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-05-29 Thread Tomas Doran
Stuart Watt wrote: True, we did need to keep each application using processes which are separate. This was an issue when we used PerlEx (the ActivePerl style mod_perl approach) but we now use FastCGI (clients use Windows, etc.) and IIS freely creates many processes, and makes it really easy to

Re: [Catalyst] DBIx::Class::Schema::Loader catalyst helper

2009-05-29 Thread Tomas Doran
Ivan Wills wrote: At a quick guess it might be that the files generated on windows use \r\n line endings when trying to update those files on linux it expects just \n. You could try using dos2unix on the files and see if you still get the same error. I guess you'll get the same error, as the

Re: [Catalyst] DBIx::Class::Schema::Loader catalyst helper

2009-05-29 Thread Tomas Doran
Octavian Rasnita wrote: The Catalyst helper could also change any end of line char found in "\n" before re calculating the hash from the content of the file. No, it couldn't. This is nothing to do with Catalyst, or the Catalyst helper, it's a DBIC thing. Cheers t0m ___

Re: [Catalyst] doc patches and minor revelations

2009-05-30 Thread Tomas Doran
On 29 May 2009, at 19:43, Jarom Smith wrote: Pretend I'm a complete ignoramus... (that shouldn't be too hard, LOL) If I were to want to submit a "doc patch", how would I go about doing it and what exactly would I be submitting? Right, so there are two things we want: 1) Documenting the

Re: [Catalyst] Inconsistent hierarchy during C3 merge

2009-05-30 Thread Tomas Doran
On 30 May 2009, at 08:08, Alok Sharma wrote: This helped in cleaning the circular/inconsistent hierarchies in the starting and help to get to the bottom of the problem. Doc patches to refine the strategies I suggest in the documentation I pointed too would be very welcome. http://github.

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-30 Thread Tomas Doran
On 29 May 2009, at 19:38, Jarom Smith wrote: J. Shirley wrote: Catalyst::Helper::Model::DBIC::Schema doesn't do that, but you could submit a patch :) I know, I need to contribute as well as take away. If I were to do this, I think I would probably just extend the current auto-generatio

Re: [Catalyst] ACL Error: deny_access_unless

2009-05-30 Thread Tomas Doran
On 30 May 2009, at 16:32, Gordon Stewart wrote: I am using the following plugin modules, which I believe to be the most up to date: Your Makefile.PL doesn't say this. I tried to fix this, but something in the dependency stack of DBIx::Class::HTMLWidget fails to install for me. Can you

Re: [Catalyst] Possible bug here?

2009-06-01 Thread Tomas Doran
Kieren Diment wrote: On Mon, Jun 1, 2009 at 9:25 AM, J. Shirley wrote: Easy for a failing test case, at least ;) Yeah, it appears to be a backwards compat bug. The following does work. This either needs to be documented or fixed. Not a back compat bug, it's been there forever (at least,

Re: [Catalyst] Re: How to use self made Template Toolkit plugins?

2009-06-01 Thread Tomas Doran
kakim...@tpg.com.au wrote: hi there, how do I access the Catalyst variable in a custom made Template Toolkit plugin? You don't want to do this. TT plugins should be for trivial formatting stuff only, teaching them about your application context is massively breaking abstraction. Cheers t0

Re: [Catalyst] Multiple instances of same app with 5.80 under mod_perl

2009-06-01 Thread Tomas Doran
Matthias Dietrich wrote: Hi, One solution to this would be to keep a hash of log class instances per vhost, and then ensure to replace the logger being used at the start of each hit - this should do what you're looking for.. yes, I thought I have to do it in such a way. Where would be the b

Re: [Catalyst] ACL Error: deny_access_unless

2009-06-02 Thread Tomas Doran
On 30 May 2009, at 23:17, Gordon Stewart wrote: Tom I tried to fix this, but something in the dependency stack of DBIx::Class::HTMLWidget fails to install for me. I have removed this Ok, that wasn't much better: , Makefile.PL in your tarball is still fucked (i.e. missing most of your d

Re: [Catalyst] Re: error when using Authentication::Store::Minimal

2009-06-02 Thread Tomas Doran
On 2 Jun 2009, at 23:51, Tommy Butler wrote: I found my own answer by looking at the source code for the MVC plugin. The MVC plugin? Huh? You mean the authentication plugin? So much for the book. Yeah, the book hasn't aged well, which is unfortunate. http://dev.catalyst.perl.org/wiki/T

Re: [Catalyst] Applying external web server authentication: is there a better way?

2009-06-03 Thread Tomas Doran
Stuart Watt wrote: I'm developing an app which uses IIS and FastCGI as its back end. Also, we are expected by the client to use Windows integrated authentication in the server -- this is an intranet app, so no login screen should be expected. trying to read the one already performed, so I put

Re: [Catalyst] ACL Error: deny_access_unless

2009-06-04 Thread Tomas Doran
On 3 Jun 2009, at 20:18, Gordon Stewart wrote: http://omni.state51.co.uk/~t0m/MyApp.tgz - there is your tarball back, with git history of everything I did for your perusal. I cannot seem to download the tarball from your site. Did you give me an internal website? No, that's my workstat

Re: [Catalyst] best practice: where to put constants

2009-06-04 Thread Tomas Doran
Jarom Smith wrote: In the end, this is what I decided to do because I have relatively few of these guys (so far) and I'd rather have them thrown together all in one place than spread all over the system. But I'm wondering if there is a best practice? I don't want to put them in the config ha

Re: [Catalyst] best practice: where to put constants

2009-06-04 Thread Tomas Doran
Jarom Smith wrote: But out of curiosity... in your opinion, what *would* be the "best practice" way of doing what I'm trying to achieve? (or was your comment "Not sure this is the 'best practice' way of doing what you're trying to achieve" referring to my way of doing things, and your opinion

Re: [Catalyst] Plugin::Authentication apparently not reading config

2009-06-05 Thread Tomas Doran
Jason McIntosh wrote: As far as I can tell, the version numbers of all modules involved match. (Using latest CPAN or Debian versions of all modules.) Any advice as to where to look next would be enormously appreciated. My only real suggestion is to throw some dumping / debugging into the _aut

[Catalyst] [ANNOUNCE] Catalyst Runtime 5.80005

2009-06-06 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the of Catalyst 5.80005. This release fixes a number of long standing bugs, and officially supports action methods in Moose Roles. A huge thanks to everyone contributing patches to this release; as you can see from the full

Re: [Catalyst] Session Store Difficulty

2009-06-06 Thread Tomas Doran
On 5 Jun 2009, at 16:44, Jon wrote: # perl funnelscope_server.pl Can't load '/Library/Perl/5.8.8/darwin-thread-multi-2level/auto/ Cache/FastMmap/CImpl/CImpl.bundle' for module Cache::FastMmap::CImpl: Right, your 'Cache::FastMmap' module is buggered. Try re-installing it, or use a different

Re: [Catalyst] Action attributes

2009-06-06 Thread Tomas Doran
On 6 Jun 2009, at 04:35, Илья wrote: Hi there, we use Catalyst about year and one thing make a lot of pain. When you make typo in action attribute name Catalyst silently eat it. For example: Unfortunately, this is fairly implicit in the design. Things like Catalyst::Plugin::Server::XMLRPC u

Re: [Catalyst] patch for C::P::Session::Store::Cookie

2009-06-09 Thread Tomas Doran
Fayland Lam wrote: hey, it's a patch for Catalyst::Plugin::Session::Store::Cookie. to make cookie_domain more configurable. __PACKAGE__->config->{session}->{cookie_domain} = sub { my $c = shift; if ( $c->req->uri->host =~ /xxx\.com/ ) { return '.xxx.com

Re: [Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-09 Thread Tomas Doran
Francesc Romà i Frigolé wrote: This is more of an apache question than a Catalyst one, but I'd appreciate some help. I'm trying the new feature $c->req->remote_user introduced in 5.80005. I'd like to know if it is possible to tell apache, in a .htaccess file, to not ask authentication for a c

Re: [Catalyst] catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*?

2009-06-09 Thread Tomas Doran
Robert Buels wrote: So, if I understand rightly, shouldn't the MyApp/root be going into blib/auto/MyApp/root instead of blib/MyApp/root ? The simple answer you're looking for is 'hysterical raisins'. I'm hoping that we'll move to using File::ShareDir for template for installed applications as

Re: [Catalyst] patch for C::P::Session::Store::Cookie

2009-06-09 Thread Tomas Doran
On 9 Jun 2009, at 19:19, J. Shirley wrote: Being able to specify the session cookie name based on the request would be useful for edge cases. I totally agree. How would something like a 'cookie_name_stash_key' configuration parameter sit with you? If not provided, we do what we do now, i

Re: [Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-09 Thread Tomas Doran
On 9 Jun 2009, at 19:49, Francesc Romà i Frigolé wrote: I also tried with which it is allowed, but it doesn't seem to work (which makes sense because I'm not actually matching any file but a catalyst action ) Ah, if you've got rules sending stuff to Catalyst, then stuff will be sent to

Re: [Catalyst] Best practice: How to build app parts reusable?

2009-06-09 Thread Tomas Doran
On 9 Jun 2009, at 04:29, Robert Krimen wrote: On Mon, Jun 8, 2009 at 11:55 AM, Matt S Trout cl...@trout.me.uk> wrote: See Catalyst::Plugin::AutoCRUD for injecting extra components into the various areas during application setup. I had this problem last week, and released a solution today: htt

Re: [Catalyst] patch for C::P::Session::Store::Cookie

2009-06-09 Thread Tomas Doran
On 9 Jun 2009, at 21:29, J. Shirley wrote: On Tue, Jun 9, 2009 at 1:15 PM, Tomas Doran wrote: How would something like a 'cookie_name_stash_key' configuration parameter sit with you? If not provided, we do what we do now, if provided then that stash key will be used if p

Re: [Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-10 Thread Tomas Doran
On 10 Jun 2009, at 06:23, kmx wrote: Erm, no - $c->authenticate will _always_ succeed if you're using Credential::Remote, as the web server above you will have always authenticated you already.. In fact there are some situations where Credential::Remote's authenticate(..) can fail: One st

Re: [Catalyst] SOLVED Re: 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-10 Thread Tomas Doran
On 10 Jun 2009, at 10:04, Francesc Romà i Frigolé wrote: Also, in the static directory I could leave some things public ( css, javascript, icons...) but make other private ( uploads, reports, ...) by placing a .htaccess file requiring authentication in each corresponding directory. Wh

Re: [Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-10 Thread Tomas Doran
On 10 Jun 2009, at 09:40, Francesc Romà i Frigolé wrote: 1) static performance: serving static files directly from apache is much faster than through catalyst. I find it specially noticeable with big files like large pictures and pdfs. Some of the files should not be public. If I do authent

Re: [Catalyst] Session id creation

2009-06-10 Thread Tomas Doran
On 6 Jun 2009, at 23:57, Bill Moseley wrote: In other words, it provides a way for users to generate their own session ids as long as it passes the validate_session_id method, which doesn't take much. http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Plugin-Session/ 0.00/trunk/t/live_sess

Re: [Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-10 Thread Tomas Doran
Francesc Romà i Frigolé wrote: It looks very interesting but I wonder if my shared host provider (asmallorange) would agree to install it. You're worrying about the efficiency of pushing bytes around, but you're using shared hosting. Surely this is premature optimisation? Cheers t0m __

Re: [Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-10 Thread Tomas Doran
Francesc Romà i Frigolé wrote: The applications I'm writing are expected to have a relatively small number of users. From my experience so far the performance is quite good on a shared hosting as long as I serve the static content from outside Catalyst. Otherwise performance degrades significan

Re: [Catalyst] how do you distribute a catalyst app

2009-06-10 Thread Tomas Doran
Patricio A. Bruna wrote: wich methods do you use to distribute a catalyst application from on box to another. and suposse this box has diferent operating system, i ment one has suse and the other redhat. what are you recomendations Don't do that. Having an app balanced across two totally dis

Re: [Catalyst] 5.80005: $c->req->remote_user and apache: excluding actions from authentication

2009-06-10 Thread Tomas Doran
Francesc Romà i Frigolé wrote: I did my tests some months ago with smaller files (1-5 MB) and I don't remember the exact results now, but I clearly remember that it made a very significant difference. Hmm, well, with smaller files you have tcp slow start, and other effects that can cloud you

Re: [Catalyst] how do you distribute a catalyst app

2009-06-10 Thread Tomas Doran
Patricio A. Bruna wrote: Maybe i explain wrong. I did not mean load balance, i meant deployment. i develop my app on my box, and then i need to deploy it on the production server, with the same operating system. downloading all the modules from cpan is time consuming, are any better way? Yes.

Re: [Catalyst] catalyst.pl-generated installer installs MyApp/root in same dir as MyApp/lib/*?

2009-06-10 Thread Tomas Doran
On 9 Jun 2009, at 19:59, Robert Buels wrote: Hans Dieter Pearcey wrote: This is so strange to me; I *always* install my applications with make install, or make debian packages of them, or... Ok, so, I'm obviously full of crap. (This should not be news to anyone who reads the list) A lo

Re: [Catalyst] how do you distribute a catalyst app

2009-06-11 Thread Tomas Doran
Octavian Râşniţă wrote: When using this syntax for installing modules in the directory 'my_lwp' I don't know how I can specify the "force" parameter of the cpan shell. perl -MCPAN -Mlocal::lib=my_lwp -e 'CPAN::force(qw/install LWP/)' Cheers t0m ___

Re: [SPAM] Re: [Catalyst] Session id creation

2009-06-11 Thread Tomas Doran
kmx wrote: According to my tests against real application t0m is right and this straightforward session fixation attack does not work. On the other hand there exists (at least in my opinion) another sort of session fixation issue in Catalyst application discussed here http://rt.cpan.org/Public/B

Re: [Catalyst] Duplicate entries with C::P::Session::Store::DBIC and MySQL - new findings

2009-06-16 Thread Tomas Doran
Sergio Salvi wrote: I've applied both patches into this branch: http://dev.catalyst.perl.org/svnweb/Catalyst/browse/branches/Catalyst-Plugin-Session/both/ Hi, sorry for the very late followup on this, but it's been noted that the documentation wasn't adjusted to reflect the changes made. I d

Re: [Catalyst] Potential query string pollution vulnerability?

2009-06-16 Thread Tomas Doran
Tobias Kremer wrote: Thanks a lot! I didn't know that this was the recommended practice. Apparently, TIMTOWTDI striked again! :( The docs on Catalyst::Request::param don't help to make this (and the possible consequences of using this method) clear. If someone would like to volunteer to wri

Re: [Catalyst] OT: Catalysters at Hack Evening in London tonight?

2009-06-17 Thread Tomas Doran
Jesse Sheidlower wrote: I'm in the UK for the week, and I'm going to be going to London today, stopping off at the Hackspace Hack Evening #9 in Islington ( http://upcoming.yahoo.com/event/2823351/ ). If any Catalyst-folk will be there, would love to say hello. I tried to send this to the london.

Re: [Catalyst] root dir location

2009-06-18 Thread Tomas Doran
On 17 Jun 2009, at 13:51, Ben Vinnerd wrote: Where should the root dir (for templates) be? I thought it was at the same level as lib, script, and t. ...the INCLUDE_PATH isn't setup, and i have to manually add: At a guess, you deleted your Makefile.PL? Cheers t0m ___

Re: [Catalyst] myapp_local.yml gets ignored

2009-06-18 Thread Tomas Doran
On 17 Jun 2009, at 14:50, Jochen Luig wrote: According to the ConfigLoader docs, 'local' is the default suffix for files used to override the main config, so AFAIU the above code is supposed to "just work". Maybe I'm just not seeing the wood for the trees here, but are there any prerequisites

Re: [Catalyst] ConfigLoader trouble

2009-06-18 Thread Tomas Doran
On 17 Jun 2009, at 11:16, Ben Vinnerd wrote: It's like ConfigLoader's setup() isn't being run, or it's choosing to ignore the MYAPP_CONFIG_LOCAL_SUFFIX i'm setting. I'm afraid the best way to debug this is likely to be brute force. Copy your apache config somewhere, mangle it to only run

Re: [Catalyst] Database-backed sessions: Session::Store::DBI/DBIC and MSSQL

2009-06-18 Thread Tomas Doran
On 17 Jun 2009, at 21:34, Stuart Watt wrote: Since Session::Store::DBI can be set to use its own connection, I thought that might resolve it. Not completely, unfortunately, and now the error is due to the recommended use of a text column for the data. It seems the DBI+DBD::ODBC likes to r

Re: [Catalyst] root dir location

2009-06-18 Thread Tomas Doran
Ben Vinnerd wrote: On 18/06/09 08:51, Tomas Doran wrote: At a guess, you deleted your Makefile.PL? Yes :O I didn't really want to bother with make on my webapp, so deleted that along with Changes and README. Yeah, that'd get you. The lines in the generated Makefile.PL

Re: [Catalyst] Can't validate the user on dev.catalystframework.org

2009-06-20 Thread Tomas Doran
On 20 Jun 2009, at 07:28, Octavian Râşniţă wrote: But I never received that email, not even in the SPAM folder. So I gave another email address, but I didn't receive any message at that email address either. Is there something wrong with the site? No, there is nothing wrong. I don't kno

Re: [Catalyst] Warnings when upgrading Catalyst

2009-06-22 Thread Tomas Doran
On 22 Jun 2009, at 10:26, Ovid wrote: Nobody has a clue on this one? I've no idea how the relative values get set and I'm not looking forward to a long slog through the guts of Catalyst to understand what's happening here :) I'm guessing that Catalyst is (incorrectly) trying to collect

Re: [Catalyst] How to use local::lib

2009-06-22 Thread Tomas Doran
On 22 Jun 2009, at 16:43, Tobias Kremer wrote: After reading about local::lib and thinking that it's too good to be true, I just had to try it out as a possible deployment method for one of our apps. I have the app and all dependencies running on my development box. The prerequisites are specif

Re: [Catalyst] can't seem to install local::lib in dreamhost

2009-06-23 Thread Tomas Doran
On 23 Jun 2009, at 07:17, kakim...@tpg.com.au wrote: If all you tell us about is that you did it wrong, you're just going to be told to do it right. You can avoid this by actually telling us everything you did in your first email: the same error came up denying me access to run "make in

Re: [Catalyst] How to use local::lib

2009-06-23 Thread Tomas Doran
On 23 Jun 2009, at 08:59, Tobias Kremer wrote: These things make the local::lib approach a bit more unappealing for us. For one thing, it appears to be still quite a bit rough around the edges and I doubt that there's anything I personally could do about it because my knowledge there is limited.

Re: [Catalyst] How to use local::lib

2009-06-23 Thread Tomas Doran
On 23 Jun 2009, at 09:41, Tobias Kremer wrote: Developers can then use what they like (and whatever OS/versions of modules) they want, if they want to install the app locally, but that's unsupported. I'd also make a 'production like' (i.e. same OS) vmware machine available with the 'standar

Re: [Catalyst] Warnings when upgrading Catalyst

2009-06-24 Thread Tomas Doran
On 23 Jun 2009, at 17:03, Ovid wrote: I had to randomly trawl through the cat-guts. Paring down our rather large application is not easy and I wasn't aware of a git repository for git bisect. git-svn will do bisect - just import, rafl also has a mirror of a git- svn import on github :)

Re: [Catalyst] Warnings when upgrading Catalyst

2009-06-25 Thread Tomas Doran
J. Shirley wrote: Not just your proxy, it's a 404 :) Heh, you're right. This was folded into trunk late last night :). Appropriate tarball was mailed offlist. Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-

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

2009-06-26 Thread Tomas Doran
Byron Young wrote: I know people have been busy (I think there were some perl conferences lately?) and I think my issue slipped through the cracks. Just wanted to know what people thought about this and whether I should submit my patch or take a different approach. Sorry for dropping this

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

2009-06-28 Thread Tomas Doran
On 26 Jun 2009, at 17:06, Merlyn Kline wrote: being. Basically, though, the obvious proximal cause of this would be calling the write method with no parameter. This might seem an [snip] I'm afraid this isn't too helpful for me at least; in this case I'm just an end user, not doing anything

Re: [Catalyst] Re: Warnings when upgrading Catalyst

2009-06-28 Thread Tomas Doran
On 26 Jun 2009, at 21:41, George Nistorica wrote: Hi, (my reply might be garbled, sorry) Makes perfect sense here. I've got the same problem generated from a Controller that uses Controller::REST as a base class. And the warning being generated when I ->forward() to another Controller

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

2009-06-28 Thread Tomas Doran
On 28 Jun 2009, at 07:35, Gunnar Strand wrote: [debug] Rendering template "users/create_form.tt2" [info] Request took 795.658106s (0.001/s) . +---. | Action | Time | +-

Re: [Catalyst] "featurizing" a catalyst app

2009-06-28 Thread Tomas Doran
On 28 Jun 2009, at 09:16, Robert Buels wrote: Rodrigo wrote: > But how about the /root part? Can mixed-up root dirs be seen as a > single root dir easily? I'm interested in making a pluggable app as well. Seems like you and I would want the ability to specify an arrayref for MyApp- >config

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

2009-06-28 Thread Tomas Doran
On 28 Jun 2009, at 16:50, Gunnar Strand wrote: Thanks for th tip! I'll see if I can nail it down - the template structure isn't just that one file - I am using the "wrapper" support in TT. Right. I'd start by blanking the actual template, which will at least tell you if it's the template

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

2009-06-28 Thread Tomas Doran
On 28 Jun 2009, at 20:41, Orlando Vazquez wrote: I'm the one who was responsible for removing the prepare_path method from the SCGI engine. I did this because it was overriding with an outdated verbatim copy of the prepare_path method in C::E::CGI, which ::SCGI inherits from. Hmmm, ::FastCGI se

Re: [Catalyst] how to set CATALYST_DEBUG

2009-06-29 Thread Tomas Doran
On 29 Jun 2009, at 14:34, Ian Wells wrote: I removed -Debug, and set $ENV{CATALYST_DEBUG} =1 using PerlSetEnv CATALYST_DEBUG 1. Malloy, try dumping $ENV{CATALYST_DEBUG} in your app code and seeing if it's actually set. Ideally, do that in lib/{App}.pm . This behavior sounds like you may be

Re: [Catalyst] Scalable Catalyst

2009-06-29 Thread Tomas Doran
On 30 Jun 2009, at 11:58, Alejandro Imass wrote: Hi! Sorry for the lethargy, I've buried in a project and just recently saw the light of day :-) Yes, you are correct [Tomas], BUT it all depends on the type of application. Web concurrency is often misinterpreted. The application I was referrin

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80006

2009-06-29 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the latest maintenance release of Catalyst-Runtime, version 5.80006. This fixes regressions introduced in the last release with the encoding of arguments to actions, and a number of other bugs. It also adds more flexible exce

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.

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

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

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

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

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

<    3   4   5   6   7   8   9   10   11   >