Re: Backwards incompatibility: obj.has_key(x) -> x in obj

2007-08-29 Thread Gary Wilson
Malcolm Tredinnick wrote: > On Mon, 2007-07-16 at 02:19 -0500, Jeremy Dunck wrote: >> I just ran into a subtle backwards incompatibility introduced in [5091]. >> >> I've been pushing an instance of xml.sax.xmlreader.AttributesImpl onto >> my Context. AttributesImpl tries to implement a dictionary

Re: mod_python documentation issues

2007-08-29 Thread Jeremy Dunck
On 8/29/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > Seems I can no longer add to Django tickets as the system rejects me > saying I am trying to submit spam, so posting here instead. I posted for you, including you on ticket CC: http://code.djangoproject.com/ticket/5299 --~--~-~-

mod_python documentation issues

2007-08-29 Thread Graham Dumpleton
Seems I can no longer add to Django tickets as the system rejects me saying I am trying to submit spam, so posting here instead. In http://code.djangoproject.com/ticket/5280 the issue of some mistakes in latest changes to mod_python documentation have been made. In reviewing associated http://cod

Re: Backwards incompatibility: obj.has_key(x) -> x in obj

2007-08-29 Thread Jeremy Dunck
On 7/16/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: ... > > I'll go through that diff and revert the places that are likely to > affect something like this. I know Malcolm's busy with QS refactor, but I wanted to note, I've made this a ticket so it doesn't get lost: http://code.djangoprojec

Creating and using a project-specific database backend?

2007-08-29 Thread George Vilches
Folks, Now that the database backend refactoring has landed, and DB functionality is really easy to extend, how does everyone feel about the possibility of allowing people to specify their own database backends within their projects (i.e., without modifying the Django source tree in any way?)

Re: Possible contribution to help with non-fixture setup

2007-08-29 Thread Chris Heisel
Great... I'll work on cleaning it up a bit (it's kind of fugly right now) and circle back once it's ready... Thanks! Chris On 8/28/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 8/29/07, Chris H. <[EMAIL PROTECTED]> wrote: > > > > Sorry for spamming, wasn't sure if I should combine t

Re: TestCase contribution?

2007-08-29 Thread Chris Heisel
Russ, I submitted it as a ticket here: http://code.djangoproject.com/ticket/5296 Take a look at the patch I think I addressed the multiple content checks (by leveraging the assertContains) and though I didn't put it in the patch, I think it could easily do the same thing for templates and check

Re: FormSets cleaned_data -> cleaned_forms

2007-08-29 Thread Brian Rosner
On 2007-08-29 10:45:07 -0600, Brian Rosner <[EMAIL PROTECTED]> said: > > I am using the FormSet class found in newforms-admin for a site since > it needed functionality that it offers. The form that my users use > lets them upload up to five files and an associated description. I > have this

FormSets cleaned_data -> cleaned_forms

2007-08-29 Thread Brian Rosner
I am using the FormSet class found in newforms-admin for a site since it needed functionality that it offers. The form that my users use lets them upload up to five files and an associated description. I have this defined in its own model and use the following code to get it setup: FlightFi

Re: Time for a new release?

2007-08-29 Thread Amit Upadhyay
The problem we are discussing here is not really a django specific one. The concerns Adrian pointed out can be easily taken care of by using branches. In theory the generic documentation enhancement should be applicable to all releases, but we know its only really applicable to the previous release

Re: Django 500 error debugging causes QuerySets to evaluate

2007-08-29 Thread Marty Alchin
This sounds to me like another advantage to having database "modes" that are being discussed in other threads. Once the debugging view begins, it could switch the db connection into a non-committal mode, so the existing QuerySets don't actually touch anything. -Gul On 8/29/07, George Vilches <[E

Re: Django 500 error debugging causes QuerySets to evaluate

2007-08-29 Thread George Vilches
Jeremy Dunck wrote: > On 8/28/07, George Vilches <[EMAIL PROTECTED]> wrote: > ... >> Something seems very wrong about this situation, that debugging could >> cause another query to execute (especially an unintended query), but I >> don't know what the correct way to go about fixing or preventing i

Re: SERVER_NAME vs HTTP_HOST

2007-08-29 Thread Masida
Hi Siddharta, Assuming you're deploying on Apache with mod_python, have you tried setting ServerName in your httpd.conf to someting sensible? Ciao, - Matthias On Aug 29, 11:59 am, Siddhi <[EMAIL PROTECTED]> wrote: > Hi, > > I'm writing a django app that will be used in a LAN environment. The >

SERVER_NAME vs HTTP_HOST

2007-08-29 Thread Siddhi
Hi, I'm writing a django app that will be used in a LAN environment. The server typically does not have a domain name configured and is accessed via the IP address. In such a setup, I'm getting HTTP_HOST: 192.168.1.20:4334 SERVER_NAME: localhost The app uses the django.contrib.syndication modu

Re: Window.Location using django and javascript

2007-08-29 Thread Simon Greenhill
Please ask questions like this in the django-users mailing list. django-developers is for the development of Django. Thank you, Simon On Aug 29, 7:43 pm, dOS <[EMAIL PROTECTED]> wrote: > Im using a 2knob slider from blueshoes > I have the following code that prints out the url of the site > > {%

Window.Location using django and javascript

2007-08-29 Thread dOS
Im using a 2knob slider from blueshoes I have the following code that prints out the url of the site {% url full-filter old_origin,length=old_length,area=old_area,from_price=old_from_price,to_price=old_to_price,shipdate=ship_shipdate %} and I need to pass a price range in the url like this /sho