Commit 12164ac0 authored by Jérome Perrin's avatar Jérome Perrin

patches: drop patches for OFS.Item.__repr__

No longer needed on Zope4, from commit dc5b9292f (Merge pull request
 387 from zopefoundation/re-379-revert-repr, 2018-10-26)
parent bdd2705c
from App.special_dtml import DTMLFile
from OFS.Image import File
from OFS.SimpleItem import Item
from Products.ERP5Type import _dtmldir
# restore __repr__ after persistent > 4.4
# https://github.com/zopefoundation/Zope/issues/379
File.__repr__ = Item.__repr__
def _setData(self, data):
"""
Originally from Document class. Added because it is used by
......
......@@ -15,7 +15,6 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type.Globals import InitializeClass
from OFS.Folder import Folder
from OFS.SimpleItem import Item
from Products.ERP5Type import Permissions
"""
......@@ -73,8 +72,3 @@ security.declareProtected(Permissions.ManagePortal, 'isERP5SitePresent')
security.declarePublic('zope_quick_start')
Folder.security = security
InitializeClass(Folder)
# TODO: not needed on Zope4 ?
# restore __repr__ after persistent > 4.4
# https://github.com/zopefoundation/Zope/issues/379
Folder.__repr__ = Item.__repr__
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