From 25b7cdd1fabf1e89bfeef173263c9fdc199755ba Mon Sep 17 00:00:00 2001 From: Ivan Tyagov <ivan@nexedi.com> Date: Wed, 2 Dec 2009 09:31:49 +0000 Subject: [PATCH] setUniqueReference has been removed in r19327. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30972 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Document.py | 1 - 1 file changed, 1 deletion(-) diff --git a/product/ERP5/Document/Document.py b/product/ERP5/Document/Document.py index 899b48a241..32ea4397ca 100644 --- a/product/ERP5/Document/Document.py +++ b/product/ERP5/Document/Document.py @@ -919,7 +919,6 @@ class Document(PermanentURLMixIn, XMLObject, UrlMixIn, CachedConvertableMixin, S if existing_document.getPortalType() != self.getPortalType(): raise ValueError, "[DMS] Ingestion may not change the type of an existing document" elif not _checkPermission(Permissions.ModifyPortalContent, existing_document): - self.setUniqueReference(suffix='unauthorized') raise Unauthorized, "[DMS] You are not allowed to update the existing document which has the same coordinates (id %s)" % existing_document.getId() else: update_kw = {} -- 2.30.9