[Zope-CMF] CMFBoringContent.
Erik Enge
erik@thingamy.net
06 Aug 2001 10:05:37 +0200
[marc lindahl]
| > From: Tres Seaver <tseaver@palladion.com>
| > Qell-behaved CMF Products also provide
| > a script to be used as an ExternalMethod for doing the "standard"
| > installation steps you note for a specific CMFSite instance.
|
| I'd love to see that as part of CMFBoring!
CMFBoring should be a well-behaved CMF Product :)
I've written that install script, but I'm running into some problems
when trying to test it. This code:
# Setup the skins
if 'CMFBoringContent' not in skinstool.objectIds():
# We need to add Filesystem Directory Views for any directories
# in our skins/ directory. These directories should already be
# configured.
addDirectoryViews(skinstool, 'skins', globals())
out.write("Added 'CMFBoringContent' directory view to portal_skins\n")
Yields this traceback:
Error Type: KeyError
Error Value: __name__
Traceback (innermost last):
File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module
[snip]
File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/Extensions/Install.py, line 32, in install
(Object: Traversable)
File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/Products/CMFCore/DirectoryView.py, line 446, in addDirectoryViews
(Object: SkinsContainer)
File /home/erik/development/zope-farm/Zope-2.3.3-linux2-x86/lib/python/App/Common.py, line 160, in package_home
KeyError: (see above)
Anyone?