Re: [Zope] How to add tab into manage_tabs for DTML Document?
| 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
Jaroslav Lukesh wrote:
from OFS.File import File
File.manage_options = File.manage_options + ( {'label': 'HTMLedit', 'action': 'manage_WYSIWYG'},) ImportError: No module named File
hi, use this one instead...;-) from OFS.Image import File -mj -- Maik Jablonski __o www.zfl.uni-bielefeld.de _ \<_ Deutsche Zope User Group Bielefeld, Germany (_)/(_) www.dzug.org
participants (2)
-
Jaroslav Lukesh -
Maik Jablonski