OK, following John's guidance, I have now set up a script that uses Loader to create my table class modules in a directory outside of cgi-bin. John explained that it's best to get Loader to put the files in a temporary area and then copy them to where they need to go otherwise the existence of the files means Loader reads them in up front and then fails to create the new modules because it says they're already loaded in memory!
This works but now for each table I also have a directory with Manager.pm. Previously I did not have these, they seemed to be loaded into memory automatically using: __PACKAGE__->meta->make_manager_class('table') in the table class .pm file. It seems that now I have to "use My::Table::Manager" where previously I did not. It's a minor point I suppose but can I get Loader to put the make_manager_class at the bottom of each table class module? Or is this inadvisable for some reason? If the answers are no and no, then I guess I can write a few lines to add it in myself. Or I can just use the Managers, no big deal. Just trying to ascertain what's best. thanks, James Masters. > -----Original Message----- > From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] > Sent: 22 September 2006 15:04 > To: James Masters > Cc: 'Danial Pearce'; 'Rose::DB::Object list' > Subject: Re: [RDBO] package confusion - Base class package is empty. > > > >>>>> "James" == James Masters <[EMAIL PROTECTED]> writes: > > James> Yes, you are right of course. This has made me wonder > if I'm putting > James> them in the right place. My db is called GARD so I > simply created a > James> dir under cgi-bin called GARD and put the DB.pm and > the table modules > James> in there. > > You really really really shouldn't put libs or config files > under cgi-bin. > cgi-bin is *exclusively* for things that you want to > *execute* directly with a > URL from a browser. Auxillary stuff belongs *outside* the cgi-bin and > htdoc-reachable areas, otherwise they might be disclosed if > someone guesses > the URL to reach them. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - > +1 503 777 0095 > <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and > open-enrollment Perl training! > ------------------------------------------------------------------------- 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 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object