Re: [Catalyst] How To Fix Test-Harness-3.14?

2009-01-16 Thread Ovid
- Original Message 

 From: Toby Corkindale toby.corkind...@strategicdata.com.au

  I'm trying to install Catalyst-Runtime-5.7015 using cpan inside a CentOS
  5.2 virtual machine (running under VMWare, fully updated to current
  CentOS patches) and one of the reasons installation is failing is
  because Test-Harness-3.14 is failing it's own tests. I'm not very good
  with Perl at this time and I figure there are people here who understand
  why Test-Harness fails. Here is the output I have from 'make test'.  Can
  anyone suggest what the problem is?
 
 The output below suggests the problem is not related to Test::Harness, but is 
 from List::Util.. it looks like you have two versions of LU installed at 
 once, 
 one is version 1.18 and the other 1.19.

Also, contacting the appropriate mailing lists instead of an unrelated module 
list is usually helpful :)

 
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter  - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6


___
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] How To Fix Test-Harness-3.14?

2009-01-16 Thread Andy Armstrong

On 16 Jan 2009, at 00:57, Robert L Cochran wrote:

#   Failed test 'set_version with bad version'
#   at t/grammar.t line 345.
#  got: '3'
# expected: '1'
#   List::Util object version 1.18 does not match bootstrap  
parameter

1.19 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/XSLoader.pm
line 94.
#  
#   List::Util object version 1.18 does not match bootstrap  
parameter

1.19 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/List/Util.pm
line 30.



It looks like the real problem is that something's up with your  
List::Util installation. I assume that if you fix that Test::Harness  
will pass its tests.


--
Andy Armstrong, Hexten




___
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] controller subclass and :Local actions

2009-01-16 Thread Marcello Romani

Hallo,
I have a controller base class that implements the usual crud 
actions (list, create, etc.), and I would like to override i.e. the list 
method in a subclass, but the subclass' list method doesn't seem to get 
called...


In MyApp::Controller::Base:

use base qw( Catalyst::Controller );

sub list : Local {
do stuff
}

In MyApp::Controller::CD:

use base qw( MyApp::Controller::Base );

sub list : Local {
do other stuff
}


when I call /myapp/cd/list the base controller's list action gets called...

Can someone give me a hint ?

Thank you.

--
Marcello Romani


___
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] subclassing Catalyst::Controller::HTML::FormFu

2009-01-16 Thread Markus Holzer
Hi.

I have created a subclass Catalyst::Controller::HTML::FormFu because I want to 
override the load_form() method. I *think* I have done it right, but it 
doesn't work. The load_form method is never called, but FormFu still works. 

What am I doing wrong?

Code:

package Superclix::FormFuController;

use strict;
use warnings;

use parent 'Catalyst::Controller::HTML::FormFu';

sub load_form
{
die (subclassed!);
# more code
}

1;


It is used as follows:


package Superclix::Controller::Partnerprogramm;

use warnings;
use strict;

use parent qw(Superclix::FormFuController Superclix::SecureBaseController);

sub neu : Local :FormConfig {
my ($self, $c) = @_;
# more code
}

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] How To Fix Test-Harness-3.14?

2009-01-16 Thread Robert L Cochran
Andy Armstrong wrote:
 On 16 Jan 2009, at 00:57, Robert L Cochran wrote:
 #   Failed test 'set_version with bad version'
 #   at t/grammar.t line 345.
 #  got: '3'
 # expected: '1'
 #   List::Util object version 1.18 does not match bootstrap parameter
 1.19 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/XSLoader.pm
 line 94.
 #  
 #   List::Util object version 1.18 does not match bootstrap parameter
 1.19 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/List/Util.pm
 line 30.


 It looks like the real problem is that something's up with your
 List::Util installation. I assume that if you fix that Test::Harness
 will pass its tests.

Thank you, I figured out how to uninstall List::Util and then reinstall
it. That allowed Test::Harness to pass, as you and another suggested,
and this in turn let me install Catalyst::Runtime-5.7015. Thanks again
for helping.

Bob

___
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: Supressing passwords in debug messages

2009-01-16 Thread Byron Young
Byron Young wrote on 2009-01-12:

 J. Shirley wrote on 2009-01-12:
 On Mon, Jan 12, 2009 at 2:35 PM, Byron Young
 byron.yo...@riverbed.com wrote:
 J. Shirley wrote on 2009-01-12:
 On Mon, Jan 12, 2009 at 10:45 AM, Byron Young
 byron.yo...@riverbed.com wrote:

 [snip]

 The patch I'm creating needs to be configured in some way, I am
 thinking at this point it can be configured as follows:

 package MyApp;

 __PACKAGE__-config(
 'Debug' = {
 skip_dump_parameters = 1, # Simply don't render the
 parameters incoming, very shotgunny skip_dump_parameters = [
 qw/password/ ], # Show '(redacted
 by
 config)' as the value of these fields
 }
 );

 I'll need to bake tests for this, which there are currently no tests
 for handling the dumping of parameters so it will be a bit more. If
 someone wants to help with that, let me know and I can help guide.

 -J


 I'd be happy to write some unit tests.  I haven't worked with
 any
 of the Catalyst unit tests before so I'm not sure what the process is
 like for getting the code, setting up the test environment, making and
 submitting changes and unit tests, etc.  Is there a doc you can point
 me to?  I don't see anything in the manual or wiki.

 Byron

 Mostly it is just checking out the code from svn and starting.
 The
 patch that I've started is at http://scsys.co.uk:8001/22410 - you can
 apply this to a svn checkout of
 http://dev.catalystframework.org/repos/Catalyst/Catalyst- Runtime/5.70

 It doesn't have the actual testing part, just a stub.  I'll be working
 on it more over today and tomorrow when I get free moments, but they're
 few and far between.


 Ditto on the lack of free time.  I'll check it out and let you know
 what I come up with.

 byron


J Shirley - I finally got a chance to look at this today.  You did most of the 
work for me.  I just updated the unit test, changed the 'skip_dump_parameters' 
parameter to 'redact_parameters', and expanded the log_parameters() 
documentation a bit.  I also added a section to the cookbook explaining how to 
use the parameter.

Attached are two patches:
  redact-patch.diff - patch containing the new unit test and changes to 
Catalyst.pm.
  cookbook-patch.diff - patch containing a new cookbook section on this 
feature, for the Catalyst-Manual repository

Anything else I need to do?

Byron


redact-patch.diff
Description: redact-patch.diff


cookbook-patch.diff
Description: cookbook-patch.diff
___
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/