[modwsgi] Re: wsgi info()

2008-09-23 Thread Manuzhai
Heh, I just made this info.wsgi up yesterday: def application(env, respond): respond('200 OK', [('Content-Type', 'text/plain')]) for k, v in sorted(env.iteritems()): yield '%s: %r\n' % (k, v) I've wanted this before, and since I always used to keep an info.php lying around, as

[modwsgi] Re: wsgi info()

2008-09-22 Thread Graham Dumpleton
2008/9/23 Brian Smith [EMAIL PROTECTED]: Graham Dumpleton wrote: 2008/9/20 Carl Nobile [EMAIL PROTECTED]: If this existed, you would still need to have a WSGI script file that invokes it. The problem though is that core mod_wsgi is C code only and want to keep it that way. Ie., don't want

[modwsgi] Re: wsgi info()

2008-09-19 Thread Graham Dumpleton
2008/9/20 Carl Nobile [EMAIL PROTECTED]: mod_wsgi is not a framework, so don't expect it to generate web pages for you it is a way of using WSGI (Web Service Gateway Interface) with apache only, and is very light weight compared to other alternatives. You could get what you want from

[modwsgi] Re: wsgi info()

2008-09-19 Thread Carl Nobile
Graham, I like your approach to this it will keep things very decoupled and would still allow a developer to generate stats on what is going on inside mod_wsgi. It would be cool to start seeing its use in something like Djangos admin. The assumption here is that you would provide a Python API into