Re: Streaming HttpResponse revisted. Any core devs, please take a look if you can :)

2012-09-29 Thread Anssi Kääriäinen
On 29 syys, 07:45, Tai Lee wrote: > Docs have been added (patch should be complete now) and pull request has > been opened, at Anssi's request. > > https://groups.google.com/d/topic/django-developers/RrNPfuJxnlM/discu... To me it seems the use of streaming responses in static file serving will ca

Re: Django Oracle backend vs. numbers

2012-09-29 Thread Shai Berger
Hi, Sorry about the delay in writing this -- it was in my mind, but I forgot to let it out... On Sunday 23 September 2012, Anssi Kääriäinen wrote: > On 22 syys, 23:34, Shai Berger wrote: > > > > [...] I will also include the extra setting in > > the "options" dictionary (choosing if expressions

Re: Django Oracle backend vs. numbers

2012-09-29 Thread Anssi Kääriäinen
On 29 syys, 21:51, Shai Berger wrote: > On Sunday 23 September 2012, Anssi Kääriäinen wrote:> On 22 syys, 23:34, Shai > Berger wrote: > > There isn't much time to do feature additions. It is possible to get > > the feature into 1.5, but you should not expect it to happen. As for > > the feature

Need help with writing a Pontoon hook for Django apps

2012-09-29 Thread Ratnadeep Debnath
Hi all, I have lately worked on a hook to enable a Django website to use Mozilla's Pontoon service. https://github.com/rtnpro/django-pontoon-hook What this app tries to achieve is to wrap marked up strings anywhere in a Django project's source code (templates, python files: forms, models, view

Re: Django Oracle backend vs. numbers

2012-09-29 Thread Shai Berger
Hi, and thanks for your attention. I know you must be extremely busy with other issues of the feature freeze. I just want to make some things clear: > Based on the above I am -1 on having a flag that interprets NUMBER > fields as floats. There is already an Oracle data type to use for > this. >

Re: Django Oracle backend vs. numbers

2012-09-29 Thread Anssi Kääriäinen
On 29 syys, 23:25, Anssi Kääriäinen wrote: > I tested the pull request 393 (the speedup to ._rowfactory). Above > test case, and the decimal case runs in around one second, the float > case in 0.1 seconds. So, there is a regressions for decimals. On the > other hand floats are way faster. Will in

Re: Django Oracle backend vs. numbers

2012-09-29 Thread Anssi Kääriäinen
On 30 syys, 01:24, Shai Berger wrote: > > The problem seems to be that on Oracle, 1.1 is NUMERIC, and that is > > something which _is_ a decimal in Python. We should not change that. > > > To me it seems the answer is to use to_binary_float/to_binary_double > > in raw SQL queries. For example: > >

Re: Django Oracle backend vs. numbers

2012-09-29 Thread Shai Berger
On Sunday 30 September 2012, Anssi Kääriäinen wrote: > > I walked into this one... But, sorry, I will not have time for this > pull request for 1.5. > Ok, I can't say you didn't warn me this would be the case. Thanks a lot for the time you did spend on it, Shai. -- You received this message b

Re: Django Oracle backend vs. numbers

2012-09-29 Thread Shai Berger
On Sunday 30 September 2012, Anssi Kääriäinen wrote: > > cur.execute("select case when dbms_random.random > 0.5 then 0.1 > else 0 end from testtable") > > Guess what is the type of the column? It is both Decimal and int, > alternating based on the random result. > > This seems like surprisin