[ZODB-Dev] zodb questions

Guy Robinson guy at r-e-d.co.nz
Sat Jul 24 08:11:34 EDT 2004


Hello,

I'm in the planning stages of a new application and I'm trying to work out the 
access control to zodb amongst other things.

The application will run on windows desktop machines and laptops. As such I have 
the following questions:

1.. Can the security classes from zope be used without the full zope install? As 
the applications are built on top of twisted should I just use there security model?

2.. If I want a last-modified attribute for my application classes do I need to 
implement this or can I get this attribute from zodb? If zodb does store this 
attr how do I access it?

2.. Is there any guide lines or examples on how best to reference 
files/documents in a zodb? My thinking is to take the document rename it to some 
unique URI then store the file in a new directory for each new day(backup purposes).

3.. As the laptops can be used disconnected, ZEO doesn't seem to be suitable.My 
thinking at the moment is local zodb's on each laptop/PC and a server zodb. The 
local and server applications will be twisted xml-rpc servers. I subclass 
persistant with some additional methods/attributes to flag the additons/changes 
were remote. All my application classes subclass this remote-aware-persistant class.

On detecting the laptop is connected again the server scans the laptop zodb's 
for changes and updates accordingly.Is there a better way of doing this?

TIA,

Guy



More information about the ZODB-Dev mailing list