[Zope] External Editor on Win32 -- downloading files with .html extension

Casey Duncan casey@zope.com
17 Jun 2002 13:10:42 -0400


I'm not sure you need the "%1" at the end for Netscape or Mozilla. Try
getting rid of it in the Mozilla config especially.

I doubt that will help Netscape. I'm a bit surprised that Netscape is
sensitive to file extensions like that. weird. But try changing its
config to omit the "%1" anyhow.

I didn't test NS 4.x on Windows, but I will and I'll see if I can make
it behave.

-Casey

On Mon, 2002-06-17 at 08:03, Gr=E9goire Weber wrote:
> Hi Casey,
> cc: hi All (on the list),
>=20
> I like your ExternalEditor product! It's really cool!
>=20
> I'am working under Win2k with Zope 2.5.1 and ExternalEditor 0.3.
>=20
> I have some problems editing object externaly. I could not solve them
> by reading the documenttaion or the mailing list.
>=20
>=20
> Netscape 4.79
> -------------
>=20
> With NS 4.79 it works as expected as long as zope objects do not=20
> have well known extensions like 'html'.
>=20
> I have to set the 'html' extension on objects because I'm=20
> working also with dreamweaver (via ftp/WebDAV).
>=20
> What happens if I click on the pencil icon of an object
> **with** .html as extension:
>=20
>   NS 4.79 opens a alert box asking if the file
>   has to be opened with mozilla.exe or saved to disk.
>   (mozilla is my default browser for html-files)
>=20
> Seems to be a browser problem. The http headers of a=20
> file with or without a html extension are the same
> (I looked at them with tcpwatch).
>=20
> NS 4.79 Config: Application (correct IMO)
>=20
>   Extension: ZOPE
>   MIME type: application/x-zope-edit
>   Handled by Application: d:\prog\Python22x\pythonw.exe D:\prog\ZopeEdit\=
zopeedit.py "%1" "%s"
>  =20
>=20
> Mozilla
> -------
>=20
> With Mozilla (1.0rc1) It doesn't even work to edit files
> without extensions. Instead I get the follwoing message=20
> box (it seems to be a mozilla box):
>=20
>   Opening login_form.html
>=20
>   <temp path>/login_form.html could not be opened, because an=20
>   unknown error occured. Sorry about that. Try saving to disk=20
>   first and then opening the file.
>=20
> The file containing the authentification information can be
> found in the temp directory (wasn't cleared).
>=20
> Mozille 1.0rc1 Config: Helper Applications (correct IMO)
>=20
>   Extension: zope
>   MIME type: application/x-zope-edit
>   Handled by Application: d:\prog\Python22x\pythonw.exe D:\prog\ZopeEdit\=
zopeedit.py "%1"
>=20
>=20
> If you send me some instructions I woudl assist in finding the=20
> problems.
>=20
> Greetings, Greg
>=20
>=20
> -------------------------------------------------------------------------=
------
> ExternalEditor ini file:
>=20
> # Zope External Editor helper application configuration
>=20
> [general]
> # General configuration options
>=20
> # Uncomment and specify an editor value to override the editor
> # specified in the environment
> editor =3D d:\prog\pfe32\pfe32.exe /m
> # editor =3D d:\winnt\system32\notepad.exe # works!
>=20
> # Automatic save interval, in seconds. Set to zero for
> # no auto save (save to Zope only on exit).
> save_interval =3D 1
>=20
> # Temporary file cleanup. Set to false for debugging or
> # to waste disk space. Note: setting this to false is a
> # security risk to the zope server
> cleanup_files =3D 1
>=20
> # Use WebDAV locking to prevent concurrent editing by
> # different users. Disable for single user use or for
> # better performance
> use_locks =3D 1
>=20
> # Specific settings by content-type or meta-type. Specific
> # settings override general options above. Content-type settings
> # override meta-type settings for the same option.
>=20
> [meta-type:DTML Document]
> extension=3D.dtml
>=20
> [meta-type:DTML Method]
> extension=3D.dtml
>=20
> [meta-type:Script (Python)]
> extension=3D.py
>=20
> [meta-type:Page Template]
> extension=3D.pt
>=20
> [meta-type:Z SQL Method]
> extension=3D.sql
>=20
> [content-type:text/*]
> extension=3D.txt
>=20
> [content-type:text/html]
> editor =3D d:\prog\pfe32\pfe32.exe /m # this was only a try - didn't help
>=20
> [content-type:text/html]
> extension=3D.html
>=20
> [content-type:text/xml]
> extension=3D.xml
>=20
> [content-type:image/*]
> editor =3D D:\prog\PaintShopPro6\Psp.exe
>=20
> [content-type:image/gif]
> extension=3D.gif
>=20
> [content-type:image/jpeg]
> extension=3D.jpg
>=20
> [content-type:image/png]
> extension=3D.png
> _____________________________________
> Gr=E9goire Weber
> mailto:gregoire.weber@switzerland.org
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )