Products.ExternalEditor


NameProducts.ExternalEditor JSON
Version 4.0.1 PyPI version JSON
download
home_pagehttps://github.com/zopefoundation/Products.ExternalEditor
SummaryZope External Editor
upload_time2024-09-16 17:35:53
maintainerNone
docs_urlNone
authorZope Foundation and Contributors
requires_python>=3.7
licenseZPL 2.1
keywords zope external editor webdav
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://github.com/zopefoundation/Products.ExternalEditor/actions/workflows/tests.yml/badge.svg
        :target: https://github.com/zopefoundation/Products.ExternalEditor/actions/workflows/tests.yml

.. image:: https://coveralls.io/repos/github/zopefoundation/Products.ExternalEditor/badge.svg
        :target: https://coveralls.io/github/zopefoundation/Products.ExternalEditor

.. image:: https://img.shields.io/pypi/v/Products.ExternalEditor.svg
        :target: https://pypi.org/project/Products.ExternalEditor/
        :alt: Current version on PyPI

.. image:: https://img.shields.io/pypi/pyversions/Products.ExternalEditor.svg
        :target: https://pypi.org/project/Products.ExternalEditor/
        :alt: Supported Python versions


Zope External Editor
====================

The Zope External Editor is a new way to integrate Zope more seamlessly with
client-side tools. It has the following features:

- Edit objects locally, directly from the ZMI.

- Works with any graphical editor application that can open a file from the
  command line, including: emacs, gvim, xemacs, nedit, gimp, etc.

- Automatically saves changes back to Zope without ending the editing
  session.

- Associate any client-side editor application with any Zope object by
  meta-type or content-type. Both text and binary object content can be
  edited.

- Locks objects while they are being edited. Automatically unlocks them
  when the editing session ends.

- Can add file extensions automatically to improve syntax highlighting or
  file type detection.

- Works with basic auth, cookie auth and Zope versions. Credentials are
  automatically passed down to the helper application. No need to
  reauthenticate.

- https support (Openssl required)

Zope version compatibility
--------------------------

For Zope 4, please use release 2.0 and upwards. For Zope releases prior to
4.0, please use ExternalEditor releases from the 1.1 branch.

Using It
--------

Use of the application is about as easy as using the ZMI once your browser
is configured (see the installation instructions). To edit an object
externally, just click on the pencil icon next to the object in the ZMI.
The object will be downloaded and opened using the editor application you
have chosen (you will be prompted the first time to choose an editor).

You edit the object just like any other file. When you save the changes in
your editor, they are automatically uploaded back to Zope in the
background. While the object is open in your editor, it is locked in Zope
to prevent concurrent editing. When you end your editing session (ie you
close your editor) the object is unlocked.

How it Works
------------

Ok, so this all sounds a bit too good to be true, no? So how the heck does
it work anyway? First I'll give you a block diagram::

    +------------+     +------------+     +---------+        +------+
    | Editor App | <-- | Helper App | <-- | Browser | <-/ /- | Zope |
    +------------+     +------------+     +---------+        +------+
                ^       ^     ^                                ^
                 \     /       \                              /
                  v   v         -----------------------/ /----
                 -------
                / Local \
                \  File /
                 -------

Now the key to getting this to work is solving the problem that the editor
cannot know about Zope, and must only deal with local files. Also, there is
no standard way to communication with editors, so the only communication
channel can be the local file which contains the object's content or code.

It is trivial to get the browser to fire up your editor when you download
a particular type of data with your browser. But that does you little good,
since the browser no longer involves itself once the data is downloaded. It
just creates a temp file and fires off the registered application, passing
it the file path. Once the editor is running, it is only aware of the local
file, and has no concept of where it originated from.

To solve this problem, I have developed a helper application whose job is
essentially two-fold:

- Determine the correct editor to launch for a given Zope object

- Get the data back into Zope when the changes are saved

So, let's take a step by step look at how it works:

1. You click on the external editor link (the pencil icon) in the Zope
   management interface.

2. The product code on the server creates a response that encapsulates the
   necessary meta-data (URL, meta-type, content-type, cookies, etc) and the
   content of the Zope object, which can be text or binary data. The
   response has the contrived content-type "application/x-zope-edit".

3. The browser receives the request, and finds our helper application
   registered for "application/x-zope-edit". It saves the response data
   locally to disk and spawns the helper app to process it.

4. The helper app, reads its config file and the response data file. The
   meta-data from the file is parsed and the content is copied to a new
   temporary file. The appropriate editor program is determined based on
   the data file and the configuration.

5. The editor is launched as a sub-process of the helper app, passing it the
   file containing the content data.

6. If so configured, the helper app sends a WebDAV lock request back to Zope
   to lock the object.

7. Every so often (if so configured), the helper app stats the content file
   to see if it has been changed. If so, it sends an HTTP PUT request
   back to Zope containing the new data.

8. When the editor is closed, the content file is checked one more time and
   uploaded if it has changed. Then a WebDAV unlock request is sent to Zope.

9. The helper application exits.

Configuration
-------------

The helper application supports several configuration options, each of
which can be triggered in any combination of object meta-type, content-type
or domain. This allows you to create appropriate behavior for different
types of Zope objects and content or even different servers. The
configuration file is stored in the file  "~/.zope-external-edit" (Unix) or
"~\ZopeEdit.ini" (Windows). If no configuration file is found when the
helper application starts, a default config file is created in your home
directory.

The configuration file follows the standard Python ConfigParser format,
which is pretty much like the old .ini file format from windows. The file
consists of sections and options in the following format:

.. code-block:: ini

    [section 1]
    option1 = value
    option2 = value

    [section 2]
    ...

Options
-------

The available options for all sections of the config file are:

``editor``
    Command line or plugin name used to invoke the editor application. On
    Windows, if no editor setting is found for an object you edit, the
    helper app will search the file type registry for an appropriate editor
    based on the content-type or file extension of the object (which can be
    specified using the extension option below). By default, the file path
    of the local file being edited is appended to this command line. To
    insert the file path in the middle of your command, use "$1" for Unix
    and "%1" for Windows respectively.

``save_interval``
    (float) The interval in seconds that the helper application checks the
    edited file for changes.

``use_locks``
    (1 or 0) Whether to use WebDAV locking. The user editing must have the
    proper WebDAV related permissions for this to work.

``always_borrow_locks``
    (1 or 0) When use_locks is enabled this features suppresses warnings
    when trying to edit an object you have already locked.  When enabled,
    external editor will always "borrow" the existing lock token instead of
    doing the locking itself. This is useful when using CMFStaging for
    instance. If omitted, this option defaults to 0.

``cleanup_files``
    (1 or 0) Whether to delete the temp files created.  WARNING the temp
    file coming from the browser contains authentication information and
    therefore setting this to 0 is a security risk, especially on shared
    machines. If set to 1, that file is deleted at the earliest
    opportunity, before the editor is even spawned. Set to 0 for debugging
    only.

``extension``
    (text) The file extension to add to the content file. Allows better
    handling of images and can improve syntax highlighting.

