Re: ServletContext parallel in Django/wsgi app?

2009-06-24 Thread qwcode
sorry to intrude. My question has come up twice in the last few months with no reply. I'm asking if there's a parallel to Java's ServletContext in Django? btw, Cherrypy seems to have a parallel with it's Application object. I'll try rephrase on the user list. --~--~-~--~~---

Re: ServletContext parallel in Django/wsgi app?

2009-06-24 Thread Andy McKay
On 24-Jun-09, at 3:47 PM, qwcode wrote: > I didn't get an answer to the post below yet on the users group, maybe > someone here can reply. Just because someone doesn't reply to users, isn't a reason to post on django-dev. This list is not about the development of django itself. Please be pati

ServletContext parallel in Django/wsgi app?

2009-06-24 Thread qwcode
Hello: I didn't get an answer to the post below yet on the users group, maybe someone here can reply. http://groups.google.com/group/django-users/browse_thread/thread/360d9b1903614a0b/68f7f70ab169032e?lnk=gst&q=application+scope#68f7f70ab169032e thanks in advance --~--~-~--~~---

Re: django <--> wsgi

2009-04-06 Thread Graham Dumpleton
On Apr 7, 6:47 am, Travis Parker wrote: > A first stab at the translators is up on github > athttp://github.com/teepark/django/tree/50b1e97cec14221a846a6338c40f585... > > I've done django views -> wsgi apps, wsgi apps -> django views, and > django middleware -> wsgi middleware. i still think t

Re: django <--> wsgi

2009-04-06 Thread Travis Parker
A first stab at the translators is up on github at http://github.com/teepark/django/tree/50b1e97cec14221a846a6338c40f585e40b76960/django/wsgi I've done django views -> wsgi apps, wsgi apps -> django views, and django middleware -> wsgi middleware. i still think that going from wsgi

Re: django <--> wsgi

2009-03-31 Thread Travis Parker
On Tue, Mar 31, 2009 at 1:12 PM, Waylan Limberg wrote: > > On Tue, Mar 31, 2009 at 2:21 PM, Travis Parker > wrote: > > > [snip] > > > > 2. settings (views -> apps, dj middleware -> wsgi middleware) > > i don't have nearly as nice a proposal for dealing with this. there > > are a lot of django vi

Re: django <--> wsgi

2009-03-31 Thread Waylan Limberg
On Tue, Mar 31, 2009 at 2:21 PM, Travis Parker wrote: > [snip] > > 2. settings (views -> apps, dj middleware -> wsgi middleware) > i don't have nearly as nice a proposal for dealing with this. there > are a lot of django views and middleware out there that would be nice > to have usable as wsgi c

Re: django <--> wsgi

2009-03-31 Thread Alex Gaynor
On Tue, Mar 31, 2009 at 3:22 PM, Travis Parker wrote: > > On Mar 31, 12:04 pm, Alex Gaynor wrote: > > On Tue, Mar 31, 2009 at 2:21 PM, Travis Parker >wrote: > > > > > > > > > > > > > hello django devs, > > > > > It was nice to meet a few of you at pycon. I talked briefly with jacob > > > about a

Re: django <--> wsgi

2009-03-31 Thread Travis Parker
On Mar 31, 12:04 pm, Alex Gaynor wrote: > On Tue, Mar 31, 2009 at 2:21 PM, Travis Parker wrote: > > > > > > > hello django devs, > > > It was nice to meet a few of you at pycon. I talked briefly with jacob > > about a plan to improve django's ability to play nice with the wsgi > > community with

Re: django <--> wsgi

2009-03-31 Thread Alex Gaynor
On Tue, Mar 31, 2009 at 2:21 PM, Travis Parker wrote: > > hello django devs, > > It was nice to meet a few of you at pycon. I talked briefly with jacob > about a plan to improve django's ability to play nice with the wsgi > community with 2-way conversions between django views and wsgi apps, > and

django <--> wsgi

2009-03-31 Thread Travis Parker
hello django devs, It was nice to meet a few of you at pycon. I talked briefly with jacob about a plan to improve django's ability to play nice with the wsgi community with 2-way conversions between django views and wsgi apps, and between django middleware and wsgi middleware. I have started loo

Re: Django WSGI bug with twill?

2007-12-04 Thread Kumar McMillan
On Dec 3, 2007 4:34 PM, akaihola <[EMAIL PROTECTED]> wrote: > > I tried old versions of twill, and it seemed to work correctly in > 0.8.4, but version 0.8.5 introduced this duplicating behavior. I can > see that the application result reading mechanism was heavily modified > at that point. Hello.

Re: Django WSGI bug with twill?

2007-12-04 Thread akaihola
Titus Brown, the author of twill, fixed this issue in the latest snapshot. It's available from http://darcs.idyll.org/~t/projects/twill-latest.tar.gz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers

Re: Django WSGI bug with twill?

2007-12-03 Thread akaihola
I tried old versions of twill, and it seemed to work correctly in 0.8.4, but version 0.8.5 introduced this duplicating behavior. I can see that the application result reading mechanism was heavily modified at that point. Here are relevant snippets of the source for your convenience. twill 0.8.4:

Re: Django WSGI bug with twill?

2007-12-03 Thread akaihola
(twill 0.9b1 is of course as close as saying "easy_install twill" if you have setuptools installed) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djang

Re: Django WSGI bug with twill?

2007-12-03 Thread akaihola
Here is a simple test case. Place twilltest.py and urls.py in a directory and run "PYTHONPATH=. python twilltest.py". Make sure Django and twill exist in your PYTHONPATH. --- twilltest.py - #!/usr/bin/python from django.conf import settings settings.configure(ROOT_URLCON

Django WSGI bug with twill?

2007-12-03 Thread akaihola
I'm desperately trying to get twill to work together with Django using twill's WSGI intercepting. The problem is, I always get the content of the page concatenated twice together. I've debugged and narrowed down the problem so it must be either in twill.wsgi_intercept.wsgi_fake_socket.makefile()