[Zope] Re: Zope External Editor for other folderish containers
Casey Duncan
casey@zope.com
Fri, 24 May 2002 12:42:19 -0400
On Friday 24 May 2002 11:58 am, Jim Washington wrote:
[snip old stuff]
> Hi, Casey
>=20
> This is a Truly Masterful Product! Thanks!
>=20
> I've done some work to make it work (for me) in other places, and it=20
> appears that the link code:
>=20
> <dtml-let explicit=3D"_.getitem('sequence-item').aq_explicit">
> <dtml-if expr=3D"_.hasattr(explicit, 'manage_FTPget')
> or _.hasattr(explicit, 'read')
> or _.hasattr(explicit, 'document_src')">
> <a href=3D"&dtml-URL1;/externalEdit_/&dtml.url_quote-sequence-key=
;"
> title=3D"Edit using external editor"
> ><img src=3D"&dtml-BASEPATH1;/misc_/ExternalEditor/edit_icon"
> align=3D"middle" hspace=3D"2" border=3D"0" alt=3D"External =
Editor"=20
> /></a>
> </dtml-if>
> </dtml-let>
>=20
> will be reused over and over.
>=20
> I was wondering whether you might consider in the future factoring the=20
> link code into a separate DTML method so that it can be obtained by=20
> acquisition. That way, the code would reside once in e.g.,=20
> ObjectManager; and then OrderedFolder, FindSupport, etc. could acquire=20
> it by using e.g., <dtml-var external_editor_link> instead of a full cop=
y=20
> of the link code. =20
This sounds like a pretty good idea. I'll do this in the next release.
Thanks for the suggestions!
-Casey