[Zope-DB] Adding transactional awareness to filesystem operations

Charlie Clark charlie at begeistert.org
Tue Nov 4 04:17:40 EST 2003

On 2003-11-03 at 19:43:49 [+0100], Ian Bicking wrote:
> (I asked this on the main Zope list, but without response...)
> I'm working on a CMS written in Zope, which uses static publishing.  So 
> we write files out to disk frequently.
> The transactional safety of Zope is nice (rolling back ZODB and database 
> changes when an error happens).  Unfortunately any disk operations we do 
> don't get rolled back, causing inconsistencies.  I figure I have to 
> change our file-writing external methods so that there a commit/rollback, 
> which isn't too hard.  Having written these functions, how do I register 
> them with Zope?  How do I identify the separate, concurrent transactions 
> so I commit or rollback the proper transaction?
> Thanks.

mm, you might want to look at how some of the various different "storage" 
products deal with this.


More information about the Zope-DB mailing list