Commit b12ad5eb authored by Sebastien Robin's avatar Sebastien Robin

the HBTreeFolder2 product should not be mandatory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16298 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fa3d786
...@@ -47,10 +47,14 @@ try: ...@@ -47,10 +47,14 @@ try:
except ImportError: except ImportError:
from Products.BTreeFolder2.CMFBTreeFolder import CMFBTreeFolder from Products.BTreeFolder2.CMFBTreeFolder import CMFBTreeFolder
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2Base try:
from Products.HBTreeFolder2.CMFHBTreeFolder import CMFHBTreeFolder
except ImportError:
class CMFHBTreeFolder:
def __init__(self, *args, **kw):
raise ValueError, 'You must install the HBTreeFolder2 Product'
from Products.HBTreeFolder2.CMFHBTreeFolder import CMFHBTreeFolder
from Products.HBTreeFolder2.HBTreeFolder2 import HBTreeFolder2Base
from AccessControl import getSecurityManager from AccessControl import getSecurityManager
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
......
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