[Zope] Re: Zope External Editor for other folderish containers
Jim Washington
jwashin@vt.edu
Fri, 24 May 2002 11:58:38 -0400
Casey Duncan wrote:
>On Thursday 16 May 2002 10:50 am, Joachim Schmitz wrote:
>
>
>>--On Donnerstag, Mai 16, 2002 10:35:57 -0400 Casey Duncan <casey@zope.com>
>>wrote:
>>
>>
>>
>>>On Thursday 16 May 2002 07:16 am, Joachim Schmitz wrote:
>>>
>>>
>>>>Hi Casey,
>>>>
>>>>I installed ZEE and get the external edit-icon on all items contained in
>>>>a "normal Folder". But since I working a lot with ZPatterns, most of my
>>>>items are contained in ZPatterns specialists. How do I enable ZEE
>>>>support for other containers ?
>>>>
>>>>
>>>Actually I think I misunderstood the question. In order to make this work
>>>you need to change the managment screen (manage_main) for that object.
>>>
>>>Take a look at how the __init__.py in the product does this. The lines to
>>>include in the management screen start on line 136 of the
>>>manage_main.dtml in the product.
>>>
>>>
>>I think it has no own, it takes the standard objectmanager manage_main
>>may I simply replace this
>>
>>
>
>Yes, just replace it with the one from the in the ExternalEditor product. Make
>a backup first, tho just in case.
>
>
Hi, Casey
This is a Truly Masterful Product! Thanks!
I've done some work to make it work (for me) in other places, and it
appears that the link code:
<dtml-let explicit="_.getitem('sequence-item').aq_explicit">
<dtml-if expr="_.hasattr(explicit, 'manage_FTPget')
or _.hasattr(explicit, 'read')
or _.hasattr(explicit, 'document_src')">
<a href="&dtml-URL1;/externalEdit_/&dtml.url_quote-sequence-key;"
title="Edit using external editor"
><img src="&dtml-BASEPATH1;/misc_/ExternalEditor/edit_icon"
align="middle" hspace="2" border="0" alt="External Editor"
/></a>
</dtml-if>
</dtml-let>
will be reused over and over.
I was wondering whether you might consider in the future factoring the
link code into a separate DTML method so that it can be obtained by
acquisition. That way, the code would reside once in e.g.,
ObjectManager; and then OrderedFolder, FindSupport, etc. could acquire
it by using e.g., <dtml-var external_editor_link> instead of a full copy
of the link code.
Just a suggestion.
-- Jim Washington