You are not logged in Log in Join
You are here: Home » Members » anthony » software » A through the web filestorage mounting product

Log in
Name

Password

 
 

Folder icon A through the web filestorage mounting product

MountedFileStorage, 0.02.

Ok, so the DC guys have been talking about allowing multiple ZODB support, but I couldn't see a way to use it. A bit of trawling through the CVS and I found the guts of a MountedItem object which has now been removed. Using that as inspiration and a source of pointers, I've bolted together a really simple Product for mounting multiple ZODB files onto a Zope installation.

You should also check out the MountedDatabases section of the ZODB Wiki.

First of all, you need to be running a really really recent CVS version of Zope. 2.2alpha1 isn't good enough. Then install this product (it unpacks in lib/python/Products/MountedFileStorage).

Sample usage:

Select Mounted FileStorage from the product add list.

For file put nifty.fs. Leave path blank, and put nifty as the id, click create.

You've now got an empty ZODB installed.

_WARNING_: This is really really untested stuff. It Works For Me. Not To Be Taken Internally. Do Not Come Crying To Me If It Breaks Your Zope Install.

If you want to play with this stuff, you really should back up your Data.fs first.

For more info, see the online Help. In particular, check out the known bugs and problems section.

Security Issues: There probably are some. I've no idea what they might be. The product makes a really simple-minded effort to not allow badness through (any filename with a / or \ in it). Don't give access to the permission Mount FileStorages to anyone that you don't trust, though. Note that this includes anyone with Manager role on the system. Note also, though that you can only mount existing files that are in var/.

Anthony Baxter , Sun Jun 11 17:38:20 EST 2000

 Title   Type   Size   Modified   Status 
 MountedFileStorage 0.02 Edit object News Item 1 K 2000-06-11 published
 mountedfilestorage000.tgz Edit object Software Release   2000-06-01 published
 mountedfilestorage001.tgz Edit object Software Release   2000-06-01 published
 mountedfilestorage002.tgz Edit object Software Release   2000-06-11 published