Hello,

I'm trying to integrate FCKeditor's file management and upload
features into a Pylons app. FCKeditor ships with a WSGI application to
handle the server side of these features. I tried to run that
application under mod_wsgi and it works fine. Now I'd like to
integrate that within my Pylons app to take advantage of my
authentication mechanism, so that only registered users can upload
files.

I'm trying to apply the recipe from
http://wiki.pylonshq.com/display/pylonsdocs/Web+Server+Gateway+Interface+Support#running-a-wsgi-application-from-within-a-controller

Unfortunately it works only for the file management features, not for
the upload. After digging into FCKeditor's Python code I figured out
that the WSGI app doesn't get all the data it needs from from the WSGI
environment. I dumped the WSGI environment when running the app under
mod_wsgi directly and within Pylons and there happen to be a lot of
differences between the two. I'm wondering if there would be a way to
get access to the "original" WSGI environment, before it gets modified
by Pylons, so that it would be compatible with what a "regular" WSGI
application expect.

Another minor issue I've got is that the HTTP Content-Type header
(text/xml in this case) is not sent properly when calling the WSGI app
from Pylons. That one is not very critical as I can set it with the
controller action which calls the WSGI app.

Any help would be much appreciated, as I'm beginning to pull my hair on this.
Thanks,
Alex

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to