Re: Streaming Uploads Discussion

2008-04-05 Thread Ivan Sagalaev
Mike Axiak wrote: > I didn't want to use the extra setting either, but I finally caved in > after working with it (and discussing with Ivan). I will certainly > explore any other possibilities. My original reason for settings was that a single upload handler can't possibly know the semantics of

Re: Streaming Uploads Discussion

2008-04-05 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > Then those people deserve to be beaten heavily about the head and > shoulders. S3 is NOT a reliable upload endpoint. They (Amazon) say > there'll be approximately a 1% failure rate for attempted uploads. As 37 > signals have noted in the past (they use it for their whit

Re: Streaming Uploads Discussion

2008-04-05 Thread Ivan Sagalaev
Ivan Sagalaev wrote: > Nobody stops a developer from doing both things in parallel: storing on > disk and streaming to S3. > they will gain heavily from not doing writes and > reads of the whole file on local disk. Looks like I'm contradicting myself a bit here :-). But it's not the point act

What is considered the best platform to run django on using Linode

2008-04-05 Thread keith
I was thinking of using Lighttp on one of the 760 servers. Is there a "best OS" to make setup go smoothly. Any tips or references are very welcome. I need to develop then move to production on same server. Thanks in advance for any advice. Keith --~--~-~--~~~--

Re: What is considered the best platform to run django on using Linode

2008-04-05 Thread mrts
Please ask this question on django-users. This group is for discussions on Django internals only. [EMAIL PROTECTED] wrote: > I was thinking of using Lighttp on one of the 760 servers. Is there a "best > OS" to make setup go smoothly. > > Any tips or references are very welcome. I need to develop

Re: Threading improvements

2008-04-05 Thread mrts
This post is *horribly* long. I tried to make it as structured and accessible as I possibly could. Holding myself back to say the forbidden words -- a ikiw egap dluow ekam siht erom elbadaer *chuckle*. Concurrency at DB level === Background -- The general threading c

Re: PAM Auth backend for Django

2008-04-05 Thread ludvig.ericson
On Mar 26, 5:38 pm, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote: > * Improving the existing bindings: The existing bindings > (http://www.pangalactic.org/PyPAM/) are bug-ridden with lot of memory leaks, > hasn't been tested with python2.5 and don't expose the full C API. > This part of the projec

Re: Refactoring the documentation

2008-04-05 Thread AmanKow
On Apr 2, 12:26 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > def get_object_from_cache(self, ...): > """ > Get an object from the cache and return it. > > ... hmm... the doc string equivalent of the infamous c inanity: i++ // increment i I have seen a bit of that in the c

Re: Refactoring the documentation

2008-04-05 Thread AmanKow
On Apr 4, 11:06 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > (docstrings occupy memory too, so if you're *only* writing for folks > reading the source, use comments.) And of course, a production environment can always optimize the doc strings out. --~--~-~--~~~---~

Re: django.contrib.sessions problems

2008-04-05 Thread mrts
> Why not write a "secure" session backend? (You would presumably > also need to require signed cookies for the session.) The cookies are already signed. Session data + settings.SECRET_KEY is md5-digested and tampering raises an exception. So in that sense the sessions are already secure. Note th

RE: Database concurency (was: Threading improvements)

2008-04-05 Thread Craig Ogg
As has been said by others, I think this thread is no longer about threads or even interprocess synchronization. For web apps, the norm is multiple web servers talking to a single database. This should rule out any form of synchronization mechanism outside of the database. In fact, the whole po

Re: django.contrib.sessions problems

2008-04-05 Thread Mike Axiak
Hey mrts, On Apr 5, 2:31 pm, mrts <[EMAIL PROTECTED]> wrote: > The cookies are already signed. Session data + > settings.SECRET_KEY is md5-digested and tampering raises an > exception. So in that sense the sessions are already secure. Sorry, I didn't mean "secure" in the sense that someone can al

Re: Threading improvements

2008-04-05 Thread Malcolm Tredinnick
Lots of interesting stuff here. Craig has already responded in some details and I mostly agree with what he's saying. I've addressed a few more points with specifics to Django's implementation, so there's some duplicate ground covered, but in a way that is more relevant if you know the code. On S

Re: django.contrib.sessions problems

2008-04-05 Thread Malcolm Tredinnick
On Sat, 2008-04-05 at 11:31 -0700, mrts wrote: [...] > Once Python 2.3/4 support will be dropped, we can start using > higher-grade hash algorithms from 2.5 hashlib throughout. But > this is offtopic for current discussion and will not happen in > the foreseeable future. It will be a while beyon