On 1/22/07, Jim Rey <[EMAIL PROTECTED]> wrote:
> Thanks, however since posting the original I have discovered that I need to
> inherit parts of the autohandler. I found a way around  the problem by
> prefixing any filenames by nfm (stands for Not Full Monte) then setting
> $FullMonte = ($Filename =~ /^nfm/) ? 0 : 1; and using it for conditional
> inclusion of relevant code. This takes care of the dynamic parts and I can
> share the database handle as before.  Jim Rey

An alternative is to use the method used in the Mason book's example site.

Create a file called syshandler and in the autohandler add:
<%flags>
     inherit=> '/syshandler'
</%flags>

This way your autohandler gets the database handle and any other bits
needed by everything and in your invoices and other content that you
don't wish to get wrapped with the site code just needs another
inherit flag just as in the autohandler.  This overrides the automatic
inheritance of the file named "autohandler" replacing it with the
syshandler that does contain the parts you want.

Michael

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to