On Tue, 2013-05-28 at 23:17 -0400, Mike Frysinger wrote:
> On Tuesday 28 May 2013 22:08:38 Brian Dolbec wrote:
> > Further investigation of the use of os.makedirs() reveals that none of
> > it's frequent use does any error checking or exception escaping.
> > I propose to move this common code to either a utility function or
> > possibly a FileOps class that the main classes can then subclass or
> > create an instance of.  I need to investigate what method will be best.
> > That way, exceptions can be controlled for the type of failure desired.
> > As well as proper shutdown procedures to run for a failure.
> 
> i get the feeling that catalyst really needs to get away from implementing 
> everything itself (either open coding it, or generating its own util libs).  
> there are perfectly fine drop in util libs like snakeoil.
> http://docs.snakeoil.googlecode.com/git/index.html
> osutils.ensure_dirs()
> -mike

yeah, good idea. I keep forgetting all what snakeoil offers, but moving
to using some of it at least was on my TODO. 


Reply via email to