[Zope] How to add tab into manage_tabs for DTML Document?

Jaroslav Lukesh lsh@wo.cz
Tue, 3 Sep 2002 11:02:34 +0200


| Odesílatel: Maik Jablonski <maik.jablonski@uni-bielefeld.de>
| for DTMLMethod/Documents create a ProductFolder with a __init__.py with:
| 
| from OFS.DTMLMethod import DTMLMethod
| 
| DTMLMethod.manage_options = DTMLMethod.manage_options + (
|               {'label': 'NewTab',    'action': 'manage_newAction'},)
| 
| add the same for the other types you want to patch.

It give me some error message at "import File", but it seems to work.

Many thanks, JL.

__init__.py:

from OFS.DTMLMethod import DTMLMethod

DTMLMethod.manage_options = DTMLMethod.manage_options + (
              {'label': 'WYSIWYG',    'action': 'manage_WYSIWYG'},)

from OFS.DTMLDocument import DTMLDocument

DTMLDocument.manage_options = DTMLDocument.manage_options + (
              {'label': 'WYSIWYG',    'action': 'manage_WYSIWYG'},)

from OFS.File import File

File.manage_options = File.manage_options + (
              {'label': 'HTMLedit',    'action': 'manage_WYSIWYG'},)


It says:

2002-09-03T08:27:58 ERROR(200) Zope Could not import Products.LSHeditor
Traceback (innermost last):
  File C:\Program Files\zope-web\lukesh251\lib\python\OFS\Application.py,
line 5
31, in import_product
  File C:\Program
Files\zope-web\lukesh251\lib\python\Products\LSHeditor\__init_
_.py, line 11, in ?
    (Object: DTMLMethod)
ImportError: No module named File