[Zope-CMF] Adding a metadata tool
Tres Seaver
tseaver@digicool.com
Tue, 15 May 2001 13:04:34 -0400 (EDT)
On Tue, 15 May 2001, Ben Riga wrote:
> >>>
> Installing the tool in a CMFSite built before the tool was part of
> the product involves selecting "CMFDefault Tool" from the add list
> at the portal root, then selecting "Metadata tool" (or whatever) from
> the list of radio buttons.
> <<<
> Copied the files to the right directories and restarted Zope.
>
> Metadata tool does not show up on the list of CMFDefault tools.
Hmm, of course -- the "tool list" is in the __init__.py of CMFDefault.
Here is the diff:
$ pwd
/var/home/tres/projects/CMF
$ cvs -q diff -r 1.3 CMFDefault/__init__.py
Index: CMFDefault/__init__.py
===================================================================
RCS file: /cvs-repository/CMF/CMFDefault/__init__.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- CMFDefault/__init__.py 2001/04/07 23:15:10 1.3
+++ CMFDefault/__init__.py 2001/04/28 22:56:59 1.4
@@ -90,7 +90,7 @@
import Portal
import Document, Link, NewsItem, File, Image, Favorite
import Discussions, DiscussionItem
-import PropertiesTool, MembershipTool
+import PropertiesTool, MembershipTool, MetadataTool
import RegistrationTool, URLTool, DublinCore, DiscussionTool
from Products.CMFCore import utils
import Products.CMFCore
@@ -156,6 +156,7 @@
, RegistrationTool.RegistrationTool
, PropertiesTool.PropertiesTool
, URLTool.URLTool
+ , MetadataTool.MetadataTool
)
import sys
You could probably apply that one by hand. :)
Tres.
--
===============================================================
Tres Seaver tseaver@digicool.com
Digital Creations "Zope Dealers" http://www.zope.org