ExternalEditor, IE and https
Hi. Just to report that I've had a number of people confirm the problem - over https IE fails to work with ExternalEditor (tested on IE V4, 5 and 6 so the problem has been there a long time which makes me think that the problem lies with IE and may not be easily worked around). A fix may not be possible but I am interested in a workaround. Here's why: We are gradually rolling out Zope to a growing number of users who have unpredictable desktops. We only allow connections over https to the ZMI. The problem is a support issue - if an IE user sees the ExternalEditor pencil icon then they might reasonably expect to click it and have it work. Might it be possible to introduce to ExternalEditor some sort of browser and/or protocol detection so that only non-IE users see the pencil icon? Even better, might there be a way of implementing an ExternalEditor permission on a per folder or per user basis? If either/both is technically possible please let me know - I _might_ be able to find modest funding for such a development. Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/
Paul Browning wrote:
Hi. Just to report that I've had a number of people confirm the problem - over https IE fails to work with ExternalEditor (tested on IE V4, 5 and 6 so the problem has been there a long time which makes me think that the problem lies with IE and may not be easily worked around).
A fix may not be possible but I am interested in a workaround. Here's why:
We are gradually rolling out Zope to a growing number of users who have unpredictable desktops. We only allow connections over https to the ZMI. The problem is a support issue - if an IE user sees the ExternalEditor pencil icon then they might reasonably expect to click it and have it work.
Might it be possible to introduce to ExternalEditor some sort of browser and/or protocol detection so that only non-IE users see the pencil icon?
Even better, might there be a way of implementing an ExternalEditor permission on a per folder or per user basis?
If either/both is technically possible please let me know - I _might_ be able to find modest funding for such a development.
From a quick look at the source, ExternalEditor overrides just the manage_main method of objectManager to provide this link, with the following line of ExternalEditor/manage_main.dtml (and one also has to take a look at findResults.dtml in the same folder). <dtml-var expr="externalEditLink_(this())"> Where actually this method gets called (from ExternalEdit.py): def EditLink(self, object): """Insert the external editor link to an object if appropriate""" base = Acquisition.aq_base(object) user = getSecurityManager().getUser() editable = (hasattr(base, 'manage_FTPget') or hasattr(base, 'EditableBody') or hasattr(base, 'document_src') or hasattr(base, 'read')) if editable and user.has_permission(ExternalEditorPermission, object): return ('<a href="%s/externalEdit_/%s" ' 'title="Edit using external editor">' '<img src="%s/misc_/ExternalEditor/edit_icon" ' 'align="middle" hspace="2" border="0" alt="External Editor" />' '</a>' % (object.aq_parent.absolute_url(), urllib.quote(object.getId()), object.REQUEST.BASEPATH1) ) else: So it should be no problem to insert any test you like there. Do I get funding now? ;>>> cheers, oliver
--On 10 January 2003 15:05 +0100 Oliver Bleutgen <myzope@gmx.net> wrote: [code snipped]
So it should be no problem to insert any test you like there.
Do I get funding now? ;>>>
How do I deliver 4 pints of Smiles Best Bitter <http://www.smiles.co.uk/> as an e-mail attachment? Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/
I have successfully used IE5.5 and IE6 with external editor over https. That was on Win 98. I recently upgraded to Win2k and I haven't tried it there. Do you have a publiclly accessible Zope instance (fronted with https) that I can test with? As for hiding the EE icons, all you have to do is revoke the "Use external editor" permission in the area you don't want it to show up. I am also curious what "modest funding" means. Does it come with an expense account? ;^) Seriously, I am happy to put some time into this on my end if you can provide a Zope instance behind https that I can get to. I can certainly setup my own, but this is a spare time project, and any spare time I can save is of great value. -Casey On Friday 10 January 2003 06:35 am, Paul Browning wrote:
Hi. Just to report that I've had a number of people confirm the problem - over https IE fails to work with ExternalEditor (tested on IE V4, 5 and 6 so the problem has been there a long time which makes me think that the problem lies with IE and may not be easily worked around).
A fix may not be possible but I am interested in a workaround. Here's why:
We are gradually rolling out Zope to a growing number of users who have unpredictable desktops. We only allow connections over https to the ZMI. The problem is a support issue - if an IE user sees the ExternalEditor pencil icon then they might reasonably expect to click it and have it work.
Might it be possible to introduce to ExternalEditor some sort of browser and/or protocol detection so that only non-IE users see the pencil icon?
Even better, might there be a way of implementing an ExternalEditor permission on a per folder or per user basis?
If either/both is technically possible please let me know - I _might_ be able to find modest funding for such a development.
Paul
-- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/
--On 10 January 2003 10:00 -0500 Casey Duncan <casey@zope.com> wrote:
I have successfully used IE5.5 and IE6 with external editor over https. That was on Win 98.
That's encouraging.
I recently upgraded to Win2k and I haven't tried it there.
Win2K and WinXP and WinNT is what I've been having problems with.
Do you have a publiclly accessible Zope instance (fronted with https) that I can test with?
Yup. Account details will follow separately.
As for hiding the EE icons, all you have to do is revoke the "Use external editor" permission in the area you don't want it to show up.
Dang - I'd forgotten about that.
I am also curious what "modest funding" means. Does it come with an expense account? ;^)
10e02 < Modest < 10e03 UKP
Seriously, I am happy to put some time into this on my end if you can provide a Zope instance behind https that I can get to. I can certainly setup my own, but this is a spare time project, and any spare time I can save is of great value.
Understood! Paul -- The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK E-mail: paul.browning@bristol.ac.uk URL: http://www.bris.ac.uk/
On Fri, Jan 10, 2003 at 11:35:09AM -0000, Paul Browning wrote:
Even better, might there be a way of implementing an ExternalEditor permission on a per folder or per user basis?
There is already a "Use external editor" permission. You can't generally assign permissions per-user in zope (it's per-role); but you can of course do it per-folder. I just experimented with un-checking all roles for this permission, and bingo, the pencil icon disappears. -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's DRUNKEN TAPE PEDOPHOBIAC! (courtesy of isometric.spaceninja.com)
participants (4)
-
Casey Duncan -
Oliver Bleutgen -
Paul Browning -
Paul Winkler