Outils personnels
Vous êtes ici : Accueil Blog Show Data.fs transaction info and truncate object database
Navigation
 
Actions sur le document

Show Data.fs transaction info and truncate object database

Filed Under:

show Data.fs transaction info and truncate object database

import sys
sys.path.append('/opt/Zope-2.7/lib/python') # path where Zope modules are

from ZODB import fsdump

fsdump.fsdump('/var/zope/main/var/Data.fs') # path to your Data.fs

file = "/var/zope/main/var/Data.fs"
f = open(file,"ab")
f.truncate(2667753)
f.close()