I have created a Version on my Zope site. I am not working in it at the moment. I try to delete a DTML document that has never been opened or modified in the version, but Zope won't let me delete the document. I get an error that looks like this: Error Type: VersionLockError Error Value: ("'\\000\\000\\000\\000\\000\\000\\026\\003'", followed by the name of my new version object. I can edit files just fine but I can't delete them. From what I read in the docs, this shouldn't be the case. So what am I either missing or doing wrong? -- Dan Shafer, Author-Consultant http://www.danshafer.com http://www.shafermedia.com
Hi Dan, It may be because the container or a higher up object is locked. You cannot remove objects from a container that has changes stored in a version, even if it isn't active. For example, if you add a property to the root folder while in a version, then leave the version, you won't be able to delete any subobjects in the entire site until you submit or discard the changes. I'm not sure exactly where this is explained, but that's the way it currently behaves. HTH, Eron On Saturday 08 December 2001 02:16 am, Dan Shafer wrote:
I have created a Version on my Zope site. I am not working in it at the moment. I try to delete a DTML document that has never been opened or modified in the version, but Zope won't let me delete the document. I get an error that looks like this:
Error Type: VersionLockError Error Value: ("'\\000\\000\\000\\000\\000\\000\\026\\003'", followed by the name of my new version object.
I can edit files just fine but I can't delete them.
From what I read in the docs, this shouldn't be the case. So what am I either missing or doing wrong?
Abort the version (by visiting the version object in the mgmt interface and aborting) and try to delete afterwards. Dan Shafer wrote:
I have created a Version on my Zope site. I am not working in it at the moment. I try to delete a DTML document that has never been opened or modified in the version, but Zope won't let me delete the document. I get an error that looks like this:
*Error Type: VersionLockError* *Error Value: ("'\\000\\000\\000\\000\\000\\000\\026\\003'",*
followed by the name of my new version object.
I can edit files just fine but I can't delete them.
From what I read in the docs, this shouldn't be the case. So what am I either missing or doing wrong?
--
Dan Shafer, Author-Consultant http://www.danshafer.com http://www.shafermedia.com
-- Chris McDonough Zope Corporation http://www.zope.org http://www.zope.com "Killing hundreds of birds with thousands of stones"
participants (3)
-
Chris McDonough -
Dan Shafer -
Eron Lloyd