Commit 72e7f083 authored by Nicolas Delaby's avatar Nicolas Delaby

Remove code which seems obsoleted.

There should not be any differences between external documents and others.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37015 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b1fd45c
......@@ -379,19 +379,7 @@ class ContributionTool(BaseTool):
('convertToBaseFormat', 'Document_tryToConvertToBaseFormat'))) \
.discoverMetadata(file_name=name, user_login=user_login)
else:
if existing_document.isExternalDocument():
document = existing_document
# If this is an external document, update its content
# document.activate().updateContentFromURL() # XXX I think this is no longer useful with alarms
# XXX - Make sure this does not increase ZODB
# XXX - what to do also with parameters (put again edit_kw) ?
# Providing some information to the use about the fact
# this was an existing document would also be great
else:
# We may have to implement additional revision support
# to support in place contribution (ie. for a given ID)
# but is this really useful ?
raise NotImplementedError
# Keep the document close to us - this is only useful for
# file upload from webdav
if not hasattr(self, '_v_document_cache'):
......
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