CPSDefaultPatch.py 1.26 KB
Newer Older
Sebastien Robin's avatar
Sebastien Robin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# (C) Copyright 2004 Nexedi SARL <http://nexedi.com>
# Authors: Sebastien Robin <seb@nexedi.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#

from Products.CPSDefault.Folder import Folder
20
from Products.ERP5Type.Document.Folder import Folder as ERP5Folder
Sebastien Robin's avatar
Sebastien Robin committed
21 22
from Products.ERP5Type.Base import Base

23 24 25
#def _propertyMap(self):
#  """Return a tuple of mappings, giving meta-data for properties """
#  return tuple(list(self._properties) + list(getattr(self, '_local_properties', ())))
Sebastien Robin's avatar
Sebastien Robin committed
26 27


Sebastien Robin's avatar
Sebastien Robin committed
28 29
Folder._setProperty = Base._setProperty
Folder.setProperty = Base.setProperty
30
#Folder._propertyMap = _propertyMap
Sebastien Robin's avatar
Sebastien Robin committed
31
Folder.getProperty = Base.getProperty
32 33
Folder._edit = Base._edit
Folder.asXML = ERP5Folder.asXML