Line 0
Link Here
|
|
|
1 |
--- FSForm.py.orig 2003-09-25 23:08:33.000000000 +0900 |
2 |
+++ FSForm.py 2008-03-13 07:13:15.000000000 +0900 |
3 |
@@ -5,10 +5,17 @@ |
4 |
import Products.FileSystemSite |
5 |
except ImportError: |
6 |
# use CMF product |
7 |
- from Products.CMFCore.CMFCorePermissions import View |
8 |
+ try: |
9 |
+ from Products.CMFCore.permissions import View |
10 |
+ except ImportError: # older CMF |
11 |
+ from Products.CMFCore.CMFCorePermissions import View |
12 |
from Products.CMFCore.FSObject import FSObject |
13 |
from Products.CMFCore.DirectoryView import registerFileExtension,\ |
14 |
- registerMetaType, expandpath |
15 |
+ registerMetaType |
16 |
+ try: |
17 |
+ from Products.CMFCore.utils import expandpath |
18 |
+ except ImportError: |
19 |
+ from Products.CMFCore.DirectoryView import expandpath |
20 |
else: |
21 |
# use FileSystemSite product |
22 |
from Products.FileSystemSite.Permissions import View |