On 5/15/07, Ian Burrell <[EMAIL PROTECTED]> wrote: > 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. > > > 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. >
The lack of valid_params is the problem. I added a valid_params and the alter_superclass works now. (Instead of storing the subref in error_mode, it is in error_sub slot, and the error_mode is 'sub'). - 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