I have an application mainly programmed within an external method. This method is called with the 'self' parameter, so has access to the folder it is defined in. I decided to attach custom data from within the external method to the self object. This data was a list containing lists containing integers. Everything worked well, but finally I discovered that 'cleaning up' Zope's database failed with an error. Trying to restart Zope failed miserably (traceback is attached). It seems this has not been a good idea. What did I do wrong? Regards Thomas Heller Traceback (innermost last): File "C:\Programme\WebSite\serve.py", line 101, in ? ZopeHTTPServer.main(args) File "C:\Programme\WebSite\ZopeHTTPServer\ZopeHTTPServer.py", line 527, in main start(module_file,host,port,threading,env) File "C:\Programme\WebSite\ZopeHTTPServer\ZopeHTTPServer.py", line 467, in start set_published_module(module_file,BoboRequestHandler,env) File "C:\Programme\WebSite\ZopeHTTPServer\ZopeHTTPServer.py", line 463, in set_published_module __import__(name) # to catch problem modules right away File "C:\Programme\WebSite\lib\python\Main.py", line 115, in ? Bobobase=OFS.Application.open_bobobase() File "C:\Programme\WebSite\lib\python\OFS\Application.py", line 308, in open_bobobase Bobobase=Globals.Bobobase=Globals.PickleDictionary(Globals.BobobaseName) File "C:\Programme\WebSite\lib\python\BoboPOS\PickleDictionary.py", line 166, in __init__ db=DBType( File "C:\Programme\WebSite\lib\python\BoboPOS\SimpleDB.py", line 218, in __init__ self.open(file_name,create,revision_time,meta_index) File "C:\Programme\WebSite\lib\python\BoboPOS\SimpleDB.py", line 271, in open self.index,self.pos=read_index(file, now, meta_index=meta_index) File "C:\Programme\WebSite\lib\python\BoboPOS\SimpleDB.py", line 1332, in read_index raise DatabaseError, ('Corrupted data record at %s' % pos) DatabaseError: Corrupted data record at 42071
Thomas Heller wrote:
I have an application mainly programmed within an external method. This method is called with the 'self' parameter, so has access to the folder it is defined in.
I decided to attach custom data from within the external method to the self object. This data was a list containing lists containing integers. Everything worked well, but finally I discovered that 'cleaning up' Zope's database failed
Do you mean packing?
with an error. Trying to restart Zope failed miserably (traceback is attached).
Ick. You should have a Data.bbb.old to revert to.
It seems this has not been a good idea. What did I do wrong?
Don't know. If you still have it, would you mind sending me the Data.bbb.old (from before the pack) via private mail? I'd like to look into it. Jim -- Jim Fulton mailto:jim@digicool.com Technical Director (888) 344-4332 Python Powered! Digital Creations http://www.digicool.com http://www.python.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
Thomas Heller wrote:
I decided to attach custom data from within the external method to the self object. This data was a list containing lists containing integers. Everything worked well, but finally I discovered that 'cleaning up' Zope's database failed
Do you mean packing? Yes, that's what I meant.
with an error. Trying to restart Zope failed miserably (traceback is attached).
Ick. You should have a Data.bbb.old to revert to.
It seems this has not been a good idea. What did I do wrong?
Don't know. If you still have it, would you mind sending me the Data.bbb.old (from before the pack) via private mail? I'd like to look into it. I tried to recover from this, and unfortunately on this way destroyed all these files.
Jim I'll try again tomorrow. If I again have these problems, I'll mail you.
Thomas Heller ----- See the original message at http://www.egroups.com/list/zope/?start=737
participants (2)
-
Jim Fulton -
Thomas Heller