[Zope-CMF] CMF not working
Tres Seaver
tseaver@palladion.com
Sun, 17 Jun 2001 15:07:57 -0400
Victorio J. Bentivogli wrote:
> I checked CMF Default and does not have a "broken" icon. CMF Calendar
> and CMF Options are broken reporting:
>
>
>
> ImportError: No module named Discussions
>
>
>
> Could this behavior be related to some work related to the Discussion
> modification in CMF (there is an announcement on cmf.zope.org)
Yes, it is related (and my fault). CVS doesn't handle "remove"
operations as I expected while on a branch; the removal of the
'CMFDefault.Discussions' module wasn't supposed to be on the "trunk"
of CVS, but CVS did it there anyway. I will check in the full fix
this afternoon, as I have heard no problems with the patched
dogbowl site.
I didn't realize that CMFOptions (Jeff Sasmor's product) relies on
that module; I *am* planning still to remove it, and therefore would
like to ask Jeff to apply this patch::
--- CMFExtImage.py.org Sun Jun 17 14:58:33 2001
+++ CMFExtImage.py Sun Jun 17 14:58:48 2001
@@ -107,7 +107,6 @@
import struct
from Globals import HTMLFile, HTML
from Products.CMFCore.PortalContent import PortalContent
-from Products.CMFDefault.Discussions import Discussable
import Globals
from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
from os.path import isfile
--- CMFExtFile.py.org Sun Jun 17 14:58:27 2001
+++ CMFExtFile.py Sun Jun 17 14:58:42 2001
@@ -103,7 +103,6 @@
from Globals import HTMLFile, HTML
from Products.CMFCore.PortalContent import PortalContent
-from Products.CMFDefault.Discussions import Discussable
import Globals
from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
Neither module actually *needs* to import Discussable, as that
symbol is not used.
BTW, Jeff, I notice that you are packaging CMFOptions to be
expanded under 'lib/python/Products', which makes using it under
INSTANCE_HOME harder than it needs to be. See Chris McDonough's
"product guidelines",
http://dev.zope.org/Wikis/DevSite/Proposals/FinishedProductGuidelines
for details (the gist is that the tarball should expand to 'CMFOptions',
rather than 'lib/python/Products/CMFOptions').
Tres.
--
===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org