Re: [Catalyst] Advent Calendar
On Thu, Nov 26, 2009 at 08:18:41PM -0700, Devin Austin wrote: >Hey all, >kd's laptop has shat out. �Zamolxes and I will have to take the reigns on >getting things set up. �Please email the list, either of us, or hit us up >on irc regarding all things Advent. Is there any reason why the RSS feed from 2008 appears to have risen from the dead? I was a tiny bit surprised to see a screen of "Sorry! Christmas got the better of us ..." entries in my LJ friend feed today. -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Any problem can be made unsolvable with enough meetings. ___ 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.perl.org/
Re: [Catalyst] Configuration based on hostname
On Fri, Jul 17, 2009 at 04:33:59PM +0200, Matthias Dietrich wrote: > where can I find information about this +Parent option? http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ What do you call a chav in a box? Innit. ___ 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.perl.org/
Re: [Catalyst] more description for FAST CGI deployment in catalyst cookbook?
On Thu, Jul 16, 2009 at 10:39:08AM +1000, kakim...@tpg.com.au wrote: > > What OS/Distro are you using? Maybe someone else already has an > > example/setup that you can peek at. > > Good morning, Chisel. > Yep, I am using Ubuntu Hardy Heron :) That would be most helpful. > Thanks :) In general you want to be placing your files into /etc/apache2/sites-available and then: sudo a2ensite For one of my fastcgi sites I have a file that looks like: # usual server stuff for a virtualhost FastCgiServer /path/to/myapp/script/myapp_fastcgi.pl -processes 3 -initial-env CATALYST_DEBUG=1 Alias /static /path/to/myapp/root/static # run at the root Alias //path/to/myapp/script/cleavages_fastcgi.pl/ # etc You'll need either: sudo /etc/init.d/apache2 reload or sudo /etc/init.d/apache2 restart I also have some fastcgi docs for parley; I believe they still work: https://developer.berlios.de/docman/display_doc.php?docid=1838&group_id=5999#apache_fastcgi [ http://bit.ly/Parley_fastcgi ] Hopefully that's enough to get you on your way. Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Always move fast - you never know who's catching up! ___ 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.perl.org/
Re: [Catalyst] more description for FAST CGI deployment in catalyst cookbook?
On Thu, Jul 16, 2009 at 10:18:02AM +1000, kakim...@tpg.com.au wrote: > Yep, i can agree with that. I do hope someone could write a tute for a > specific setup. > At least there's something concrete for non-admin savvy people to turn to. Which specific setup though? As Andrew said, apache configurations differ quite a bit from vendor to vendor. What OS/Distro are you using? Maybe someone else already has an example/setup that you can peek at. -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Ubuntu is an old African word which means: "I can't configure Debian" ___ 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.perl.org/
Re: [Catalyst] Page of results with Template Toolkit?
On Tue, Jun 23, 2009 at 05:43:14PM -0300, Naylor Garcia wrote: > There is page of results with Template Toolkit? It's not clear (to me) what you are asking, or trying to achieve here. Could you provide more details of your problem? Chisel -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ My theory is that Lynx is just a way of making chavs more flammable. ___ 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.perl.org/
Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]
On Fri, May 08, 2009 at 03:35:13PM +0100, Tomas Doran wrote: > Tomas Doran wrote: >> Nice one, applied with tiny changes as r10052. > > And shipped as 0.05. Thanks .. and thanks for your patience and gentle prodding to refine my submission. Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ AFK, tornado... ___ 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.perl.org/
Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]
On Thu, May 07, 2009 at 02:45:09PM +0100, Tomas Doran wrote: > You should just be able to remove the accessor module from the > inheritance here. > > A lot of your changes change NEXT::foo => next::method. Do you really > mean that, or do you mean maybe::next::method? (especially the one where > you say if $self->next::can; > > Your patch also uses Class::C3, rather than MRO::Compat, so people on > perl 5.10 will load Class::C3 (which is not needed) - can you use > MRO::Compat instead? Also, can you add the new dependency to Makefile.PL 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: chi...@wiggin:Catalyst-Controller-FormBuilder-0.04-orig$ patch -p 1 --dry-run < ../catalyst-controller-formbuilder.patch patching file lib/Catalyst/Controller/FormBuilder/Action.pm patching file lib/Catalyst/Controller/FormBuilder.pm patching file Makefile.PL patching file t/lib/TestApp/Component/HTML/Template.pm patching file t/lib/TestApp/Component/Mason.pm patching file t/lib/TestApp/Component/TT.pm chi...@wiggin:Catalyst-Controller-FormBuilder-0.04-orig$ Chisel -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ SELECT message FROM signatures ORDER BY RANDOM() LIMIT 1; diff -Naur Catalyst-Controller-FormBuilder-0.04-orig/lib/Catalyst/Controller/FormBuilder/Action.pm Catalyst-Controller-FormBuilder-0.04/lib/Catalyst/Controller/FormBuilder/Action.pm --- Catalyst-Controller-FormBuilder-0.04-orig/lib/Catalyst/Controller/FormBuilder/Action.pm 2007-06-18 12:42:15.0 +0100 +++ Catalyst-Controller-FormBuilder-0.04/lib/Catalyst/Controller/FormBuilder/Action.pm 2009-05-07 18:32:26.0 +0100 @@ -5,10 +5,10 @@ use CGI::FormBuilder::Source::File; use File::Spec; use Class::Inspector; -use NEXT; +use MRO::Compat; use Scalar::Util (); -use base qw/Catalyst::Action Class::Accessor::Fast Class::Data::Inheritable/; +use base qw/Catalyst::Action Class::Data::Inheritable/; __PACKAGE__->mk_classdata(qw/_source_class/); __PACKAGE__->mk_accessors(qw/_attr_params _source_type/); @@ -126,7 +126,7 @@ my $self = shift; my ( $controller, $c ) = @_; -return $self->NEXT::execute(@_) +return $self->maybe::next::method(@_) unless exists $self->attributes->{ActionClass} && $self->attributes->{ActionClass}[0] eq $controller->_fb_setup->{action}; @@ -134,7 +134,7 @@ my $form = $self->_setup_form(@_); Scalar::Util::weaken($form->{c}); $controller->_formbuilder($form); -$self->NEXT::execute(@_); +$self->maybe::next::method(@_); $controller->_formbuilder($form); # keep the same form in case of forwards $self->setup_template_vars( @_ ); diff -Naur Catalyst-Controller-FormBuilder-0.04-orig/lib/Catalyst/Controller/FormBuilder.pm Catalyst-Controller-FormBuilder-0.04/lib/Catalyst/Controller/FormBuilder.pm --- Catalyst-Controller-FormBuilder-0.04-orig/lib/Catalyst/Controller/FormBuilder.pm 2007-06-18 12:42:33.0 +0100 +++ Catalyst-Controller-FormBuilder-0.04/lib/Catalyst/Controller/FormBuilder.pm 2009-05-07 18:36:38.0 +0100 @@ -1,7 +1,7 @@ package Catalyst::Controller::FormBuilder; use strict; -use base qw/Catalyst::Controller Class::Accessor::Fast/; +use base qw/Catalyst::Controller/; our $VERSION = "0.04"; diff -Naur Catalyst-Controller-FormBuilder-0.04-orig/Makefile.PL Catalyst-Controller-FormBuilder-0.04/Makefile.PL --- Catalyst-Controller-FormBuilder-0.04-orig/Makefile.PL 2007-06-18 12:47:41.0 +0100 +++ Catalyst-Controller-FormBuilder-0.04/Makefile.PL 2009-05-07 18:37:31.0 +0100 @@ -7,7 +7,7 @@ requires 'CGI::FormBuilder' => '3.02'; requires 'Catalyst::Runtime' => '5.7'; -requires 'Class::Accessor::Fast' => '0.25'; +requires 'MRO::Compat'=> '0.09'; requires 'Test::WWW::Mechanize::Catalyst' => '0.37'; requires 'Tie::IxHash'=> '1.21'; requires 'Class::Data::Inheritable' => '0.04'; diff -Naur Catalyst-Controller-FormBuilder-0.04-orig/t/lib/TestApp/Component/HTML/Template.pm Catalyst-Controller-FormBuilder-0.04/t/lib/TestApp/Component/HTML/Template.pm --- Catalyst-Controller-FormBuilder-0.04-orig/t/lib/TestApp/Component/HTML/Template.pm 2006-11-28 21:33:25.0 + +++ Catalyst-Controller-FormBuilder-0.04/t/lib/TestApp/Component/HTML/Template.pm 2009-05-07 18:33:48.0 +0100 @@ -3,17 +3,22 @@ use strict; use base 'Catalyst::View::HTML::Template'; +use MRO::Compat; + sub new { my $self = shift; + +# force stringification, Moose validation only accepts a S
Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]
On Thu, May 07, 2009 at 02:45:09PM +0100, Tomas Doran wrote: > 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 patch). No big deal however :) Most odd; I'm pretty sure I was at the top of the dist when I patched: diff -Naur t-orig/lib/TestApp/Component/HTML/Template.pm t/lib/TestApp/Component/HTML/Template.pm --- t-orig/lib/TestApp/Component/HTML/Template.pm 2009-05-06 18:28:43.0 +0100 +++ t/lib/TestApp/Component/HTML/Template.pm2009-05-06 18:35:26.0 +0100 > You should just be able to remove the accessor module from the > inheritance here. > > A lot of your changes change NEXT::foo => next::method. Do you really > mean that, or do you mean maybe::next::method? (especially the one where > you say if $self->next::can; > > Your patch also uses Class::C3, rather than MRO::Compat, so people on > perl 5.10 will load Class::C3 (which is not needed) - can you use > MRO::Compat instead? Also, can you add the new dependency to Makefile.PL OK, I'll resubmit tonight/tomorrow. To be honest, I wasn't really sure what I was doing, but I'd found a solution. Cheers for the feedback. Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ 'Everyone say chiz!' Otto commanded - Monstrous Regiment ___ 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.perl.org/
Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder [patches attached]
On Wed, May 06, 2009 at 10:09:17AM +0100, Chisel Wright wrote: > OK, I should be able to pick this up tonight. I'll drop a patch here > when I'm done. I've attached three patches: - one for the TestApp/Component/* issue - one for Formbuilder::Action (it's not happy with Class::Accessor::Fast) - one for View::HTML::Template to deal with the Catalyst::Base warning All the tests pass against Catalyst-Controller-FormBuilder-0.04 with Catalyst-5.80003. I consciously stayed clear of Moosifying anything (e.g. _mk_accessors) in the hope that the module still works with 5.7. Chisel -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Please wait a moment while Windows prepares to start for the first time.. diff -Naur t-orig/lib/TestApp/Component/HTML/Template.pm t/lib/TestApp/Component/HTML/Template.pm --- t-orig/lib/TestApp/Component/HTML/Template.pm 2009-05-06 18:28:43.0 +0100 +++ t/lib/TestApp/Component/HTML/Template.pm 2009-05-06 18:35:26.0 +0100 @@ -3,17 +3,25 @@ use strict; use base 'Catalyst::View::HTML::Template'; +use Class::C3; + sub new { my $self = shift; + +# force stringification, Moose validation only accepts a Str +my $path = TestApp->path_to( 'root', 'src', 'tmpl' ) . q{}; + $self->config( { die_on_bad_params => 0, -path => [ -TestApp->path_to( 'root', 'src', 'tmpl' ), -], +path => $path, }, ); -return $self->NEXT::new(@_); + +return $self = $self->next::method(@_) +if $self->next::can; + +return $self; } 1; diff -Naur t-orig/lib/TestApp/Component/Mason.pm t/lib/TestApp/Component/Mason.pm --- t-orig/lib/TestApp/Component/Mason.pm 2009-05-06 18:28:43.0 +0100 +++ t/lib/TestApp/Component/Mason.pm 2009-05-06 18:35:59.0 +0100 @@ -3,13 +3,18 @@ use strict; use base 'Catalyst::View::Mason'; +use Class::C3; + sub new { my $self = shift; my $comp_root = TestApp->path_to( 'root', 'src', 'mason' ); $self->config->{comp_root} = "$comp_root"; -return $self->NEXT::new(@_); +return $self = $self->next::method(@_) +if $self->next::can; + +return $self; } 1; diff -Naur t-orig/lib/TestApp/Component/TT.pm t/lib/TestApp/Component/TT.pm --- t-orig/lib/TestApp/Component/TT.pm 2009-05-06 18:28:43.0 +0100 +++ t/lib/TestApp/Component/TT.pm 2009-05-06 18:30:11.0 +0100 @@ -3,6 +3,8 @@ use strict; use base 'Catalyst::View::TT'; +use Class::C3; + sub new { my $self = shift; $self->config( @@ -16,7 +18,11 @@ TIMER => 0, } ); -return $self->NEXT::new(@_); + +return $self = $self->next::method(@_) +if $self->next::can; + +return $self; } 1; diff -Naur lib-orig/Catalyst/Controller/FormBuilder/Action.pm lib/Catalyst/Controller/FormBuilder/Action.pm --- lib-orig/Catalyst/Controller/FormBuilder/Action.pm 2009-05-06 18:52:21.0 +0100 +++ lib/Catalyst/Controller/FormBuilder/Action.pm 2009-05-06 19:01:23.0 +0100 @@ -5,10 +5,10 @@ use CGI::FormBuilder::Source::File; use File::Spec; use Class::Inspector; -use NEXT; +use Class::C3; use Scalar::Util (); -use base qw/Catalyst::Action Class::Accessor::Fast Class::Data::Inheritable/; +use base qw/Catalyst::Action Class::Accessor Class::Data::Inheritable/; __PACKAGE__->mk_classdata(qw/_source_class/); __PACKAGE__->mk_accessors(qw/_attr_params _source_type/); @@ -126,7 +126,7 @@ my $self = shift; my ( $controller, $c ) = @_; -return $self->NEXT::execute(@_) +return $self->next::method(@_) unless exists $self->attributes->{ActionClass} && $self->attributes->{ActionClass}[0] eq $controller->_fb_setup->{action}; @@ -134,7 +134,7 @@ my $form = $self->_setup_form(@_); Scalar::Util::weaken($form->{c}); $controller->_formbuilder($form); -$self->NEXT::execute(@_); +$self->next::method(@_); $controller->_formbuilder($form); # keep the same form in case of forwards $self->setup_template_vars( @_ ); --- Catalyst/View/HTML/Template.pm.orig 2009-05-06 18:39:08.0 +0100 +++ Catalyst/View/HTML/Template.pm 2009-05-06 18:39:46.0 +0100 @@ -1,7 +1,7 @@ package Catalyst::View::HTML::Template; use strict; -use base 'Catalyst::Base'; +use base 'Catalyst::Controller'; use HTML::Template; ___ 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.perl.org/
Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder
On Wed, May 06, 2009 at 12:29:55AM +0100, Tomas Doran wrote: > You have fixes. > > Please commit them somewhere and we can get a development release out > (at least). OK, I should be able to pick this up tonight. I'll drop a patch here when I'm done. -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ I can't decide if I'm indecisive or not. ___ 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.perl.org/
Re: [Catalyst] Tests fail installing Catalyst::Controller::FormBuilder
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/build/Catalyst-Controller-FormBuilder-0.04/t/lib/Tes > tApp/Component/TT.pm line 19 I cleverly based some of my own test libraries in the TestApp::Component::* modules from FormBuilder. My fixed TestApp::Component::TT ended up looking like this: cut here package # hide from PAUSE TestApp::Component::TT; # vim: ts=8 sts=4 et sw=4 sr sta use strict; use warnings; use base 'Catalyst::View::TT'; use Class::C3; sub new { my $self = shift; $self->config( { INCLUDE_PATH => [ TestApp->path_to( 'root', 'src', 'tt2' ), TestApp->path_to( 'root', 'lib', 'tt2' ), ], TEMPLATE_EXTENSION => '.tt', CATALYST_VAR => 'Catalyst', TIMER => 0, } ); return $self = $self->next::method(@_) if $self->next::can; return $self; } cut here I'm sure I've screwed up somewhere, but all my tests pass (again) after this change (which you may need in the other Component::* classes under t/lib -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ It's just a motivational meeting. I don't care if I miss it. ___ 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.perl.org/
Re: [Catalyst] Bad gateway error
On Sun, May 03, 2009 at 07:18:50AM +0900, J. Shirley wrote: >If you have a proxy in front, and the backend is down, you get a 502 >error. I'm quite confident (but couldn't confirm until Tuesday) that my application is setup as per fastcgi / Standalone server mode in the cookbook, and I get 500 not 502 when the app isn't running. -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ It's like ingenuity wrapped in stupidity wrapped in a function. ___ 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.perl.org/
Re: [Catalyst] Bad gateway error
On Sat, May 02, 2009 at 01:55:27PM +0100, Ash Berlin wrote: > Then the Cookbook is wrong. I've never seen anything but a 500 error > from any web server I've used. When setting up my first apache + fastcgi application I ended up following the cookbook recipe and switching from 502 to 500. I assumed I'd done something wrong but it's looking like a doc-patch might be in order. -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ For this and the answers to many other questions don't ask me. ___ 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.perl.org/
Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded
On Thu, Apr 30, 2009 at 03:05:35PM +0100, Tomas Doran wrote: > Catalyst::Plugin::Upload::Image::Magick contains code which says > Catalyst::Request::Upload->mk_accessors('_image'); > > This is the plugin changing the core framework class, and is nasty > action at a distance. > > That plugin is broken Yeah, I'd already come to that conclusion. Any suggestions for a sane(r) approach? As it's a plugin I've used I might be able to find some tuits to experiment with an implementation. Chisel -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ It's not dead, it's just resting! ___ 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.perl.org/
Re: [Catalyst] upgraded to latest catalyst runtime 5.8 and Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed cant be loaded
On Thu, Apr 30, 2009 at 11:40:47PM +1000, kakim...@tpg.com.au wrote: > Could not load class > (Catalyst::Plugin::Upload::Image::Magick::Thumbnail::Fixed) because : > You are trying to modify Catalyst::Request::Upload, which has been made > immutable, this is not supported. Try subclassing > Catalyst::Request::Upload, rather than monkeypatching it at > /usr/local/lib/perl5/site_perl/5.8.9/MooseX/Emulate/Class/Accessor/Fast.pm > line 107 Yeah, I stumbled across this the other day and added output to the RT ticket: https://rt.cpan.org/Ticket/Display.html?id=45188 I had a quick look but wasn't sure how to resolve the issue (properly). Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Pink is my favourite crayon ___ 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.perl.org/
Re: [Catalyst] Using JSON
On Tue, Apr 14, 2009 at 06:05:53PM +0300, Octavian R???ni wrote: > Hi, > > 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 tend to use JSON::Any with JSON::XS -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ If you're looking for sympathy you'd have better luck looking between R and T in the dictionary. ___ 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.perl.org/
Re: [Catalyst] Debugging help needed
On Sun, Mar 29, 2009 at 07:52:27AM -0400, Jesse Sheidlower wrote: > [% WHILE (tuning = tunings.next) %] Have you used tunings anywhere else? A common mistake I make is to loop through a resultset $somewhere_else, draining it of records. Does [% CALL tunings.reset %] before the WHILE make any difference? Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ clique: (n) group of people who disagree with the original poster ___ 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.perl.org/
Re: [Catalyst] Catalyst - any good AJAX tutes?
On Fri, Mar 06, 2009 at 04:43:36PM +1100, kakim...@tpg.com.au wrote: > I would like to use AJAX in my catalyst app. Any good references/tutes > to recommend? It's just like using ajax anywhere else. Find a library you like, and start using it. View::JSON can be useful in sending responses to AJAX-y requests. I've settled on YUI, but a quick google will reveal many other libraries. (script.aculo.us, dojo, jquery, ...) -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ "Rhinology Weevils" ___ 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.perl.org/
Re: [Catalyst] Requirements for Catalyst
On Sat, Feb 21, 2009 at 09:42:59PM -0800, bill hauck wrote: > I'd suggest getting a month with Linode and seeing how you like it. I've recently picked up a linode VPS and have been quite happy with it. I've put Ubuntu 8.10 on mine. I found it pretty easy to get up and running and haven't had any real issues with it at all (although I don't get enough traffic to be considered a reliable load test). I've documented my basic set-up if anyone's interested: http://info.chizography.net/mediawiki/index.php/Linode It's rough round the edges, but seems to have done the trick. Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Stop pedanting. All nouns can be verbed. ___ 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.perl.org/
Re: [Catalyst] Re: New Catalyst Book?
On Fri, Feb 06, 2009 at 12:30:03PM -0500, Jesse Sheidlower wrote: > Hmm. As someone who just incorporated an external search > engine into two different Cat apps, I would have loved to have > had such a chapter available Quick! Write down what you did! :) -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ "If I seem superhuman I have been misunderstood" ___ 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.perl.org/
Re: [Catalyst] create model
On Fri, Jan 30, 2009 at 01:40:40PM -0800, gdewitt wrote: > my $result = $c->model('Schema::Table')->find( 'x' ); Does this stop it from using _all_ unique constraints? my $result = $c->model('Schema::Table')->find( 'x', { key => 'primary' } ); -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Stop pedanting. All nouns can be verbed. ___ 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.perl.org/
Re: [Catalyst] Newbie Question about Database
On Tue, Jan 20, 2009 at 09:08:31AM -0500, Giancarlo Corcuera wrote: > Thank you all for your answers: > Actually, what I did is to follow the basic instructions from mysql > forum but what I was missing is to set the user with full access from > any host, which I created later from phpmyadmin. full access? any host? this makes me nervous (for you and your data) -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Two Eskimos sitting in a kayak were chilly; but when they lit a fire in the craft, it sank, proving once and for all that you can't have your kayak and heat it. ___ 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.perl.org/
Re: [Catalyst] Perl 5.10 warnings. ("used only once")
On Fri, Nov 07, 2008 at 12:09:54AM +, Greg Matheson wrote: > On Thu, 06 Nov 2008, Bill Moseley wrote: > > > > Name "Catalyst::Controller::setup_dispatcher" used only once: > > > possible typo at /usr/share/perl/5.10/NEXT.pm line 58. > > > I patched my NEXT.pm which seemed to suppress it. I've attached. > > Does just setting a scalar by the same name to undef seem like a > > reasonable way to suppress this noise? > > Someone on #perl suggested 'no warnings "only"', or something. Was this resolved? I've not been able to find anything tonight. I know it's not critical, but I'd quite like to clean up my output/logs. Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Pink is my favourite crayon ___ 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.perl.org/
Re: [Catalyst] create search engine friendly uri from string
On Mon, Dec 15, 2008 at 02:14:16PM -0800, J. Shirley wrote: > I've been meaning to, for use with DBIx::Class::Tokenize ... but > better to have something like Text::Filter::URI and then a Template > Toolkit Filter that simply uses that underlying module. I agree. I initially wrote Template::Plugin::$do_something_or_other then soon realised that I didn't only want to use it in TT. I recently factored out the useful stuff into its own module and made the plugin not much more than a TT wrapper around it. -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ You should go to Australia. Beautiful women there and they descend from prisoners so they don't mind being tied up. ___ 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.perl.org/
Re: [Catalyst] [Announce] Catalyst-Runtime 5.8000_04 shipped to CPAN
On Sun, Dec 14, 2008 at 01:47:03AM +, Tomas Doran wrote: > I in no way think it is related, but can you try upgrading to the latest > Moose just in case this solves your issue? I don't get the same level of FAIL after upgrading to 0.63. The app appears to be behaving as I'd expect it to. There are a few (startup gripes) but nothing that stops it all from running: Subroutine initialize redefined at /usr/share/perl5/Class/C3.pm line 70. Subroutine uninitialize redefined at /usr/share/perl5/Class/C3.pm line 88. Subroutine reinitialize redefined at /usr/share/perl5/Class/C3.pm line 101. Parley is trying to use NEXT, which is crap. use Class::C3 or Moose method modifiers instead. at /usr/local/share/perl/5.10.0/Catalyst/Plugin/StackTrace.pm line 176 Parley::View::TT is trying to use NEXT, which is crap. use Class::C3 or Moose method modifiers instead. at /usr/share/perl5/Catalyst/View/TT.pm line 122 Parley::View::JSON is trying to use NEXT, which is crap. use Class::C3 or Moose method modifiers instead. at /usr/local/share/perl/5.10.0/Catalyst/View/JSON.pm line 15 Parley::View::Plain is trying to use NEXT, which is crap. use Class::C3 or Moose method modifiers instead. at /usr/share/perl5/Catalyst/View/TT.pm line 122 Parley::Model::ParleyDB is trying to use NEXT, which is crap. use Class::C3 or Moose method modifiers instead. at /usr/local/share/perl/5.10.0/Catalyst/Model/DBIC/Schema.pm line 284 I assume these will go away when the dependencies are updated. > saying perl -I ~/Catalyst-Runtime whatever will work fine, that's what > I'm using... I thought as much, I was just doubting myself that day. I tend to work on the assumption that something that doesn't work is usually because I've done something dumb. :) Cheers for your input, Chiz -- Chisel Wright e: chi...@herlpacker.co.uk w: http://www.herlpacker.co.uk/ Always move fast - you never know who's catching up! ___ 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.perl.org/
[Catalyst] Catalyst Advent Calendar - Day 10 - Config General & Arrays
I was just reading http://www.catalystframework.org/calendar/2008/10 thinking to myself, "awesome! this really bugs me!" I hope you'll forgive me for being old and slow, but where should one place The Solution? [setup' => sub { }] It's not obvious [to me] from the advent entry. Cheers, Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Please wait a moment while Windows prepares to start for the first time.. ___ 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.perl.org/
Re: [Catalyst] ANNOUNCE: Progressive authentication attempts
On Sat, Nov 29, 2008 at 11:56:02AM -0700, Jason Kuri wrote: > Please thank J. Shirley for his excellent module. Thank You! This came at the perfect time in a key internal project at work. It's working like a charm with LDAP falling through to Minimal realms. Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Pink is my favourite crayon ___ 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.perl.org/
Re: [Catalyst] [Announce] Catalyst-Runtime 5.8000_04 shipped to CPAN
On Tue, Dec 09, 2008 at 08:30:10AM +, Tomas Doran wrote: > What versions of Moose and Class::MOP are you running? 0.60 and 0.68 respectively (from perldoc -m Foo |grep VERSION) I'll see if I can find somewhere to actually install Catalyst-Runtime properly, rather than just using a path hack. I'm just worried about knackering my installation and not being able to revert. I did suggest it might be me :) -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Everyone's first vi session: ^C^C^X^X^X^XquitqQ!qdammit[esc]qwertyuiopasdfghjkl;:xwhat ___ 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.perl.org/
Re: [Catalyst] [Announce] Catalyst-Runtime 5.8000_04 shipped to CPAN
On Fri, Dec 05, 2008 at 04:25:49PM +0100, Marcus Ramberg wrote: >There are still a few problems to solve before the next stable CPAN >release (Some of the plugins are still failing tests, most notoriously the >backwards compatibility tests of Catalyst-Plugin-Authentication), but >Catalyst-Runtime now works on our apps. That is why we would like for you >to try it out, and tell us what breaks on your apps (If you don't, we will >happily ignore your anguished cries later (Well, probably not, but please >test it anyways!)) The developer release is currently on it's way to >CPAN, and should be available for your local mirror before long. In case >you are interested, I've included the change log since the last dev >release below. I don't know if I've done something stupid somewhere. Running the tests for Catalyst-Runtime-5.8000_04 passes: All tests successful. Files=40, Tests=2106, 57 wallclock secs ( 0.68 usr 0.20 sys + 46.77 cusr 1.80 MyApp is fine under 5.7014, starting it with: PERL5LIB=${HOME}/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib CATALYST_DEBUG=1 DBIC_TRACE=1 ./script/parley_server.pl --host=localhost -r -rd 2 --port=3000 any hits to the app give me the following: [info] *** Request 3 (0.005/s) [11697] [Mon Dec 8 22:05:46 2008] *** [error] Caught exception in engine "Attribute (headers) does not pass the type constraint because: Validation failed for 'Header' failed with value HTTP::Headers=HASH(0xa6dee88) at /usr/local/share/perl/5.10.0/Moose/Meta/Class.pm line 193 Moose::Meta::Class::construct_instance('Moose::Meta::Class=HASH(0x95e96a8)', 'HASH(0xa6de8a8)') called at /usr/local/lib/perl/5.10.0/Class/MOP/Class.pm line 388 Class::MOP::Class::new_object('Moose::Meta::Class=HASH(0x95e96a8)', 'HASH(0xa6de8a8)') called at /usr/local/share/perl/5.10.0/Moose/Meta/Class.pm line 157 Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x95e96a8)', 'HASH(0xa6de8a8)') called at /usr/local/share/perl/5.10.0/Moose/Object.pm line 17 Moose::Object::new('Parley', 'HASH(0xa6de888)') called at /home/chisel/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib/Catalyst.pm line 1671 Catalyst::prepare('Parley') called at /usr/local/share/perl/5.10.0/Catalyst/Plugin/FormValidator.pm line 35 Catalyst::Plugin::FormValidator::prepare('Parley') called at /home/chisel/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib/Catalyst.pm line 1638 eval {...} called at /home/chisel/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib/Catalyst.pm line 1630 Catalyst::handle_request('Parley') called at /home/chisel/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib/Catalyst/Engine/HTTP.pm line 375 Catalyst::Engine::HTTP::_handler('Catalyst::Engine::HTTP::Restarter=HASH(0x9a8ecd8)', 'Parley', 3000, 'GET', '/forum/list', 'HTTP/1.1') called at /home/chisel/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib/Catalyst/Engine/HTTP.pm line 281 Catalyst::Engine::HTTP::run('Catalyst::Engine::HTTP::Restarter=HASH(0x9a8ecd8)', 'Parley', 3000, 'localhost', 'HASH(0x9337648)') called at /home/chisel/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib/Catalyst/Engine/HTTP/Restarter.pm line 70 Class::MOP::Class:::around('CODE(0x8fa3af8)', 'Catalyst::Engine::HTTP::Restarter=HASH(0x9a8ecd8)', 'Parley', 3000, 'localhost', 'HASH(0x9337648)') called at /usr/local/lib/perl/5.10.0/Class/MOP/Method/Wrapped.pm line 129 Class::MOP::Method::Wrapped::__ANON__('Catalyst::Engine::HTTP::Restarter=HASH(0x9a8ecd8)', 'Parley', 3000, 'localhost', 'HASH(0x9337648)') called at /usr/local/lib/perl/5.10.0/Class/MOP/Method/Wrapped.pm line 89 Catalyst::Engine::HTTP::Restarter::run('Catalyst::Engine::HTTP::Restarter=HASH(0x9a8ecd8)', 'Parley', 3000, 'localhost', 'HASH(0x9337648)') called at /home/chisel/development/open_source/dev-tests/Catalyst-Runtime-5.8000_04/lib/Catalyst.pm line 1934 Catalyst::run('Parley', 3000, 'localhost', 'HASH(0x9337648)') called at ./script/parley_server.pl line 57" Is this likely to be my stupidity? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ All complaints must be submitted in writing on the back of a ten pound note. ___ 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.perl.org/
Re: [Catalyst] Advent calendar
On Tue, Dec 02, 2008 at 08:38:25AM +1100, Kieren Diment wrote: > And of course I forgot the URL: http://www.catalystframework.org/calendar ... and because I'm a forgetful/lazy fecker, I've syndicated the feed in livejournal: http://syndicated.livejournal.com/catadvent08/ Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ It's just a motivational meeting. I don't care if I miss it. ___ 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.perl.org/
Re: [Catalyst] recommendation
On Mon, Nov 10, 2008 at 07:31:09PM +0200, Octavian Rasnita wrote: > Especially for a beginner, but not only, the most simple way of creating > the DBIC classes for a Catalyst app is to use the DBIC::Schema helper. > > I've seen that there are many components of DBIx::Class that can't be > used if using this helper, because they should be loaded before Core or > they require changing the part of the class that can't be modified. > > Which is the recommended way for creating a complex app that needs using > those components? I'm not 100% certain what you're asking here. Are you using DBIx::Class::Schema::Loader with "create=dynamic"? I've always used "create=static" to give me the initial files to work from, and have extended, adjusted and tweaked them as I extend my schema. After the initial create.pl has been run I make all changes manually. I'm probably doing it "wrong" though. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ 'Everyone say chiz!' Otto commanded - Monstrous Regiment ___ 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.perl.org/
See my comment at the end (was: Re: [Catalyst] Troubleshooting Help Please)
_for('/admin/')); > > >return; > > > > > >} > > > > > >else { # Set an error message > > > > > > $c->stash->{message} = "Bad username or password."; > > > $c->stash->{login} = "$login"; > > >} > > >} > > >} > > > > > ># If either of above don't work out, send to the login page > > >$c->stash->{template} = 'templates/forms/login_form.mas'; > > > } > > > > > > > > > > > > 1; > > > > > > > > > > > > Also, there's this snippet in the root controller that handles checking > > > for > > > valid user: > > > > > ># If a user doesn't exist, force login > > > > > >if (!$c->user_exists) { > > > > > >$c->response->redirect($c->uri_for('login')); > > ># Return 0 to cancel 'post-auto' processing and prevent use > > > of application > > >return 0; > > >} > > > > > > > > > > > > Thanks for the help! > > > > > > > > > Paul Cory > > > WCPSS Webmaster > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > Please also send your applications configuration so we can see your > > auth store. I do just have to ask though... why such ancient > > software? Apache 1 and MP1? Ouch. > > > > Off the top of my head, you are running out of space on your cache dir > > (how big is your tmp dir?). If you change your Session::Store or > > setup for a larger cache it'd probably alleviate the problem. > > ... or running out of file descriptors. Do a 'lsof -p ' where PID > is that of the httpd children. I see a file descriptor leak in > Catalyst::Engine::finalize_body in my cat app. > > See this post for more info: > > http://lists.scsys.co.uk/pipermail/catalyst/2007-November/015817.html > > > -J > > > > ___ > > 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.perl.org/ > > -- > James R. Leu > [EMAIL PROTECTED] > ___ > 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.perl.org/ -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Pedantry is a hugely underrated attribute. ___ 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.perl.org/
[Catalyst] One (central) app, one schema, X databases
I'm just in the initial planning phase of a project. The basic idea is to have X locations running App::Location, each with a local database that has a App::Location::Schema. Everything's the same, just different data in the locations. We'd like to have a centralised tool to manage App::Location #1 ... App::Location #X - App::Central App::Central may have it's own App::Central::Schema, but it should also be able to interact with App::Location::Schema #1 .. App::Location::Schema #X. This is where I'm unsure how to proceed. I'd like to have a configuration list that boils down to something like: instance1: dsn_host=location1.foo.com instance2: dsn_host=location2.foo.com ... instanceX: dsn_host=locationX.foo.com and have some form of cunningness or magic that turns this into an accessible DBIC model. I'm aware that I could use http://search.cpan.org/~zarquon/Catalyst-Manual-5.7013/lib/Catalyst/Manual/Cookbook.pod#Using_existing_DBIC_(etc.)_classes_with_Catalyst (http://xrl.us/oqs9o) and create a MyApp::Model::Location1::DB and so on, but this seems wrong. If I've made any sense, does anyone have any docs that I should be looking at (I promise I had a look around), or examples of where they've done the same thing? I'm thinking that there might be a solution involving a App::Model::MiddleLayer that provides something like: App::Model::MiddleLayer->schema( $instance_name ) but it's a vague idea that I can't quite get to solidify in my head. Thanks for reading this far! Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Chuck Norris doesn’t wear a watch, HE decides what time it is. ___ 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.perl.org/
Re: [Catalyst] list of perl-*.rpm files for a basic Cat install
On Sun, Aug 17, 2008 at 08:26:25PM +0100, Dermot wrote: > Hardware manufacturer's only release drivers for distro like RHEL? I > bet there isn't a mention of Debian or Free BSD on HP's site. What are > the preferred disto's/OS's? I think you can still use perl on RHEL/CentOS but the general recommendation is that you build your own. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I'm so far in the closet, I am having adventures in Narnia. ___ 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.perl.org/
Re: [Catalyst] Squatting::On::Catalyst
On Tue, Jul 29, 2008 at 02:21:10PM +0200, Daniel McBrearty wrote: > 1. letting users keep existing member and login creds > 2. being able to cross ref to other parts of the site eg. for a > certain node, easily have a "discussion" link, and the reverse link > from the forum If you ever think of a good way of doing this, please let me know! -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ What do you call a chav in a box? Innit. ___ 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.perl.org/
Re: [Catalyst] please take me of your mailing list
On Sat, Jul 19, 2008 at 10:26:38PM -0700, tim nong wrote: > please take me of your mailing list You can do this yourself, either from the "listinfo" link at the bottom of this, and every list post, or sending an email to [EMAIL PROTECTED] with a subject line of "unsubscribe" then following the instructions in the email you get. Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ A hyperactive imagination for disaster scenarios is a professional asset. ___ 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.perl.org/
Re: [Catalyst] connecting to more than one database
On Thu, Jul 03, 2008 at 09:30:22PM +0530, jagdish eashwar wrote: >Putting all the tables in one database is a solution. I am afraid, >however, that when I create a model using script/MyApp_create.pl for a >specific Catalyst application, I'll get all the tables in the database >into my DBIC schema. Is there a way of making MyApp_create.pl pick up >only a subset of the tables? You could let script/MyApp_create.pl create all the files for all the tables, then (copy and) edit MyApp/Schema.pm to use load_classes($listref). Copy it and change the list for the other set of tables. You'd then have MyApp/Schema1.pm and MyApp/Schema2.pm that only load the subset you're interested in. Can't promise it's sane and without issues, but it's a possible solution. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Two Eskimos sitting in a kayak were chilly; but when they lit a fire in the craft, it sank, proving once and for all that you can't have your kayak and heat it. ___ 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.perl.org/
Re: [Catalyst] Capture page on server?
On Tue, Jun 24, 2008 at 12:23:05AM +0800, Martin Ellison wrote: >I actually want to save a static copy of the front page to improve load >times. My fastcgi process sometimes disappears (I'm on shared hosting and Will setting the TTCACHE help at all? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Don't cha wish your boyfriend was geek like me? ___ 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.perl.org/
Re: [Catalyst] uri_for() doesn't encode to utf8 first argument
On Thu, May 22, 2008 at 09:05:40PM +0400, Dmitriy S. Sinyavskiy wrote: > > People? what about my patch? I heven't got received any response. > I'll be glad to now some news. > Thanks. Check the archives - you had a reply a few days ago - "patch looks ok, but no tests" was the gist I think. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Q: What's tiny and yellow and very, very, dangerous? A: A canary with the super-user password. ___ 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.perl.org/
Re: [Catalyst] Variable Catalyst seems to be undefined.
On Sat, May 10, 2008 at 12:09:21AM +1000, Kieren Diment wrote: > Catalyst::View::TT uses c.stash.whatever in templates, while > Catalyst::View::TTSite uses Catalyst.stash.whatever Yeah, I fell for that. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I wrote a todo list; Now I can procrastinate more efficiently! ___ 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.perl.org/
Re: [Catalyst] Re: CatalystSites.org
On Wed, Apr 16, 2008 at 07:46:50PM +0300, Octavian Rasnita wrote: > Where can we find a manual/tutorial about using Chained? $ locate Chained|grep Catalyst /usr/local/share/man/man3/Catalyst::DispatchType::Chained.3pm /usr/local/share/perl/5.8.8/Catalyst/DispatchType/Chained.pm $ perldoc Catalyst::DispatchType::Chained maybe? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ It's like ingenuity wrapped in stupidity wrapped in a function. ___ 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.perl.org/
Re: [Catalyst] Re: CatalystSites.org
On Wed, Apr 16, 2008 at 11:20:40AM +0200, Aristotle Pagaltzis wrote: >(Note: Chained is absolutely *grreat* for taking full >control of your URI space.) Just for chuckles - does anyone have an idea of the pain-level involved in converting a non-Chained application to Chained? Or is it just not worth the effort for an established project? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ If you were MEANT to understand it, we wouldn't have called it 'code' ___ 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.perl.org/
Re: [Catalyst] CatalystSites.org
On Fri, Apr 11, 2008 at 01:21:03PM -0700, Ashley wrote: > It's that http://mysite.com/tag/1232 is meaningless to the user. Not that > it's programatically incorrect; which, as you know, it's not. > http://mysite.com/tag/pangolins is better UI. Yes. My point, made much better. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I'm so far in the closet, I am having adventures in Narnia. ___ 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.perl.org/
Re: [Catalyst] Sending email safely with Catalyst
On Fri, Apr 11, 2008 at 12:51:18PM +0200, Zbigniew Lukasiak wrote: > I've got a related question - does anyone send bulk emails with that > plugin? Is the delay reasonable when sending let's say a hundred > emails or do I need a background mechanism for that? I have now a > forking solution - but it is a bit complex (and for mod_perl they > recommend to do it in a 'cleanup' handler instead of a forked > process). I have a db-table-queue that gets dealt with by an external daemon script. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ SELECT message FROM signatures ORDER BY RANDOM() LIMIT 1; ___ 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.perl.org/
Re: [Catalyst] CatalystSites.org
On Thu, Mar 27, 2008 at 02:10:04PM -0500, Stephen Sykes wrote: > URL: http://www.catalystsites.org It strikes me as a little odd that you have: http://catalystsites.org/sites/by_tag/17 and not something like: http://catalystsites.org/sites/by_tag/a_tag -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ A hyperactive imagination for disaster scenarios is a professional asset. ___ 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.perl.org/
Re: [Catalyst] Re: ACL confusion
On Thu, Mar 20, 2008 at 01:39:58PM +0100, Aristotle Pagaltzis wrote: > (You mean the advent entry.) I mean the cookbook. I copied the example below straight out of "Access Control Lists" in Catalyst::Manual::Cookbook > >Zoo->deny_access_unless( "/moose_cage", sub { > >my $c = shift; > > $c->check_roles( "moose_trainer" ) > >|| $c->check_roles( "moose_feeder" ); > >}); > But you can write multiple rules for the same action; why not do > it that way? > > __PACKAGE__->deny_access_unless( '/books/delete', [ $_ ] ) > for qw/user admin/; Because it still behaves in an AND-like manner. > Zoo->deny_access_unless( '/moose_cage', sub { > shift->check_any_user_role( qw( moose_trainer moose_feeder ) ); > }); Yes, this is the route I ended up taking, and as far as I can tell, it does what I'm looking for. Cheers, Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live. ___ 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.perl.org/
[Catalyst] ACL confusion
I'm trying to add some ACLs to Parley. I want to restrict access to "role1 or role2 or role3" Reading Catalyst::Manual::Tutorial::Authorization: # third statement __PACKAGE__->deny_access_unless( "/books/delete", [qw/user admin/], ); ... The third statement allows both users and admins to delete books. Excellent! Just what I want! Except it doesn't seem to work like that. Reading Catalyst::Plugin::Authorization::ACL: If "allow_access_if" is used, the presence of all the roles will immediately permit access, and if "deny_access_unless" is used the lack of any of the roles will immediately deny access. Unless I need more coffee, these two say different things. Is the only way to get OR like behaviour to use the example from the cookbook? Zoo->deny_access_unless( "/moose_cage", sub { my $c = shift; $c->check_roles( "moose_trainer" ) || $c->check_roles( "moose_feeder" ); }); Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I even make myself laugh sometimes... ___ 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.perl.org/
Re: [Catalyst] developer.yahoo.com
On Tue, Mar 18, 2008 at 02:13:22PM +0200, Octavian Rasnita wrote: > Do you have any idea why? None at all. Have you tried asking _them_? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ "Lovingly wise hero" ___ 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.perl.org/
Re: [Catalyst] Can I install the catalyst manual from cpan?
On Sun, Mar 16, 2008 at 11:09:12AM +, Chisel Wright wrote: > The manuals are part of the runtime distribution: > > http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7012/lib/Catalyst/Manual.pm On a related note, I just upgraded Catalyst::Devel and saw: Warning: prerequisite Catalyst::Manual 5.7000 not found. Presumably because the manual module has no version: [EMAIL PROTECTED]:~$ grep -i VERSION `perldoc -l Catalyst::Manual` [EMAIL PROTECTED]:~$ It also doesn't return a true value - I'm not sure what the deal it with POD-only modules and "1;", but I'm sure it can't hurt to have it there, can it? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Sorry isn't an excuse when you do something stupid on purpose. ___ 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.perl.org/
Re: [Catalyst] Can I install the catalyst manual from cpan?
On Sun, Mar 16, 2008 at 12:55:46PM +0200, Ali M. wrote: > If yes how? > > I just recently started using the Strawberry Perl distribution, so I > am new to CPAN too! The manuals are part of the runtime distribution: http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7012/lib/Catalyst/Manual.pm If you install Catalyst::Runtime you should find that you have the manuals. Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Flip Flops, Buy 2 Get 1 Free! ___ 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.perl.org/
Re: [Catalyst] implementing ajax
On Tue, Mar 11, 2008 at 02:27:47PM -0700, Jennifer Ahn wrote: > Hi Ali > > Thanks for your suggestions. I was a little reluctant to explor JSON > because I didn't find the cpan documentation or catalyst book being > sufficient. Being that this application is my first with catalyst, I wanted > to tackle one thing at time. Catalyst first, then all the plug in modules. > If you could provide a working example of hos to implement the js and > catalyst controller part of JSON, I would greatly appreciate it! Now that the JSON cat has been let out of the ajax bag, I feel that I can contribute with how I "do ajax". I use the YUI toolkit - it just takes away most of the pain. I use the asyncRequest() method, which is pretty much just a way to get stuff from the javascript to the server, and deal with the/any response. The request is just a POST at the end of the day, which I parse the same as any Catalyst action with params. I then "use JSON;" [someone will probably suggest JSON::Any] to turn a perl data structure into a JSON string: # return some JSON $json = to_json($return_data); $c->response->body( $json ); $c->log->info( $json ); return; For me JSON is easy, painless and does everything I need it to. Also, for me if XML is the answer, I try to ask different questions until it goes away. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ This is not an automated signature. I type this in to the bottom of every message. ___ 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.perl.org/
Re: [Catalyst] On authentication again
On Thu, Mar 06, 2008 at 06:28:11PM +0100, Felix Antonius Wilhelm Ostmann wrote: > you are outdated ;) > > someone in the channel say we should use: > > 'Plugin::Authentication' => { > ... > } I'd better add the update to my Roadmap then -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ In theory, there is no difference between theory and practice. But, in practice, there is. ___ 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.perl.org/
Re: [Catalyst] On authentication again
On Thu, Mar 06, 2008 at 07:06:55PM +0300, Alex Povolotsky wrote: > Hello! > > Maybe someone could provide the complete example of auth system with MODERN > Catalyst::Plugin::Authentication? > > I mean, with database, Model and proper config. I have _no idea_ if I'm using old, new or pre-historic authentication, but this it want I cave in myapp.yml: # authentiation settings; perldoc # Catalyst::Plugin::Authentication::Store::DBIC authentication: dbic: user_class: 'Parley::Model::ParleyDB::Authentication' user_field: 'username' password_field: 'password' password_type: 'hashed' password_hash_type: 'MD5' -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I'm demented in a good way! ___ 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.perl.org/
Re: [Catalyst] unsubscribe
List-Unsubscribe: <http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst>, <mailto:[EMAIL PROTECTED]> -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I'm so far in the closet, I am having adventures in Narnia. ___ 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.perl.org/
Re: [Catalyst] Dumb question of a beginner
On Mon, Feb 11, 2008 at 12:55:55PM +0300, Alex Povolotsky wrote: > Hello! > > I haven't find the answer in FAQ and cookbook, so I'm asking here. > > How do I add server-side sorting for list operation? I want to select * > from table sort by field instead of default select * from table I think you are looking for 'order_by' in perldoc DBIx::Class::ResultSet -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I wasn't gossiping! I was just repeating something that someone else had told me! ___ 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.perl.org/
Re: [Catalyst] Advice on form submission
Start. A. New. Thread. Please. ___ 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.perl.org/
Re: [Catalyst] catalyst book
On Thu, Jan 31, 2008 at 04:19:22PM -0400, Fernanda Boronat wrote: > Hello, forgive my English, I speak Spanish, I would like to know if > anyone has the book: Accelerating Perl Web Application Development > (Packt Pub.) In digital format (PDF) or any link to be able to > download Or ... like the rest of us, you could buy a copy. http://www.packtpub.com/catalyst-perl-web-application/book -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Screenie or it didn't happen. ___ 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.perl.org/
Re: [Catalyst] Code for my book in non-Word form
On Thu, Jan 31, 2008 at 05:06:33AM -0600, Jonathan Rockway wrote: > Finally, in case you hadn't heard, a community-maintained list of errata > is available from > > http://catwiki.toeat.com/thebookerrata > > As far as I'm concerned, this is the canonical location for the errata. Cheers for this ... I think it covers the stuff that I'd noticed. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ You should go to Australia. Beautiful women there and they descend from prisoners so they don't mind being tied up. ___ 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.perl.org/
Re: [Catalyst] TT VMethods
On Thu, Jan 17, 2008 at 01:14:22PM +0100, Moritz Onken wrote: > please implement localization (different separators) Huh? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I even make myself laugh sometimes... ___ 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.perl.org/
Re: [Catalyst] two Catalyst flaws
On Thu, Jan 03, 2008 at 05:51:47PM +0800, Fayland Lam wrote: > the second one is hard to use model in cron pl. I know we can do something > like my $c = MyApp->prepare(); or Catalyst::Model::Adaptor (trust me, > that's not so easy or fast) If you're _only_ wanting to use the model, why not just use ::Schema instead of trying to use MyApp::Model, which is just a small stub to load ::Schema? Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ IRC is just multiplayer notepad. ___ 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.perl.org/
Re: [Catalyst] Status of Reaction - ready for new projects?
On Tue, Jan 01, 2008 at 05:34:04PM -0500, Barry Hoggard wrote: > I'm starting on a new catalyst project and wondering if I should start > out with Reaction. Is there a website or repository I can check out? > I didn't see one on the catalyst wiki. A quick google for "matt trout reaction" throws up: http://search.cpan.org/~mstrout/Reaction/ Looks like it's still a dev release on CPAN, but I'm assuming it's progressed since then as he's using it for his WoC TODO app. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ My computer's so fast it finishes an infinite loop in 5 minutes. ___ 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.perl.org/
Re: [Catalyst] fastcgi, production catalyst and sigpipe
On Thu, Dec 27, 2007 at 10:24:41AM +, Ruben Fonseca wrote: > > Hi! I have a Catalyst website in production, but started to hit some > problems lately. But first a little about my configuration: Is this the extended version of the email you sent 4 days ago? It looks very similar to me. What results (if any) did you see after acting on mst's response? Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ We never decided to postpone this issue. We just agreed that we would deal with other issues first. ___ 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.perl.org/
Re: [Catalyst] New Site: http://www.foorumbbs.com/ and open source
On Sat, Dec 15, 2007 at 04:24:12PM +0800, Fayland Lam wrote: > and welcome to join us to develop a forum system based on Catalyst. I already am thanks :) http://developer.berlios.de/projects/parley -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ You can simulate the effect of buying a boat by standing in a cold shower while tearing up twenty pound notes... ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Re: [patch] Catalyst::Engine::HTTP exec() options
On Wed, Dec 05, 2007 at 08:20:23AM +0100, A. Pagaltzis wrote: > exec $^X, $0, @{ $options->{argv} }; > > Hey lookit, that’s simpler to write too! :-) Cool. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ This is not an automated signature. I type this in to the bottom of every message. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] [patch] Catalyst::Engine::HTTP exec() options
This morning I was playing about with some i18n and finally got bored if having to restart the server myself after editing .po files. I had a look at myapp_server.pl's options and spotted the useful looking -restartregex option. So, I edited my startup alias to include: -rr '.(?:pm|po|yaml|yml)$' only to find that there were shell (bash) errors being emitted. It turns out that although I escaped the regex option on the command-line this isn't being preserved in C::E::HTTP. I'm not sure how best to test it, but I've attached a proposed patch for the module. Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ If you were MEANT to understand it, we wouldn't have called it 'code' --- /usr/local/share/perl/5.8.8/Catalyst/Engine/HTTP.pm 2007-12-04 22:36:25.0 + +++ /home/chisel/CatEngineHTTP.pm 2007-12-04 09:07:39.0 + @@ -332,8 +332,8 @@ ### are available again for the exec'ed process --kane use Config; $ENV{PERL5LIB} .= join $Config{path_sep}, @INC; - -exec $^X . ' "' . $0 . '" ' . join( ' ', @{ $options->{argv} } ); + +exec $^X . ' "' . $0 . '" ' . join( ' ', map(qq{'$_'},@{ $options->{argv} }) ); } exit; ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] (no subject)
On Tue, Nov 27, 2007 at 06:50:07PM +0800, 伟 陈 wrote: >i am a chinese guy..and my english is poor So is your ability to read replies to your own posts it seems. -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I'm demented in a good way! ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] HTML::Parser build failure
On Tue, Nov 27, 2007 at 06:16:17PM +0800, 伟 陈 wrote: >[1]http://hiphotos.baidu.com/weimade/pic/item/3aac6df05986aace7831aac5.jpg > >the picture show some infomation of install error > >anybody who can tell me how to deal with it? "sudo aptitude install libhtml-parser-perl" ? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ AFK, tornado... ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] catalystframework.org exired
On Mon, Nov 19, 2007 at 10:38:45AM -0500, Christopher H. Laco wrote: > Just called GoDaddy. This is so fucked up. They won't let anyone pay for > renewal who isn't the last person/card on file with the 4 digit pin or > the same credit card. > > That's retarded. They say it's because the person who last paid for it > could move it and take control...aka, their system is fucking broken. > > That just makes me want to find another registrar that isn't so broken. I assume we need Yuval on the case then? [unless I've mis-read my whois output] Anyone tried pinging him? -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ "My theory is that all of Scottish cuisine is based on a dare." - Mike Myers ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Test::WWW::Mechanize::Catalyst and is_base()
I've recently started Doing The Right Thing and have starting fleshing out the test suite for one of my projects. In the last day or three I've added Test::WWW::Mechanize::Catalyst based tests. I seem to be having a problem with the value set for in the tests; I'm using: and all of my links are of the form: ... When I run the foo_server.pl script, viewing the page source reveals that the is (as expected) set to 'http://localhost:3000'. When I'm running Mechanize based tests the base appears to always be set to the URL that's being requested. This causes problems with things like $mech->links_ok(). I've had no day-to-day problems using and relative hrefs; I went this route because I didn't want to have to add [%c.req.base%] to _every_ URL in the app. It's fairly easy to reproduce with a small catalyst application, and I've all written a test for Test::WWW::Mechanize::Catalyst that demonstrates the behaviour I'm having trouble with. I don't know where the problem originates, but this seemed to be the easiest place to demonstrate it. As far as I can tell, all of the relevant modules are up-to-date: Module = Test::WWW::Mechanize (PETDANCE/Test-WWW-Mechanize-1.16.tar.gz) Module = Test::WWW::Mechanize::Catalyst (LBROCARD/Test-WWW-Mechanize-Catalyst-0.41.tar.gz) Module = WWW::Mechanize (PETDANCE/WWW-Mechanize-1.32.tar.gz) Module = Catalyst (MRAMBERG/Catalyst-Runtime-5.7011.tar.gz) Also all /^Catalyst/ extras are up-to-date. Does anyone have any idea if this is a bug, or if I'm just going about things the wrong way? Chisel cut here $ catalyst.pl BaseTag $ ./script/basetag_create.pl controller Lemon $ ./script/basetag_create.pl view TT TT $ vi lib/BaseTag/Controller/Lemon.pm sub juice :Local { my ($self, $c) = @_; } $ mkdir -p root/base/lemon $ vi root/base/lemon/juice.tt http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> [%c.req.base%] [%c.req.base%] $ vi t/00.base.t use Test::More tests => 3; use_ok( 'Test::WWW::Mechanize::Catalyst', 'BaseTag' ); my $mech = Test::WWW::Mechanize::Catalyst->new; $mech->get_ok("http://localhost/lemon/juice";, 'Got lemon/juice'); $mech->base_is('http://localhost/'); $ CATALYST_DEBUG=0 ./script/basetag_test.pl /lemon/juice |grep 'http://localhost/"; /> $ CATALYST_DEBUG=0 prove -l ./t/00.base.t ./t/00.baseok 1/3 # Failed test at ./t/00.base.t line 5. # got: "http://localhost/lemon/juice"; # length: 28 # expected: "http://localhost/"; # length: 17 # strings begin to differ at char 18 ./t/00.baseNOK 3/3# Looks like you failed 1 test of 3. ./t/00.basedubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 3 Failed 1/3 tests, 66.67% okay Failed Test Stat Wstat Total Fail List of Failed --- ./t/00.base.t1 256 31 3 Failed 1/1 test scripts. 1/3 subtests failed. Files=1, Tests=3, 1 wallclock secs ( 1.07 cusr + 0.15 csys = 1.22 CPU) Failed 1/1 test programs. 1/3 subtests failed. cut here -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ It's like ingenuity wrapped in stupidity wrapped in a function. bug-base-tag.t Description: Troff document ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] $c->loc problem with [_1]
On Wed, Oct 31, 2007 at 07:10:25PM -0300, Brian Cassidy wrote: > Mario Minati wrote: > >All the strings without [_1] are being translated as expected. > > Although you didn't actually say what you're getting as output, I > suspect you'll want to use %1 format instead of [_1] in the .po file. Looking at my .po file, I'm using C::P::I18N out of the tin, and using the %1 there. For some reason it took me quite a while to figure out that I was supposed to use [_1] in my code/templates and %1 in the .po file(s). I know I'm not using it "properly", but my working example looks like this: Foo.pm: $c->localize( q{EMAIL IN USE ([_1])}, q{/some/url} ); .po: msgid "EMAIL IN USE (%1)" msgstr "The email address you have chosen is already in use.Please try a different one, or use the Forgotten Password page." Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ I even make myself laugh sometimes... ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Parley / http://dev.catalystframework.org/
On Fri, Oct 26, 2007 at 09:16:06AM +0100, Ash Berlin wrote: > Done (by kennyg about 6 hours ago) Muchos gracias -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Brownian motion: the motion of money from individuals' pockets to the Treasury coffers. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Parley / http://dev.catalystframework.org/
I was just scanning through http://dev.catalystframework.org/ and realised that (my project) Parley is listed under 'Examples'. I'm not sure how good an example the application is ... Would a kind soul with edit rights to this page please move Parley out of examples and into 'Open Source projects using Catalyst' - which is probably more accurate. Cheers, Chisel -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Atheism is a religion, provided you also accept that NOT collecting stamps is a hobby. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[EMAIL PROTECTED]/ Dev site: http://dev.catalyst.perl.org/