On Wed, 2003-05-21 at 13:55, Dieter Maurer wrote:
Ken Causey wrote at 2003-5-20 15:27 -0500:
... I have a Version I've been working in now for about 3 weeks. I've modified and/or created around 50 new objects. No matter what I do I can neither Save or Discard this version.
Can you please describe precisely, what happens when you try to "save" or "discard" the version.
You get what exceptions (type, value, traceback) or what behaviour (precise description).
Sometimes, the "Version management" in "Control_Panel" can do more than the version objects themselves.
I tried it both ways. What happened was exactly nothing. No error messages or tracebacks. As far as I could tell (when saving) the 'primary' of each object was unchanged. In other words any changes made in the version were not applied, this includes not seeing any object I had added. And in either case (saving or discarding) the locks were not released on any object which I had modified. I believe at some point I even had all the details and stupid logging enabled and didn't get any errors there either.
... I've packed the database two or three times.
If you still have a backup from your "Data.fs" before the first pack, keep it.
Since I packed 2 or 3 times in an attempt to get it working I'm certain it was overwritten. I could dig a copy off of a backup tape. But at this point I've built a brand new Data.fs using the import/export process (had to do each root object manually) and everything is working fine. The bad taste disinclines me from touching Versions for a while.
Versions are implemented by backpointers. Under some conditions (not too often), "pack" may loose objects referenced by backpointers.
This is probably not your problem.
I'm using Zope 2.6.1 with Python 2.1.3. If there is any other information I can provide please let me know.
The standard one ;-) See above.
Thanks, I hope the little information I can provide helps. Ken
Dieter