Ticket #2058 (new Bug)

Opened 2 years ago

Last modified 2 years ago

Tweak fckeditor.py to support WSGI

Reported by: whit537 Owned by:
Priority: Normal Milestone:
Component: Server : Python Version: SVN (FCKeditor)
Keywords: Confirmed HasPatch Cc:

Description

The fckeditor.py module assumes a CGI environment by hardwiring os.environ into FCKeditor.IsCompatible. The attached patch adds an Environ attribute to the class, which, if set after instantiation but before Create is called, will be used instead of os.environ. This allows the caller to use the module in a long running process, for example, by substituting a WSGI environ for the CGI environ.

Attachments

wsgi.patch Download (0.8 KB) - added by whit537 2 years ago.

Change History

Changed 2 years ago by whit537

Changed 2 years ago by w.olchawa

  • keywords Confirmed HasPatch added
  • version set to SVN
Note: See TracTickets for help on using tickets.