Re: New django.shortcuts methods: get_object/list_or_404

2009-06-24 Thread Russell Keith-Magee
On Wed, Jun 24, 2009 at 10:58 PM, Chuck Harmston wrote: > Hello everyone! > I recently posted a patch that adds two methods to django.shortcuts: > get_list_or_none() and get_object_or_none(). These function identically to > their get _x_or_404 cousins, with one exception: they return empty QuerySe

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 --~--~-~--~~---

New django.shortcuts methods: get_object/list_or_404

2009-06-24 Thread Chuck Harmston
Hello everyone! I recently posted a patch that adds two methods to django.shortcuts: get_list_or_none() and get_object_or_none(). These function identically to their get _x_or_404 cousins, with one exception: they return empty QuerySets rather than raising a 404. I've used get_list_or_none() severa

Re: [ANN] Database Backend for SQL Anywhere available

2009-06-24 Thread Russell Keith-Magee
On Tue, Jun 23, 2009 at 10:37 PM, Nathan Auch [Sybase] wrote: > > >> Open a ticket requesting this so the idea isn't forgotten. If you can >> work up a patch that contains some draft text, feel free to push the >> ticket onto the v1.1 milestone. >> >> If you're going to write some draft text, keep