Commit 2848218b authored by Nicolas Dumazet's avatar Nicolas Dumazet

wrong file was committed during r38654, sorry.

Revert 654 and re-commit correct modification


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38660 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e376960
......@@ -365,7 +365,7 @@ class ERP5Site(FolderMixIn, CMFSite):
# (e.g. left hand tree frame in {zope root}/manage )
# we need to set up the site to load portal types inside each site
setSite(self)
return super(FolderMixIn, self).objectValues(*args, **kw)
return super(ERP5Site, self).objectValues(*args, **kw)
security.declareProtected(Permissions.AccessContentsInformation, 'searchFolder')
def searchFolder(self, **kw):
......
......@@ -476,16 +476,6 @@ class TemplateTool (BaseTool):
urltype = 'file'
name = os.path.normpath(url)
from Products.ERP5Type.Utils import PersistentMigrationMixin
# disable dynamic imports of ERP5Type.Document.* documents
# into erp5.document new-style classes during import:
# reading the XML forces importing the object class, and doing
# so will try to access portal_types/<object portal type>, which
# will fail since portal types items are not yet imported.
# In reality, we can live with old-style objects 'til
# install
#PersistentMigrationMixin.migrate = 0
if urltype and urltype != 'file':
if '/portal_templates/asRepository/' in url:
# In this case, the downloaded BT is already built.
......@@ -497,7 +487,6 @@ class TemplateTool (BaseTool):
else:
bt = self._download_local(name, id)
#PersistentMigrationMixin.migrate = 1
bt.build(no_action=True)
return bt
......
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