Commit 85278bdd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

delete a needless object instead of alling delete transition, because such...

delete a needless object instead of alling delete transition, because such transition does not exist in certain states.
parent 376191e9
...@@ -609,7 +609,7 @@ class Document(DocumentExtensibleTraversableMixin, XMLObject, UrlMixin, ...@@ -609,7 +609,7 @@ class Document(DocumentExtensibleTraversableMixin, XMLObject, UrlMixin,
update_kw[k] = self.getProperty(k) update_kw[k] = self.getProperty(k)
existing_document.edit(**update_kw) existing_document.edit(**update_kw)
# Erase self # Erase self
self.delete() # XXX Do we want to delete by workflow or for real ? self.getParentValue().manage_delObjects([self.getId(),])
return document return document
security.declareProtected(Permissions.AccessContentsInformation, 'getLanguageList') security.declareProtected(Permissions.AccessContentsInformation, 'getLanguageList')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment