aboutsummaryrefslogtreecommitdiff
path: root/www/zope-formulator/files/patch-FSForm.py
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-05-31 23:01:14 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-05-31 23:01:14 +0000
commitc7651500a041b224f401ba85fc192aac6ad83c1c (patch)
tree945ff6765fc9abf38b9128309b327388e191259e /www/zope-formulator/files/patch-FSForm.py
parent304a74ffe92f4f14b1f69dd01876a970a3d9fa6a (diff)
downloadports-c7651500a041b224f401ba85fc192aac6ad83c1c.tar.gz
ports-c7651500a041b224f401ba85fc192aac6ad83c1c.zip
- Update to 1.11.3
PR: 121673 Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=214069
Diffstat (limited to 'www/zope-formulator/files/patch-FSForm.py')
-rw-r--r--www/zope-formulator/files/patch-FSForm.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/www/zope-formulator/files/patch-FSForm.py b/www/zope-formulator/files/patch-FSForm.py
new file mode 100644
index 000000000000..119855f7a1ad
--- /dev/null
+++ b/www/zope-formulator/files/patch-FSForm.py
@@ -0,0 +1,22 @@
+--- FSForm.py.orig 2003-09-25 23:08:33.000000000 +0900
++++ FSForm.py 2008-03-13 07:13:15.000000000 +0900
+@@ -5,10 +5,17 @@
+ import Products.FileSystemSite
+ except ImportError:
+ # use CMF product
+- from Products.CMFCore.CMFCorePermissions import View
++ try:
++ from Products.CMFCore.permissions import View
++ except ImportError: # older CMF
++ from Products.CMFCore.CMFCorePermissions import View
+ from Products.CMFCore.FSObject import FSObject
+ from Products.CMFCore.DirectoryView import registerFileExtension,\
+- registerMetaType, expandpath
++ registerMetaType
++ try:
++ from Products.CMFCore.utils import expandpath
++ except ImportError:
++ from Products.CMFCore.DirectoryView import expandpath
+ else:
+ # use FileSystemSite product
+ from Products.FileSystemSite.Permissions import View