[Zope-CMF] Adding a metadata tool

Ben Riga briga@borland.com
Tue, 15 May 2001 11:37:34 -0700


Tres,

  Thanks.

  I tried this and after restarting Zope all the CMFDefault stuff was no
longer there.  I'm not good enough yet to be able to debug/trace the
problem.  I think that my best bet is to take a build from the CVS tree and
set it up on a different site and try to work through the issues there.

Thanks again,
Ben


-----Original Message-----
From: zope-cmf-admin@zope.org [mailto:zope-cmf-admin@zope.org]On Behalf
Of Tres Seaver
Sent: Tuesday, May 15, 2001 10:05 AM
To: Ben Riga
Cc: zope-cmf@zope.org
Subject: RE: [Zope-CMF] Adding a metadata tool


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


_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
http://lists.zope.org/mailman/listinfo/zope-cmf

See http://www.zope.org/Products/PTK/Tracker for bug reports and feature
requests