[Zope-CMF] Read-only FileStorage and CMF

Bert Vanderbauwhede Bert.Vanderbauwhede@rug.ac.be
Tue, 4 Mar 2003 15:44:59 +0100 (MET)


On Tue, 4 Mar 2003, Jens Vagelpohl wrote:

> the CMF will try to save the time a user logs in to keep track of the
> last time you log in. you cannot do that with a read-only ZODB unless
> you find and eliminate the code that tries to save the login time.

Any idea where I can find this code? The traceback I get for this error
is:

Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 102, in publish
  File /usr/local/zope/lib/python/Zope/__init__.py, line 173, in commit
  File /usr/local/zope/lib/python/ZODB/Transaction.py, line 234, in commit
  File /usr/local/zope/lib/python/ZODB/Connection.py, line 348, in commit
    (Info: (('Products.CMFLDAP.LDAPMemberDataTool', 'LDAPMemberData'), '\x00\x00\x00\x00\x00\x02\xf5\xc8', ''))
  File /usr/local/zope/lib/python/ZODB/FileStorage.py, line 641, in store
    (Object: /usr/local/zope/var/Data.fs)
ReadOnlyError

I modified LDAPMemberData (in LDAPMemberDataTool.py) and MemberData (in
MemberDataTool.py), by wrapping the methods in try-except clauses, but I
still got the error.


Bert Vanderbauwhede...
---
"To make it really easy, the Unix commands are named using a Caesar
 cipher, so that folks using a voice synthesizer can control a Unix box
 using the type of sounds that Terence and Philip like to make a lot."