[Zope-CMF] CMFOptions
Tres Seaver
tseaver@zope.com
14 Aug 2002 16:01:53 -0400
On Wed, 2002-08-14 at 15:23, Learned wrote:
> I am trying to install CMFOptions as a way to reference external files
> within the CMF environment. This is part of deploying a website that
> will have several PDF type documents which must be available for
> download/viewing. I am assuming that storing them in the DATA.FS file
> is probably a bad thing due to size. If there is a better approach
> than CMFOptions, please let me know.
>
> Anyway, in attempting to install CMFOptions into a 2.5.1 release of
> Zope with the 1.3 CMF, I am running into the following install error.
>
> Traceback (most recent call last):
> File "C:\PROGRA~1\Zope\lib\python\OFS\Application.py", line 531, in import_product
> product=__import__(pname, global_dict, global_dict, silly)
> File "C:\PROGRA~1\Zope\lib\python\Products\CMFOptions\__init__.py", line 88, in ?
> import CMFExtImage,CMFExtFile,Blark
> File "C:\PROGRA~1\Zope\lib\python\Products\CMFOptions\Blark.py", line 29, in ?
> from Products.CMFCore.utils import modifyPermissionMappings
> ImportError: cannot import name modifyPermissionMappings
Ugh. That method is not supposed to be available to TTW code, so I
renamed it '_modifyPermissionMappings' as a "belt-and-suspenders"
measure when I was exposing the public functions.
> Any and all thoughts welcome.
Modify Blark.py to use '_modifyPermissionMappings' and send Jeff the
patch.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com