Ticket #575 (closed New Feature: fixed)
Python quick upload
| Reported by: | reingart | Owned by: | alfonsoml |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
| Component: | Server : Python | Version: | FCKeditor 2.4.2 |
| Keywords: | Cc: |
Description
As said in mailing list, I submit this patch with the python quick upload.
It based on upload.php, but rewritten in python as a WSGI app to be fully compatible with the latest python frameworks and servers, and faster than a standard cgi script.
It can run:
- On any WSGI compilant server,
- Over apache + mod_python, using modpython_gateway.py to expose wsgi from apache, optionally with a modified handler (wsgihandler.py) to get "php-like" functionality* (both files included),
- Over apache + mod_wsgi, fastcgi, etc. (not tested)
- As a standalone cgi python script, usigng cgi2wsgi.py wrapper (included)
The file config.py hold the general configuration (like config.php does), and care must be taken of implementation details in .htaccess (or whatever configuration file you server support)
"Php-like"* functionality is not necessary but it facilitates the deployment (no changes in fckconfig.js), and it makes cgi and wsgi operating modes behaving the same way. It consists on being able to:
- use script filename in urls ( like .../upload/py/upload.py) instead of simply the script directory (.../upload/py/)
- serve files from the same or child directories (if any)
- do automatic reloading of source files (if not, apache server must be restarted manually to apply source code changes)
- not need to specify PythonPath (if wsighandler.py and modpython_gateway.py are already inside PythonPath, that is in /usr/local/lib/python2.4/site-packages in debian, c:/python2.5/lib/site-packages in windows, or similar )
Attachments
Change History
Note: See
TracTickets for help on using
tickets.