On 5/15/07, Jonathan Swartz <[EMAIL PROTECTED]> wrote: > Sorry. What I mean is, change alter_superclass to just contain the > class you are overriding (I assume that is > HTML::Mason::Request::CGI). The code may be from the docs, but it > seems a little suspect to me. For example, one could have > H::M::ApacheHandler loaded even if one was using H::M::CGIHandler. > Jon >
That doesn't work. use base 'HTML::Mason::Request'; sub new { my $class = shift; $class->alter_superclass('HTML::Mason::Request::CGI'); my $self = $class->SUPER::new(@_); return $self; } Inheriting from HTML::Mason::Request::CGI does work. use base 'HTML::Mason::Request::CGI'; There must be something in the documented code that doesn't setup the valid_params. MasonX::Request::WithApacheSession is only Request inheritance I could find. It uses the alter_superclass from the docs. That does call valid_params to set its own params and the alter_superclass may not work if valid_params is not set. - Ian ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users