--- Jonathan Vanasco <[EMAIL PROTECTED]> wrote:

> I just use a bad db handle for all things rose, then have a custom  
> method that pulls a read-only or read/write handle from a db factory 

> as needed.  ie, they'll always fail on save, insert, update because  
> they don't have the db permissions

That's an important backup and one I recommend.  However, I don't want
to see a permissions error hundreds of lines and several modules away
from the actual cause:

  $mc->hammer("can't touch this");

It's important to have the exceptions thrown as close to the code
causing it as possible, particularly since large systems can make it
very hard to find out where the offending line is.

Cheers,
Ovid

--

Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/

-------------------------------------------------------------------------
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

Reply via email to