there is always..

  my $cgi_handler = new HTML::Mason::CGIHandler(
    ...
    $ENV{MASON_DATA_ROOT} ? (data_dir => $ENV{MASON_DATA_ROOT}) : (),
    ...
  }

>
> When constructing a new HTML::Mason::CGIHandler, a fatal error is
> triggered if data_dir is passed but empty or not defined. This
> prevents a FastCGI application from generically doing:
>
> my $cgi_handler = new HTML::Mason::CGIHandler(
>     ...
>     data_dir               => $ENV{MASON_DATA_ROOT},
>     ...
> }
>
> HTML::Mason::CGIHandler should really check the truth value of
> data_dir and not merely its existence in the passed parameter set
> since undef or empty string make no sense as a data_dir anyway.
>
> We build our constructor param set dynamically anyway these days, but
> I thought this would be a nifty feature to add to make minimalist
> fastcgi handlers even easier to code, and more advanced ones able to
> be environment driven.
>
> Many thanks.
>
>       Best regards,
>
>       -- Patrick
>
> --
> .------ Patrick M. Jordan ------.  Random unused band name:
> | Systems/Network Administrator |  Count Scratchula
> `----- Antistatic Matrix -------'
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users
>


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to