From 7c1b947ae9a1b6a4b03296b3d6ec38de96d6f7c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Wed, 27 Aug 2008 07:52:51 +0000
Subject: [PATCH] remove setPortalType method, it should not be possible to
 change so easilly the portal type of created document.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23183 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Base.py | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/product/ERP5Type/Base.py b/product/ERP5Type/Base.py
index b50fa13ac2..f70a06caa6 100644
--- a/product/ERP5Type/Base.py
+++ b/product/ERP5Type/Base.py
@@ -2568,15 +2568,6 @@ class Base( CopyContainer,
     localizer = getToolByName(self, 'Localizer')
     return localizer.erp5_ui.gettext(portal_type).encode('utf8')
 
-  security.declareProtected(Permissions.ModifyPortalContent, 'setPortalType')
-  def setPortalType(self, portal_type = None):
-    """
-    This allows to set the portal_type
-    """
-    if portal_type is not None:
-      self.portal_type = portal_type
-
-
   security.declareProtected(Permissions.AccessContentsInformation, 'getMetaType')
   def getMetaType(self):
     """
-- 
2.30.9