``temp_dir``
    (path) Path to store local copies of object data being edited. Defaults
    to operating system temp directory. *Note: this setting has no apparent
    effect on Windows* 8^(

``long_file_name``
    (1 or 0) Whether to include the whole path to the object including the
    hostname in the file name (the default) or just the id of the object
    being edited. Turn this option off for shorter file names in your
    editors, and for editors that don't like long names.

``file_name_separator``
    (string) Character or characters used to separate path elements in long
    files names used by external editor. Defaults to a comma (,). This must
    be a legal character for use in file names on your platorm (i.e., don't
    use a path separator character!). This option is ignored if
    'long_file_name' is set to 0.

Sections
--------

The sections of the configuration file specify the types of objects and
content that the options beneath them apply to.

There is only one mandatory section '[general]', which should define all
of the above options that do not have a default value. If no other
section defines an option for a given object, the general settings are
used.

Additional sections can apply to a particular domain, content-type or
meta-type. Since objects can have all these properties, the options are
applied in this order of precedence:

1. Options by whole content-type (e.g., `[content-type:text/html]`).

2. Options by major content-type (e.g., `[content-type:text/*]`).

3. Options by Zope meta-type (e.g., `[meta-type:File]`).

4. Options by domain (e.g., `[domain:www.mydomain.com]`). Several
   sections can be added for each domain level if desired.

5.  General options (i.e., `[general]`).

This scheme allows you to specify an extension by content-type, the
editor by meta-type, the locking settings by domain and the remaining
options under general for a given object.

Editor Plugins
--------------

For tighter client-side integration, external editor has a plugin system
that allows it to interact directly with supported applications.

On Windows this generally means using COM to invoke the application, open
the content file and wait for the user to save and close the file. Because
each application has different remote scripting capabilities and APIs,
editor specific plugins must be written tailored to each supported
application and platform.

This system allows external editor to efficiently connect to running
applications without relaunching them and therefore fully support MDI
environments. The following applications currently have plugin support::

    Application       Platform    Plugin Module Name(s)
    ===================================================
    HomeSite          Windows     homesite5, homesite
    Dreamweaver       Windows     dreamweaver	
    Photoshop         Windows     photoshp, photoshop
    MS Word           Windows     winword, word
    MS Excel          Windows     excel
    MS Powerpoint     Windows     powerpnt, powerpoint

External editor will attempt to load a plugin for any application before
using the general editor control method. It does this by matching the
name of the application executable file (sans extension) in the editor
command line with the available plugins.

Because plugins do not require the path of the editor application to work,
you can simply specify the plugin module name for your editor in the
configuration file if desired. For example, to specify Photoshop for all
image files, use add the following section to your config file
(ZopeEdit.ini on Windows)::

    [content-type:image/*]
    editor=photoshop

This is only a shortcut and specifying the full application path will
still use the plugin where possible.

Plugin Notes
------------

Photoshop
    Photoshop's COM API is quite limited, and external editor cannot detect
    that you have closed a file until you exit the entire application (it
    can still detect saves). Therefore you may want to turn off DAV locking
    (use_locks=0) or borrow locks (always_borrow_locks=1) when using it.

Dreamweaver
    External editor cannot detect when you have finished editing a single
    file. Objects edited with Dreamweaver will remain locked on the server
    until you exit the application. As with Photoshop above, you may want
    to turn off locking for Dreamweaver.

If your favorite editor needs a plugin because the general support is
not good enough, please let me know. Keep in mind that I must be able to
run a copy of the application in order to develop a plugin for it. So,
unless the application is free, or a full demo is available for download
I won't be able to help much. Plugins are not difficult to write, and I
encourage you to write one for your favorite editor, start by reading
one of the existing ones. I am happy to include third-party plugins with
the distribution.

Permissions
-----------

External editing is governed by the permission "Use external editor".
Users with this permission can launch external editor from editable
objects. In order to save changes, users will need additional permissions
appropriate for the objects they are editing.

If users wish to use the built-in locking support, they must have the
"WebDAV access", "WebDAV Lock items" and "WebDAV Unlock items" permissions
for the objects they are editing.

If these permissions are not set in Zope, then the helper application will
receive unauthorized errors from Zope which it will present to the user.

Integrating with External Editor
--------------------------------

The external editor product in zope installs a globally available object
that can format objects accessible through FTP/DAV for use by the helper
application. You can take advantage of this functionality easily in your
own content management applications.

Say you have an FTP editable object, "document", in a Zope folder named
"my_stuff". The URL to view the object would be::

  http://zopeserver/my_stuff/document

The URL to kick off the external editor on this document would be::

  http://zopeserver/my_stuff/externalEdit_/document

Now, this may look a bit odd to you if you are used to tacking views on to
the end of the URL. Because `externalEdit_` is required to work on Python
Scripts and Page Templates, which swallow the remaining path segments on
the URL following themselves, you must put the call to `externalEdit_`
*directly before* the object to be edited. You could do this in ZPT using
some TAL in a Page Template like:

.. code-block:: html

    <a href='edit'
       attributes='href
       string:${here/aq_parent/absolute_url}/externalEdit_/${here/getId}'>
       Edit Locally
    </a>

As an alternative, you can also pass the path the object you want to edit
directly to the `externalEdit_` object when you call its index_html method.
It can be called either directly by URL or from a python script.
`externalEdit_` will return the proper response data for the object to edit.
You can invoke it via a URL::

  http://zopeserver/externalEdit_?path=/my_stuff/document

or via Python:

.. code-block:: python

    return context.externalEdit_.index_html(
        context.REQUEST, context.RESPONSE, path='/my_stuff/document')

When integrating External Editor with a CMS that already uses DAV
locks, it will, by default allow users to borrow locks made on the server
after displaying a confirmation dialog box. Although you can make this
automatic by specifying 'always_borrow_locks = 1' in the External Editor
config file, it may be desireable to make this the default behavior when
using that server. To facilitate this, you can specify that locks
should be automatically borrowed in the URL (New in 0.7), i.e::

  http://zopeserver/my_stuff/externalEdit_/document?borrow_lock=1

External Editor also defines a global method that you can call to insert
pencil icon links for appropriate objects. The method automatically checks
if the object supports external editing and whether the user has the "Use
external editor" permission for that object. If both are true, it returns
the HTML code to insert the external editor icon link. Otherwise it returns
an empty string.

The method is 'externalEditLink_(object)'. The object argument is the
object to create the link for if appropriate. Here is some example page
template code that inserts links to objects in the current folder and the
external editor icon where appropriate:

.. code-block:: html

    <div tal:repeat="object here/objectValues">
      <a href="#"
         tal:attributes="href object/absolute_url"
         tal:content="object/title_or_id">Object Title</a>
      <span tal:replace="structure python:here.externalEditLink_(object)" />
    </div>

Conclusion
----------

I hope you enjoy using this software. If you have any comments, suggestions
or would like to report a bug, send an email to the author:

Casey Duncan

Changelog
=========

4.0.1 (2024-09-16)
------------------
- Correction of the use of Pdata when editing content
  (`#23 <https://github.com/zopefoundation/Products.ExternalEditor/issues/23>`_)

4.0 (2023-07-04)
----------------

- Ensure an object's editable body is cast to bytes
  (`#20 <https://github.com/zopefoundation/Products.ExternalEditor/issues/20>`_)

- Add support for Python 3.11.

- Drop support for Python 2.7, 3.5, 3.6.


3.1.0 (2022-06-24)
------------------

- Add support for Python 3.9, 3.10.

- Change package structure to move package code into a ``src`` subfolder.

- Fix bug which prevented ZMI from rendering, when Products.ExternalEdit was
  installed.
  (`#18 <https://github.com/zopefoundation/Products.ExternalEditor/pull/18>`_)


3.0.1 (2020-10-30)
------------------

Bug fixes:

- Add support for recent Python 3 versions [ale-rt]


3.0 (2019-02-16)
----------------

- Fix zmi-patches for Zope 4.
  [pbauer]

- Drop support for Python 2.6.

- Adapt tests to Zope 4.

- Add needed dependencies in `setup.py`.

- Prepare for Python 2 / 3 compatibility  [davilima6]


2.0.3 (2017-07-17)
------------------

- Document Zope version compatibility  [dataflake]


2.0.2 (2017-02-14)
------------------

- Fixed reflective XSS in findResult.
  This applies PloneHotfix20170117.  [maurits]


2.0.1 (2016-09-08)
------------------

- Quote variable in manage_tabs to avoid XSS.
  From Products.PloneHotfix20160830.  [maurits]


2.0.0 (2015-09-09)
------------------

- Moved code to https://github.com/zopefoundation/Products.ExternalEditor

- Update dtml to Zope trunk.


1.1.0 (2010-12-01)
------------------

- Added support for unaware mimetype browser - we now add the .zem extension no
  matter what the user-agent

- Modified the cache's parameters - special case for MSIE

- Corrected and added tests

- Moved the sources of the client to another package : collective.zopeedit


1.0 (2010-07-01)
----------------

- Update manage_main, manage_tabs, and findResult monkey patches to include
  fixes from Zope 2.12.


1.0a2 (2009-11-13)
------------------

- Removed imports from Globals.

- Purged old Zope 2 Interface interfaces for Zope 2.12 compatibility.


1.0a1 (2008-03-05)
------------------

- Updated package metadata to be usable as a package.


01/03/2007 - 0.9.3
------------------

- Fixed issue with 'manage_FTPget' overriding the 'Content-Type'
  header.

- Only run ExpandEnvironmentStrings on win32 systems.


9/14/2006 - 0.9.2
-----------------

- Added 'skip_data' option to make External Editor send out only
  the metadata part and skip appending data to the 'body'.

- Add a simple callback registry that can be used to add extra
  metadata headers or set special response headers when a file is
  edited through External Editor.

- Use rfc822.Message for parsing the metadata of the file being
  edited.

- Don't emit a warning about deprecated 'methods' in Zope >= 2.10.

- Fixed acquisition issue in manage_main.dtml to sync up with the
  same fix applied to Zope.


6/23/2005 - 0.9.1
-----------------

- Older pyc files for plugins were included in the 0.9 release.
  This version has the most up to date plugins.


6/20/2005 - 0.9
---------------

- When using the Excel plugin, errors were seen by users like
  "TypeError: This object does not support enumeration".  We now
  make the user deal with these.

- When using the Excel plugin, errors were intermittently raised to the
  user in the form "Fatal error: <unknown>.Path" and the user could
  subsequently not save the document back to Zope because the
  external editor process had quit.

- Changes to documents intermittently may not have been saved back to Zope
  when using any plugin that involved COM (Word, Excel, Powerpoint, etc).

- If Word was exited before a user actively saved, if there were
  outstanding changes in the document being edited, those changes
  would not be saved to the server despite the user answering
  "yes" to the "do you want to save before you exit" dialog
  presented by Word.

- The "title" attribute of the object being externally edited is
  now available within the set of headers returned by EE to the
  zopeedit client.

- Detecting whether the client has External Editor installed from
  within IE using JavaScript or VBScript is now possible, assuming
  that the client software is installed via the InnoSetup
  installer.  See "win32/ocx.txt" for more info.

- External Editor now compatible with objects that return a
  "filestream iterator" in Zope 2.7.1+. (if upgrading: this fix
  does not require an update to EE client, just the EE Zope
  product).

- Properly escape hyphens in man page. Thanks to Federico Sevilla III.

- Check if the editor was launched before locking the file in Zope. This
  prevents errors if the editor is closed before the lock request
  completes.

- Do not ask the user what editor to use on Posix platforms. Instead just
  tell the user to edit the config file. The askstring()
  function does not work with a hidden root Tk window in Python 2.3.4.
  Thanks to Christopher Mann.


7/13/04 - 0.8
-------------

- Add external editor icon to ZMI breadcrumbs for editable objects.

- Compiled windows helper app binary using Python 2.3.4, Pythonwin build
  163 and py2exe 0.5.

- Add Dreamweaver plugin contributed by Manuel Aristarann. Thanks also
  to Anton Stonor.

- Add ZMI support for Zope 2.7's ordered folder objects.

- Fix bug detecting basic auth info from older versions of CookieCrumber.
  Thanks to David D. Smith and Federico Sevilla III.

- Workaround IE browser error when running over SSL. Thanks to
  Marc-Aurele Darche.

- Add ".zem" file extension support for MacOS X (especially Mac IE),
  to ease helper app integration where MIME support is lacking. Thanks
  to Zac Bir.

- Added "long_file_name" and "file_name_separator" config options.

- Fixed bug which happened under Win32 when editing an Excel file
  using the Excel plugin where the symptom was a "Call was
  rejected by callee" COM error. Thanks to Chris McDonough.


4/23/04 - 0.7.2
---------------

- Change default configuration to use .txt extension for text/plain only.
  Add extensions for css and javascript files.

- Fixed packaging bug in Windows binary which disabled several plugins.
  This fixes "Editor did not launch properly" errors for MSOffice
  among others.

- Fixed a bug where very short editing sessions where no changes were
  made could make EE think the editor never launched. Thanks to Maik Ihde.

11/7/03 - 0.7.1
---------------

- Fix encoding bug in windows binary. Thanks to Chris McDonough.

- Added tip for configuring IE to save files over SSL. Thanks to
  Jonah Bossewitch.


4/1/03 - 0.7
------------

- Added working distutils setup for Unix.

- You can now specify from the server that the helper app should
  borrow a lock by passing borrow_lock=1 via the request, thus
  suppressing the dialog box which appears by default. Thanks
  to Shane Hathaway.

- Improved open file check in Word and Powerpoint plugins
  thanks to Yura Petrov.

- Added plugins for Microsoft Word, Excel and Powerpoint.

- Added the man page from the Debian distro. Thanks go out to
  Federico Sevilla III and Andreas Tille


11/02/02 - 0.6
--------------

- Built Windows helper app using Python 2.2.2 and PythonWin 148.

- The `externalEdit_` object now accepts a path argument to the object to
  edit, allowing URLs like: `http://zope/externalEdit_?path=/some/object.`
  This allows external editor to play better with applications making use
  of traversal magic of their own. Thanks to Tres Seaver.

- Fixed NameError bug in unlock retry code. Thanks to Federico Sevilla III.

- Added a workaround for non-compliant SSL servers. The software now
  silently ignores "EOF occurred in violation of protocol" errors coming
  from httplib. Thanks to Christopher Deckard.

- Removed stderr writes to cure "Invalid File Descriptor" errors on
  Windows. Thanks to Martijn Peters.

- Added Photoshop plugin (win32)

- Added HomeSite plugin (win32)

- Added win32 editor plugin support for the helper application.


8/19/02 - 0.5
-------------

- Added patch for Zope find template so that you can use external editor
  directly from find results in the ZMI. Thanks to Jim Washington.

- Factored out external editor link generator. Product now registers
  a global method `externalEditLink_` which can be called to generate
  the external editor icon link for any object.

- External editing is now governed by the "Use external editor" permission
  to allow non-managers to use it. Users must also have the permissions to
  edit/modify the objects they edit, plus do WebDAV locking if desired.
  Thanks to Reineke and others.

- Unix editor command line parsing is much more robust now and properly
  handles quoted arguments. You can also specify the "$1" placeholder in the
  editor command to denote where the content file name is inserted. If
  omitted it is appended to the end of the command line. "%1" continues to
  work similarly for Windows. Thanks to Marc St-Jean.

- Fixed bug editing large (chunked) files and images. External editor now
  streams their data properly to the client. Thanks to all the users who
  reported various symptoms of this bug.

- Fixed bug editing objects inside a Squishdot site. Thanks to Kevin Salt.

- Added the capability to borrow exising DAV locks. This allows external
  editor to play well with other systems using locks, such as CMFStaging. A
  new configuration flag, always_borrow_locks can be set to suppress the
  borrow lock warning dialog when editing.

- Fixed auth bug when product was used with mysqlUserFolder. Thanks to
  ViNiL.


6/30/02 - 0.4.2
---------------

- Added SSL support to Windows binary package. Thanks to Federico
  Sevilla III


6/29/02 - 0.4.1
---------------

- Fixed dangling dav lock bug on fatal errors. Thanks to Marc St-Jean.

- Fixed content_type bug, now checks if it is callable. Thanks to Arnaud
  Bienvenu.

- Fixed bug with editing binary data on Windows. Thanks to Eric Kamm.

- Fixed bug setting the editor on Posix platforms.


6/24/02 - 0.4
-------------

- Added --version command line argument

- Made manage_FTPget the default source for the editable content, instead
  of document_src which was broken for CMF Wiki Pages.

- Fixed Windows "body_file" bug.

- Added binary build support for Windows using py2exe and Inno setup.

- Fixed Windows config file locator. It now looks in the program directory
  and then the user's home directory (if specified)

- Fixed bug in Windows registry editor lookup.


6/16/02 - 0.3
-------------

- Improved behavior when saving after lock attempts fail.

- Now works on Windows (applause) using Pythonwin. Much overall
  refactoring to abstract process control. Thanks to Oliver Deckmyn,
  Gabriel Genellina and Arno Gross for testing, patches and suggestions.

- Added "temp_dir" configuration option for specifying a different
  temp file directory then the OS default. Also further improved
  temp file name generation.

- Added support for domain specific configuration options.

- Fixed trailing newline bug in encoded auth data coming from
  CookieCrumbler. Thanks to Harald Koschinski.

- You can now pass command line arguments to the editor in the config file,
  or wrap the editor in an xterm without using a shell script.

- Rewrote "Editor did not launch" error message so it makes more sense.

- Fixed https detection bug. External editor is now tested and working with
  https. Many thanks to Hans-Dieter Stich and Martin Groenemeyer for their
  assistance and ideas.

- Made it possible to edit objects that are methods of ZClasses. Thanks to
  Jim Washington

- Refactored link generation code in manage_main so that it uses
  the parent's absolute_url rather than URL1. Thanks to
  Jim Washington

- Removed implicit save in Configuration class destructor

- Added caching headers to prevent client-side caching of edit data.
  Thanks to Gabriel Genellina for pointing this out.

- Added improved support for editing CMF documents

- Eliminated spurious "Editor did not launch" errors on short sessions
  or when other errors occurred.

5/16/02 - 0.2
-------------

- Fixed product uninstallation bug

5/15/02 - 0.1
-------------

- Initial release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zopefoundation/Products.ExternalEditor",
    "name": "Products.ExternalEditor",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "zope external editor WebDAV",
    "author": "Zope Foundation and Contributors",
    "author_email": "zope-dev@zope.dev",
    "download_url": "https://files.pythonhosted.org/packages/5e/e0/c0aaa02a1b22a1b3de59287d8c6232b55f6179e62e02bfb4ce7818d94980/products_externaleditor-4.0.1.tar.gz",
    "platform": null,
    "description": ".. image:: https://github.com/zopefoundation/Products.ExternalEditor/actions/workflows/tests.yml/badge.svg\n        :target: https://github.com/zopefoundation/Products.ExternalEditor/actions/workflows/tests.yml\n\n.. image:: https://coveralls.io/repos/github/zopefoundation/Products.ExternalEditor/badge.svg\n        :target: https://coveralls.io/github/zopefoundation/Products.ExternalEditor\n\n.. image:: https://img.shields.io/pypi/v/Products.ExternalEditor.svg\n        :target: https://pypi.org/project/Products.ExternalEditor/\n        :alt: Current version on PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/Products.ExternalEditor.svg\n        :target: https://pypi.org/project/Products.ExternalEditor/\n        :alt: Supported Python versions\n\n\nZope External Editor\n====================\n\nThe Zope External Editor is a new way to integrate Zope more seamlessly with\nclient-side tools. It has the following features:\n\n- Edit objects locally, directly from the ZMI.\n\n- Works with any graphical editor application that can open a file from the\n  command line, including: emacs, gvim, xemacs, nedit, gimp, etc.\n\n- Automatically saves changes back to Zope without ending the editing\n  session.\n\n- Associate any client-side editor application with any Zope object by\n  meta-type or content-type. Both text and binary object content can be\n  edited.\n\n- Locks objects while they are being edited. Automatically unlocks them\n  when the editing session ends.\n\n- Can add file extensions automatically to improve syntax highlighting or\n  file type detection.\n\n- Works with basic auth, cookie auth and Zope versions. Credentials are\n  automatically passed down to the helper application. No need to\n  reauthenticate.\n\n- https support (Openssl required)\n\nZope version compatibility\n--------------------------\n\nFor Zope 4, please use release 2.0 and upwards. For Zope releases prior to\n4.0, please use ExternalEditor releases from the 1.1 branch.\n\nUsing It\n--------\n\nUse of the application is about as easy as using the ZMI once your browser\nis configured (see the installation instructions). To edit an object\nexternally, just click on the pencil icon next to the object in the ZMI.\nThe object will be downloaded and opened using the editor application you\nhave chosen (you will be prompted the first time to choose an editor).\n\nYou edit the object just like any other file. When you save the changes in\nyour editor, they are automatically uploaded back to Zope in the\nbackground. While the object is open in your editor, it is locked in Zope\nto prevent concurrent editing. When you end your editing session (ie you\nclose your editor) the object is unlocked.\n\nHow it Works\n------------\n\nOk, so this all sounds a bit too good to be true, no? So how the heck does\nit work anyway? First I'll give you a block diagram::\n\n    +------------+     +------------+     +---------+        +------+\n    | Editor App | <-- | Helper App | <-- | Browser | <-/ /- | Zope |\n    +------------+     +------------+     +---------+        +------+\n                ^       ^     ^                                ^\n                 \\     /       \\                              /\n                  v   v         -----------------------/ /----\n                 -------\n                / Local \\\n                \\  File /\n                 -------\n\nNow the key to getting this to work is solving the problem that the editor\ncannot know about Zope, and must only deal with local files. Also, there is\nno standard way to communication with editors, so the only communication\nchannel can be the local file which contains the object's content or code.\n\nIt is trivial to get the browser to fire up your editor when you download\na particular type of data with your browser. But that does you little good,\nsince the browser no longer involves itself once the data is downloaded. It\njust creates a temp file and fires off the registered application, passing\nit the file path. Once the editor is running, it is only aware of the local\nfile, and has no concept of where it originated from.\n\nTo solve this problem, I have developed a helper application whose job is\nessentially two-fold:\n\n- Determine the correct editor to launch for a given Zope object\n\n- Get the data back into Zope when the changes are saved\n\nSo, let's take a step by step look at how it works:\n\n1. You click on the external editor link (the pencil icon) in the Zope\n   management interface.\n\n2. The product code on the server creates a response that encapsulates the\n   necessary meta-data (URL, meta-type, content-type, cookies, etc) and the\n   content of the Zope object, which can be text or binary data. The\n   response has the contrived content-type \"application/x-zope-edit\".\n\n3. The browser receives the request, and finds our helper application\n   registered for \"application/x-zope-edit\". It saves the response data\n   locally to disk and spawns the helper app to process it.\n\n4. The helper app, reads its config file and the response data file. The\n   meta-data from the file is parsed and the content is copied to a new\n   temporary file. The appropriate editor program is determined based on\n   the data file and the configuration.\n\n5. The editor is launched as a sub-process of the helper app, passing it the\n   file containing the content data.\n\n6. If so configured, the helper app sends a WebDAV lock request back to Zope\n   to lock the object.\n\n7. Every so often (if so configured), the helper app stats the content file\n   to see if it has been changed. If so, it sends an HTTP PUT request\n   back to Zope containing the new data.\n\n8. When the editor is closed, the content file is checked one more time and\n   uploaded if it has changed. Then a WebDAV unlock request is sent to Zope.\n\n9. The helper application exits.\n\nConfiguration\n-------------\n\nThe helper application supports several configuration options, each of\nwhich can be triggered in any combination of object meta-type, content-type\nor domain. This allows you to create appropriate behavior for different\ntypes of Zope objects and content or even different servers. The\nconfiguration file is stored in the file  \"~/.zope-external-edit\" (Unix) or\n\"~\\ZopeEdit.ini\" (Windows). If no configuration file is found when the\nhelper application starts, a default config file is created in your home\ndirectory.\n\nThe configuration file follows the standard Python ConfigParser format,\nwhich is pretty much like the old .ini file format from windows. The file\nconsists of sections and options in the following format:\n\n.. code-block:: ini\n\n    [section 1]\n    option1 = value\n    option2 = value\n\n    [section 2]\n    ...\n\nOptions\n-------\n\nThe available options for all sections of the config file are:\n\n``editor``\n    Command line or plugin name used to invoke the editor application. On\n    Windows, if no editor setting is found for an object you edit, the\n    helper app will search the file type registry for an appropriate editor\n    based on the content-type or file extension of the object (which can be\n    specified using the extension option below). By default, the file path\n    of the local file being edited is appended to this command line. To\n    insert the file path in the middle of your command, use \"$1\" for Unix\n    and \"%1\" for Windows respectively.\n\n``save_interval``\n    (float) The interval in seconds that the helper application checks the\n    edited file for changes.\n\n``use_locks``\n    (1 or 0) Whether to use WebDAV locking. The user editing must have the\n    proper WebDAV related permissions for this to work.\n\n``always_borrow_locks``\n    (1 or 0) When use_locks is enabled this features suppresses warnings\n    when trying to edit an object you have already locked.  When enabled,\n    external editor will always \"borrow\" the existing lock token instead of\n    doing the locking itself. This is useful when using CMFStaging for\n    instance. If omitted, this option defaults to 0.\n\n``cleanup_files``\n    (1 or 0) Whether to delete the temp files created.  WARNING the temp\n    file coming from the browser contains authentication information and\n    therefore setting this to 0 is a security risk, especially on shared\n    machines. If set to 1, that file is deleted at the earliest\n    opportunity, before the editor is even spawned. Set to 0 for debugging\n    only.\n\n``extension``\n    (text) The file extension to add to the content file. Allows better\n    handling of images and can improve syntax highlighting.\n\n``temp_dir``\n    (path) Path to store local copies of object data being edited. Defaults\n    to operating system temp directory. *Note: this setting has no apparent\n    effect on Windows* 8^(\n\n``long_file_name``\n    (1 or 0) Whether to include the whole path to the object including the\n    hostname in the file name (the default) or just the id of the object\n    being edited. Turn this option off for shorter file names in your\n    editors, and for editors that don't like long names.\n\n``file_name_separator``\n    (string) Character or characters used to separate path elements in long\n    files names used by external editor. Defaults to a comma (,). This must\n    be a legal character for use in file names on your platorm (i.e., don't\n    use a path separator character!). This option is ignored if\n    'long_file_name' is set to 0.\n\nSections\n--------\n\nThe sections of the configuration file specify the types of objects and\ncontent that the options beneath them apply to.\n\nThere is only one mandatory section '[general]', which should define all\nof the above options that do not have a default value. If no other\nsection defines an option for a given object, the general settings are\nused.\n\nAdditional sections can apply to a particular domain, content-type or\nmeta-type. Since objects can have all these properties, the options are\napplied in this order of precedence:\n\n1. Options by whole content-type (e.g., `[content-type:text/html]`).\n\n2. Options by major content-type (e.g., `[content-type:text/*]`).\n\n3. Options by Zope meta-type (e.g., `[meta-type:File]`).\n\n4. Options by domain (e.g., `[domain:www.mydomain.com]`). Several\n   sections can be added for each domain level if desired.\n\n5.  General options (i.e., `[general]`).\n\nThis scheme allows you to specify an extension by content-type, the\neditor by meta-type, the locking settings by domain and the remaining\noptions under general for a given object.\n\nEditor Plugins\n--------------\n\nFor tighter client-side integration, external editor has a plugin system\nthat allows it to interact directly with supported applications.\n\nOn Windows this generally means using COM to invoke the application, open\nthe content file and wait for the user to save and close the file. Because\neach application has different remote scripting capabilities and APIs,\neditor specific plugins must be written tailored to each supported\napplication and platform.\n\nThis system allows external editor to efficiently connect to running\napplications without relaunching them and therefore fully support MDI\nenvironments. The following applications currently have plugin support::\n\n    Application       Platform    Plugin Module Name(s)\n    ===================================================\n    HomeSite          Windows     homesite5, homesite\n    Dreamweaver       Windows     dreamweaver\t\n    Photoshop         Windows     photoshp, photoshop\n    MS Word           Windows     winword, word\n    MS Excel          Windows     excel\n    MS Powerpoint     Windows     powerpnt, powerpoint\n\nExternal editor will attempt to load a plugin for any application before\nusing the general editor control method. It does this by matching the\nname of the application executable file (sans extension) in the editor\ncommand line with the available plugins.\n\nBecause plugins do not require the path of the editor application to work,\nyou can simply specify the plugin module name for your editor in the\nconfiguration file if desired. For example, to specify Photoshop for all\nimage files, use add the following section to your config file\n(ZopeEdit.ini on Windows)::\n\n    [content-type:image/*]\n    editor=photoshop\n\nThis is only a shortcut and specifying the full application path will\nstill use the plugin where possible.\n\nPlugin Notes\n------------\n\nPhotoshop\n    Photoshop's COM API is quite limited, and external editor cannot detect\n    that you have closed a file until you exit the entire application (it\n    can still detect saves). Therefore you may want to turn off DAV locking\n    (use_locks=0) or borrow locks (always_borrow_locks=1) when using it.\n\nDreamweaver\n    External editor cannot detect when you have finished editing a single\n    file. Objects edited with Dreamweaver will remain locked on the server\n    until you exit the application. As with Photoshop above, you may want\n    to turn off locking for Dreamweaver.\n\nIf your favorite editor needs a plugin because the general support is\nnot good enough, please let me know. Keep in mind that I must be able to\nrun a copy of the application in order to develop a plugin for it. So,\nunless the application is free, or a full demo is available for download\nI won't be able to help much. Plugins are not difficult to write, and I\nencourage you to write one for your favorite editor, start by reading\none of the existing ones. I am happy to include third-party plugins with\nthe distribution.\n\nPermissions\n-----------\n\nExternal editing is governed by the permission \"Use external editor\".\nUsers with this permission can launch external editor from editable\nobjects. In order to save changes, users will need additional permissions\nappropriate for the objects they are editing.\n\nIf users wish to use the built-in locking support, they must have the\n\"WebDAV access\", \"WebDAV Lock items\" and \"WebDAV Unlock items\" permissions\nfor the objects they are editing.\n\nIf these permissions are not set in Zope, then the helper application will\nreceive unauthorized errors from Zope which it will present to the user.\n\nIntegrating with External Editor\n--------------------------------\n\nThe external editor product in zope installs a globally available object\nthat can format objects accessible through FTP/DAV for use by the helper\napplication. You can take advantage of this functionality easily in your\nown content management applications.\n\nSay you have an FTP editable object, \"document\", in a Zope folder named\n\"my_stuff\". The URL to view the object would be::\n\n  http://zopeserver/my_stuff/document\n\nThe URL to kick off the external editor on this document would be::\n\n  http://zopeserver/my_stuff/externalEdit_/document\n\nNow, this may look a bit odd to you if you are used to tacking views on to\nthe end of the URL. Because `externalEdit_` is required to work on Python\nScripts and Page Templates, which swallow the remaining path segments on\nthe URL following themselves, you must put the call to `externalEdit_`\n*directly before* the object to be edited. You could do this in ZPT using\nsome TAL in a Page Template like:\n\n.. code-block:: html\n\n    <a href='edit'\n       attributes='href\n       string:${here/aq_parent/absolute_url}/externalEdit_/${here/getId}'>\n       Edit Locally\n    </a>\n\nAs an alternative, you can also pass the path the object you want to edit\ndirectly to the `externalEdit_` object when you call its index_html method.\nIt can be called either directly by URL or from a python script.\n`externalEdit_` will return the proper response data for the object to edit.\nYou can invoke it via a URL::\n\n  http://zopeserver/externalEdit_?path=/my_stuff/document\n\nor via Python:\n\n.. code-block:: python\n\n    return context.externalEdit_.index_html(\n        context.REQUEST, context.RESPONSE, path='/my_stuff/document')\n\nWhen integrating External Editor with a CMS that already uses DAV\nlocks, it will, by default allow users to borrow locks made on the server\nafter displaying a confirmation dialog box. Although you can make this\nautomatic by specifying 'always_borrow_locks = 1' in the External Editor\nconfig file, it may be desireable to make this the default behavior when\nusing that server. To facilitate this, you can specify that locks\nshould be automatically borrowed in the URL (New in 0.7), i.e::\n\n  http://zopeserver/my_stuff/externalEdit_/document?borrow_lock=1\n\nExternal Editor also defines a global method that you can call to insert\npencil icon links for appropriate objects. The method automatically checks\nif the object supports external editing and whether the user has the \"Use\nexternal editor\" permission for that object. If both are true, it returns\nthe HTML code to insert the external editor icon link. Otherwise it returns\nan empty string.\n\nThe method is 'externalEditLink_(object)'. The object argument is the\nobject to create the link for if appropriate. Here is some example page\ntemplate code that inserts links to objects in the current folder and the\nexternal editor icon where appropriate:\n\n.. code-block:: html\n\n    <div tal:repeat=\"object here/objectValues\">\n      <a href=\"#\"\n         tal:attributes=\"href object/absolute_url\"\n         tal:content=\"object/title_or_id\">Object Title</a>\n      <span tal:replace=\"structure python:here.externalEditLink_(object)\" />\n    </div>\n\nConclusion\n----------\n\nI hope you enjoy using this software. If you have any comments, suggestions\nor would like to report a bug, send an email to the author:\n\nCasey Duncan\n\nChangelog\n=========\n\n4.0.1 (2024-09-16)\n------------------\n- Correction of the use of Pdata when editing content\n  (`#23 <https://github.com/zopefoundation/Products.ExternalEditor/issues/23>`_)\n\n4.0 (2023-07-04)\n----------------\n\n- Ensure an object's editable body is cast to bytes\n  (`#20 <https://github.com/zopefoundation/Products.ExternalEditor/issues/20>`_)\n\n- Add support for Python 3.11.\n\n- Drop support for Python 2.7, 3.5, 3.6.\n\n\n3.1.0 (2022-06-24)\n------------------\n\n- Add support for Python 3.9, 3.10.\n\n- Change package structure to move package code into a ``src`` subfolder.\n\n- Fix bug which prevented ZMI from rendering, when Products.ExternalEdit was\n  installed.\n  (`#18 <https://github.com/zopefoundation/Products.ExternalEditor/pull/18>`_)\n\n\n3.0.1 (2020-10-30)\n------------------\n\nBug fixes:\n\n- Add support for recent Python 3 versions [ale-rt]\n\n\n3.0 (2019-02-16)\n----------------\n\n- Fix zmi-patches for Zope 4.\n  [pbauer]\n\n- Drop support for Python 2.6.\n\n- Adapt tests to Zope 4.\n\n- Add needed dependencies in `setup.py`.\n\n- Prepare for Python 2 / 3 compatibility  [davilima6]\n\n\n2.0.3 (2017-07-17)\n------------------\n\n- Document Zope version compatibility  [dataflake]\n\n\n2.0.2 (2017-02-14)\n------------------\n\n- Fixed reflective XSS in findResult.\n  This applies PloneHotfix20170117.  [maurits]\n\n\n2.0.1 (2016-09-08)\n------------------\n\n- Quote variable in manage_tabs to avoid XSS.\n  From Products.PloneHotfix20160830.  [maurits]\n\n\n2.0.0 (2015-09-09)\n------------------\n\n- Moved code to https://github.com/zopefoundation/Products.ExternalEditor\n\n- Update dtml to Zope trunk.\n\n\n1.1.0 (2010-12-01)\n------------------\n\n- Added support for unaware mimetype browser - we now add the .zem extension no\n  matter what the user-agent\n\n- Modified the cache's parameters - special case for MSIE\n\n- Corrected and added tests\n\n- Moved the sources of the client to another package : collective.zopeedit\n\n\n1.0 (2010-07-01)\n----------------\n\n- Update manage_main, manage_tabs, and findResult monkey patches to include\n  fixes from Zope 2.12.\n\n\n1.0a2 (2009-11-13)\n------------------\n\n- Removed imports from Globals.\n\n- Purged old Zope 2 Interface interfaces for Zope 2.12 compatibility.\n\n\n1.0a1 (2008-03-05)\n------------------\n\n- Updated package metadata to be usable as a package.\n\n\n01/03/2007 - 0.9.3\n------------------\n\n- Fixed issue with 'manage_FTPget' overriding the 'Content-Type'\n  header.\n\n- Only run ExpandEnvironmentStrings on win32 systems.\n\n\n9/14/2006 - 0.9.2\n-----------------\n\n- Added 'skip_data' option to make External Editor send out only\n  the metadata part and skip appending data to the 'body'.\n\n- Add a simple callback registry that can be used to add extra\n  metadata headers or set special response headers when a file is\n  edited through External Editor.\n\n- Use rfc822.Message for parsing the metadata of the file being\n  edited.\n\n- Don't emit a warning about deprecated 'methods' in Zope >= 2.10.\n\n- Fixed acquisition issue in manage_main.dtml to sync up with the\n  same fix applied to Zope.\n\n\n6/23/2005 - 0.9.1\n-----------------\n\n- Older pyc files for plugins were included in the 0.9 release.\n  This version has the most up to date plugins.\n\n\n6/20/2005 - 0.9\n---------------\n\n- When using the Excel plugin, errors were seen by users like\n  \"TypeError: This object does not support enumeration\".  We now\n  make the user deal with these.\n\n- When using the Excel plugin, errors were intermittently raised to the\n  user in the form \"Fatal error: <unknown>.Path\" and the user could\n  subsequently not save the document back to Zope because the\n  external editor process had quit.\n\n- Changes to documents intermittently may not have been saved back to Zope\n  when using any plugin that involved COM (Word, Excel, Powerpoint, etc).\n\n- If Word was exited before a user actively saved, if there were\n  outstanding changes in the document being edited, those changes\n  would not be saved to the server despite the user answering\n  \"yes\" to the \"do you want to save before you exit\" dialog\n  presented by Word.\n\n- The \"title\" attribute of the object being externally edited is\n  now available within the set of headers returned by EE to the\n  zopeedit client.\n\n- Detecting whether the client has External Editor installed from\n  within IE using JavaScript or VBScript is now possible, assuming\n  that the client software is installed via the InnoSetup\n  installer.  See \"win32/ocx.txt\" for more info.\n\n- External Editor now compatible with objects that return a\n  \"filestream iterator\" in Zope 2.7.1+. (if upgrading: this fix\n  does not require an update to EE client, just the EE Zope\n  product).\n\n- Properly escape hyphens in man page. Thanks to Federico Sevilla III.\n\n- Check if the editor was launched before locking the file in Zope. This\n  prevents errors if the editor is closed before the lock request\n  completes.\n\n- Do not ask the user what editor to use on Posix platforms. Instead just\n  tell the user to edit the config file. The askstring()\n  function does not work with a hidden root Tk window in Python 2.3.4.\n  Thanks to Christopher Mann.\n\n\n7/13/04 - 0.8\n-------------\n\n- Add external editor icon to ZMI breadcrumbs for editable objects.\n\n- Compiled windows helper app binary using Python 2.3.4, Pythonwin build\n  163 and py2exe 0.5.\n\n- Add Dreamweaver plugin contributed by Manuel Aristarann. Thanks also\n  to Anton Stonor.\n\n- Add ZMI support for Zope 2.7's ordered folder objects.\n\n- Fix bug detecting basic auth info from older versions of CookieCrumber.\n  Thanks to David D. Smith and Federico Sevilla III.\n\n- Workaround IE browser error when running over SSL. Thanks to\n  Marc-Aurele Darche.\n\n- Add \".zem\" file extension support for MacOS X (especially Mac IE),\n  to ease helper app integration where MIME support is lacking. Thanks\n  to Zac Bir.\n\n- Added \"long_file_name\" and \"file_name_separator\" config options.\n\n- Fixed bug which happened under Win32 when editing an Excel file\n  using the Excel plugin where the symptom was a \"Call was\n  rejected by callee\" COM error. Thanks to Chris McDonough.\n\n\n4/23/04 - 0.7.2\n---------------\n\n- Change default configuration to use .txt extension for text/plain only.\n  Add extensions for css and javascript files.\n\n- Fixed packaging bug in Windows binary which disabled several plugins.\n  This fixes \"Editor did not launch properly\" errors for MSOffice\n  among others.\n\n- Fixed a bug where very short editing sessions where no changes were\n  made could make EE think the editor never launched. Thanks to Maik Ihde.\n\n11/7/03 - 0.7.1\n---------------\n\n- Fix encoding bug in windows binary. Thanks to Chris McDonough.\n\n- Added tip for configuring IE to save files over SSL. Thanks to\n  Jonah Bossewitch.\n\n\n4/1/03 - 0.7\n------------\n\n- Added working distutils setup for Unix.\n\n- You can now specify from the server that the helper app should\n  borrow a lock by passing borrow_lock=1 via the request, thus\n  suppressing the dialog box which appears by default. Thanks\n  to Shane Hathaway.\n\n- Improved open file check in Word and Powerpoint plugins\n  thanks to Yura Petrov.\n\n- Added plugins for Microsoft Word, Excel and Powerpoint.\n\n- Added the man page from the Debian distro. Thanks go out to\n  Federico Sevilla III and Andreas Tille\n\n\n11/02/02 - 0.6\n--------------\n\n- Built Windows helper app using Python 2.2.2 and PythonWin 148.\n\n- The `externalEdit_` object now accepts a path argument to the object to\n  edit, allowing URLs like: `http://zope/externalEdit_?path=/some/object.`\n  This allows external editor to play better with applications making use\n  of traversal magic of their own. Thanks to Tres Seaver.\n\n- Fixed NameError bug in unlock retry code. Thanks to Federico Sevilla III.\n\n- Added a workaround for non-compliant SSL servers. The software now\n  silently ignores \"EOF occurred in violation of protocol\" errors coming\n  from httplib. Thanks to Christopher Deckard.\n\n- Removed stderr writes to cure \"Invalid File Descriptor\" errors on\n  Windows. Thanks to Martijn Peters.\n\n- Added Photoshop plugin (win32)\n\n- Added HomeSite plugin (win32)\n\n- Added win32 editor plugin support for the helper application.\n\n\n8/19/02 - 0.5\n-------------\n\n- Added patch for Zope find template so that you can use external editor\n  directly from find results in the ZMI. Thanks to Jim Washington.\n\n- Factored out external editor link generator. Product now registers\n  a global method `externalEditLink_` which can be called to generate\n  the external editor icon link for any object.\n\n- External editing is now governed by the \"Use external editor\" permission\n  to allow non-managers to use it. Users must also have the permissions to\n  edit/modify the objects they edit, plus do WebDAV locking if desired.\n  Thanks to Reineke and others.\n\n- Unix editor command line parsing is much more robust now and properly\n  handles quoted arguments. You can also specify the \"$1\" placeholder in the\n  editor command to denote where the content file name is inserted. If\n  omitted it is appended to the end of the command line. \"%1\" continues to\n  work similarly for Windows. Thanks to Marc St-Jean.\n\n- Fixed bug editing large (chunked) files and images. External editor now\n  streams their data properly to the client. Thanks to all the users who\n  reported various symptoms of this bug.\n\n- Fixed bug editing objects inside a Squishdot site. Thanks to Kevin Salt.\n\n- Added the capability to borrow exising DAV locks. This allows external\n  editor to play well with other systems using locks, such as CMFStaging. A\n  new configuration flag, always_borrow_locks can be set to suppress the\n  borrow lock warning dialog when editing.\n\n- Fixed auth bug when product was used with mysqlUserFolder. Thanks to\n  ViNiL.\n\n\n6/30/02 - 0.4.2\n---------------\n\n- Added SSL support to Windows binary package. Thanks to Federico\n  Sevilla III\n\n\n6/29/02 - 0.4.1\n---------------\n\n- Fixed dangling dav lock bug on fatal errors. Thanks to Marc St-Jean.\n\n- Fixed content_type bug, now checks if it is callable. Thanks to Arnaud\n  Bienvenu.\n\n- Fixed bug with editing binary data on Windows. Thanks to Eric Kamm.\n\n- Fixed bug setting the editor on Posix platforms.\n\n\n6/24/02 - 0.4\n-------------\n\n- Added --version command line argument\n\n- Made manage_FTPget the default source for the editable content, instead\n  of document_src which was broken for CMF Wiki Pages.\n\n- Fixed Windows \"body_file\" bug.\n\n- Added binary build support for Windows using py2exe and Inno setup.\n\n- Fixed Windows config file locator. It now looks in the program directory\n  and then the user's home directory (if specified)\n\n- Fixed bug in Windows registry editor lookup.\n\n\n6/16/02 - 0.3\n-------------\n\n- Improved behavior when saving after lock attempts fail.\n\n- Now works on Windows (applause) using Pythonwin. Much overall\n  refactoring to abstract process control. Thanks to Oliver Deckmyn,\n  Gabriel Genellina and Arno Gross for testing, patches and suggestions.\n\n- Added \"temp_dir\" configuration option for specifying a different\n  temp file directory then the OS default. Also further improved\n  temp file name generation.\n\n- Added support for domain specific configuration options.\n\n- Fixed trailing newline bug in encoded auth data coming from\n  CookieCrumbler. Thanks to Harald Koschinski.\n\n- You can now pass command line arguments to the editor in the config file,\n  or wrap the editor in an xterm without using a shell script.\n\n- Rewrote \"Editor did not launch\" error message so it makes more sense.\n\n- Fixed https detection bug. External editor is now tested and working with\n  https. Many thanks to Hans-Dieter Stich and Martin Groenemeyer for their\n  assistance and ideas.\n\n- Made it possible to edit objects that are methods of ZClasses. Thanks to\n  Jim Washington\n\n- Refactored link generation code in manage_main so that it uses\n  the parent's absolute_url rather than URL1. Thanks to\n  Jim Washington\n\n- Removed implicit save in Configuration class destructor\n\n- Added caching headers to prevent client-side caching of edit data.\n  Thanks to Gabriel Genellina for pointing this out.\n\n- Added improved support for editing CMF documents\n\n- Eliminated spurious \"Editor did not launch\" errors on short sessions\n  or when other errors occurred.\n\n5/16/02 - 0.2\n-------------\n\n- Fixed product uninstallation bug\n\n5/15/02 - 0.1\n-------------\n\n- Initial release\n",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "Zope External Editor",
    "version": "4.0.1",
    "project_urls": {
        "Homepage": "https://github.com/zopefoundation/Products.ExternalEditor",
        "Issue Tracker": "https://github.com/zopefoundation/Products.ExternalEditor/issues",
        "Sources": "https://github.com/zopefoundation/Products.ExternalEditor"
    },
    "split_keywords": [
        "zope",
        "external",
        "editor",
        "webdav"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0d19eb454eee9809addac8429bfeeb786bca68eda6d82e759ae13d86b8bbba31",
                "md5": "55b0d2f4fd0fe9f2bc0adc2e77b5e9d1",
                "sha256": "9450e6f63747874db6d126905c8eaca9e8000535c78cb29ba8b00731099d8112"
            },
            "downloads": -1,
            "filename": "Products.ExternalEditor-4.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "55b0d2f4fd0fe9f2bc0adc2e77b5e9d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 34795,
            "upload_time": "2024-09-16T17:35:51",
            "upload_time_iso_8601": "2024-09-16T17:35:51.032490Z",
            "url": "https://files.pythonhosted.org/packages/0d/19/eb454eee9809addac8429bfeeb786bca68eda6d82e759ae13d86b8bbba31/Products.ExternalEditor-4.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ee0c0aaa02a1b22a1b3de59287d8c6232b55f6179e62e02bfb4ce7818d94980",
                "md5": "8d8d2d42ea4a79ce076473187e4ad3a2",
                "sha256": "19407154fd96a658f6407d030b990d4068ee10a31920ee98fc3e747f95106e67"
            },
            "downloads": -1,
            "filename": "products_externaleditor-4.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8d8d2d42ea4a79ce076473187e4ad3a2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 47694,
            "upload_time": "2024-09-16T17:35:53",
            "upload_time_iso_8601": "2024-09-16T17:35:53.291420Z",
            "url": "https://files.pythonhosted.org/packages/5e/e0/c0aaa02a1b22a1b3de59287d8c6232b55f6179e62e02bfb4ce7818d94980/products_externaleditor-4.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-16 17:35:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zopefoundation",
    "github_project": "Products.ExternalEditor",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "products.externaleditor"
}
        
Elapsed time: 9.51925s