Fwd: Ticket 4747 (multi-db)

2007-09-20 Thread Ben Ford
Hi folks, I'm forwarding this for all of the people who have expressed an interest in multi-db over the last few days/weeks. Koen has made the fantastic effort of updating the branch from my changes ( to r5589) up to r6110. I've attached that patch to ticket 4747

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Chris Bennett
As an aside, is anyone talking about seriously using this for access control? We've established that using X-F-F is a bad idea for that, in fact, I'd say that even known REMOTE_ADDR based auth is a bad idea, so why does it matter whether it is "trustworthy"? Anyway - I use X-F-F for IP geolocatio

Re: changeset 6391

2007-09-20 Thread Russell Keith-Magee
On 9/21/07, Gary Wilson <[EMAIL PROTECTED]> wrote: > > I just wanted to see what others feel about 6391. I think the real issue here > is that Django currently has some deficiencies running multiple instances of > an application (and I plan on bringing them up as a separate thread on the > list),

Re: not ascii problem in forms with SELECT box

2007-09-20 Thread audial
Sorry for misprint, of course, it should be __str__() Do you know how could i sort the list for SELECT box? On 13 сент, 07:01, Chaiwat Suttipongsakul <[EMAIL PROTECTED]> wrote: > Please see my comment below... > > On Sep 13, 2007, at 2:46 AM, audial wrote: > > > > > > > Hello all! > > > latest v

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Leo Soto M.
On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > A quick Google search turns up that this is indeed easily configurable > for both Squid and mod_proxy and the defaults look sane. What are those defaults?. My google-foo is very low today, and I only arrived at the squid FAQ[1], which says

Re: changeset 6391

2007-09-20 Thread Joseph Kocherhans
On 9/20/07, Gary Wilson <[EMAIL PROTECTED]> wrote: > > So last night I checked in changeset 6391, and this morning it hit me that > this breaks things for anyone using the admin application at more than one URL > since the url tag cannot handle cases where multiple instances of an > application ar

changeset 6391

2007-09-20 Thread Gary Wilson
So last night I checked in changeset 6391, and this morning it hit me that this breaks things for anyone using the admin application at more than one URL since the url tag cannot handle cases where multiple instances of an application are being used. This may not be as big an issue for the curren

Re: buildbot: "out of space"

2007-09-20 Thread Joseph Heck
Thanks! Matt and I already know about the error - he's working on it, although I don't know the timescale. On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 9/20/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > > Now, should such problems reported on this list at all? Or is the mai

Re: django on jython (new version)?

2007-09-20 Thread Marty Alchin
On 9/20/07, Leo Soto M. <[EMAIL PROTECTED]> wrote: > Maybe I completely misunderstood you, but what would be the difference > with modjy ? I hadn't known about modjy! That looks excellent, so we should be able to reuse the existing WSGI handler, even in J2EE environme

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Deryck Hodge
On 9/20/07, Leo Soto M. <[EMAIL PROTECTED]> wrote: > > On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > I guess I would challenge the notion, too, that you can't trust the > > client IP when you trust the proxy or proxies, at least in the sense > > of knowing trusted proxies versus untruste

Re: buildbot: "out of space"

2007-09-20 Thread Jacob Kaplan-Moss
On 9/20/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > Now, should such problems reported on this list at all? Or is the maintainer > notified automatically? Here's probably fine for now; once we're a bit more organized I'll set up a [EMAIL PROTECTED] for error reports. Jacob --~--~-~

buildbot: "out of space"

2007-09-20 Thread Michael Radziej
Hi, seems something has gone badly on the buildbot. The mysql client aborted with: svn: Can't copy 'build/.svn/tmp/text-base/AUTHORS.svn-base' to 'build/AUTHORS.tmp': No space left on device The postgresql client aborted with: Got an error creating the test database: database "test_bb_psycopg2

Re: django on jython (new version)?

2007-09-20 Thread Leo Soto M.
Oh, and a bit of status from my part: I managed to run syncdb, the admin and the test suite under Jython. The admin has problems with datetimes, but other than that, it works OK. And the test suite reports something like a third of tests as failed. We have work to do :D. [Nah, the great majorit

Re: django on jython (new version)?

2007-09-20 Thread Leo Soto M.
On 9/20/07, Marty Alchin <[EMAIL PROTECTED]> wrote: > > I'm definitely not on the cutting edge of Django on Jython here, but I > started working out a servlet handler, so that once we get things > working fairly well, we can see how it works outside the test server. > I haven't really tested it ye

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Leo Soto M.
On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > I guess I would challenge the notion, too, that you can't trust the > client IP when you trust the proxy or proxies, at least in the sense > of knowing trusted proxies versus untrusted. For example, if my setup > has proxies p1 and p2: > > cli

Re: django on jython (new version)?

2007-09-20 Thread Marty Alchin
I'm definitely not on the cutting edge of Django on Jython here, but I started working out a servlet handler, so that once we get things working fairly well, we can see how it works outside the test server. I haven't really tested it yet or anything, but it seems like it should work fairly well.

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Chris Bennett
Since there seems to be two use cases, might I suggest forking the secondary use case into a separate middleware class? Whether or not the trusted reverse proxy scenario is more common (though I believe it is), it's best to avoid breaking existing functionality, especially when the SetRemoteAddrF

Re: Looking for discussion on #5535

2007-09-20 Thread Collin Grady
Gary Wilson said the following: > I say you are looking at it backwards here. It's not that get() and > get_or_create() don't work with fkeyname_id, it's that Model() and create() > don't work with fkeyname. I disagree strongly with that. It's already established that obj.fkeyname is the object,

Re: django on jython (new version)?

2007-09-20 Thread Leo Soto M.
On 9/20/07, Tristan King <[EMAIL PROTECTED]> wrote: > > Hi guys, > > just a quick update on the little bit of work i've been doing on this. > > i've been merging leo's code with my own, and updating my own to the > latest django svn code. > > I've been working on getting the django tutorial to wor

#5526 - Localized Date/DateTime fields proposal

2007-09-20 Thread Jan Rademaker
Hi list, Ticket #5526 provides a Dutch DateField, a DateTimeField and a DateTimeInput widget. Some code is based on the generic DateField introduced in [6208]. The problem with this new generic DateField is that it's impossible to parse non-English month names (%B and the like in strftime), becau

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Deryck Hodge
On 9/20/07, Leo Soto M. <[EMAIL PROTECTED]> wrote: > > On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > [...] > > But what about the case of multiple trusted proxies (not the case of > > the client acting as a proxy)? Or what about if the proxy sends the > > XFF header as [CLIENTIP, PROXYIP]

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Leo Soto M.
On 9/20/07, Leo Soto M. <[EMAIL PROTECTED]> wrote: > Now, if having a reliable remote IP address is important, then a > setting (NUMBER_OF_TRUSTED_PROXY_SERVERS?) specifying how many values > you can trust is the only thing that occurs to me. (I'm not that > creative). Doh. That was a complicate

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Leo Soto M.
On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: [...] > But what about the case of multiple trusted proxies (not the case of > the client acting as a proxy)? Or what about if the proxy sends the > XFF header as [CLIENTIP, PROXYIP] which is what I believe the major > ones do and what cause the

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Deryck Hodge
On 9/20/07, Leo Soto M. <[EMAIL PROTECTED]> wrote: > > On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > > I completely agree you shouldn't use this middleware unless you know > > and trust the proxy setup, but I can easily imagine (large corporate > > networks) a situation where there could b

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Leo Soto M.
On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > I completely agree you shouldn't use this middleware unless you know > and trust the proxy setup, but I can easily imagine (large corporate > networks) a situation where there could be multiple proxies. Seems to > me its better to be clear of

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Jacob Kaplan-Moss
On 9/20/07, Leo Soto M. <[EMAIL PROTECTED]> wrote: > Anyway, please *do not* revert it. Such change would make easy to fake > the remote address when using that middleware. If people are _really_ > using more than one trusted proxy (a transparent Squid getting in the > way maybe?), the middleware

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Deryck Hodge
Hi, Leo. On 9/20/07, Leo Soto M. <[EMAIL PROTECTED]> wrote: > Wikipedia isn't confirming that the first IP should be taken. It says > that the first entry is the "farthest downstream client". But if you > are going to believe it, you are blindly trusting on every downstream > client who is provid

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Leo Soto M.
On 9/20/07, Craig Ogg <[EMAIL PROTECTED]> wrote: > > On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Django's SetRemoteAddrFromForwardedFor middleware used to take the > > *first* item in the X-F-F header, but after > > http://code.djangoproject.com/ticket/3872 was filed we changed it

Re: wiki coordinator position

2007-09-20 Thread Tom Tobin
On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 9/20/07, Tom Tobin <[EMAIL PROTECTED]> wrote: > > I'd certainly like to simply > > "be bold" as per Wikipedia and be a bit more aggressive with improving > > the wiki, but of course the Django wiki isn't Wikipedia -- I don't want > >

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Jacob Kaplan-Moss
On 9/20/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > In the comments for the article Simon cited on the ticket, Bob > confirms left most is client, right most is last proxy but he was > trying for the most trust worthy IP in the chain, not the client's IP. > I'm pretty sure this is the norm. Sq

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Leo Soto M.
On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Howdy folks -- > > So I need a bit of help figuring out how to handle X-Forwarded-For, > and specifically what to do in the presance of multiple IPs. > > Django's SetRemoteAddrFromForwardedFor middleware used to take the > *first* item i

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Deryck Hodge
On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Howdy folks -- > > So I need a bit of help figuring out how to handle X-Forwarded-For, > and specifically what to do in the presance of multiple IPs. > > Django's SetRemoteAddrFromForwardedFor middleware used to take the > *first* item i

Re: wiki coordinator position

2007-09-20 Thread Jacob Kaplan-Moss
On 9/20/07, Tom Tobin <[EMAIL PROTECTED]> wrote: > I'd certainly like to simply > "be bold" as per Wikipedia and be a bit more aggressive with improving > the wiki, but of course the Django wiki isn't Wikipedia -- I don't want > to step on anyone's toes! No, no -- please do! We need someone who'l

Re: Help needed with X-Forwarded-For

2007-09-20 Thread Craig Ogg
On 9/20/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > Django's SetRemoteAddrFromForwardedFor middleware used to take the > *first* item in the X-F-F header, but after > http://code.djangoproject.com/ticket/3872 was filed we changed it to > take the *last* IP. > That ticket use this article a

Re: wiki coordinator position

2007-09-20 Thread Tom Tobin
On 9/20/07, Scott Paul Robertson <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 24, 2007 at 06:52:54PM -0500, Adrian Holovaty wrote: > > > > On 7/24/07, Scott Paul Robertson <[EMAIL PROTECTED]> wrote: > > > [ Discusion about editor for development wiki pages... ] > > > Since I'm throwing out the idea,

Help needed with X-Forwarded-For

2007-09-20 Thread Jacob Kaplan-Moss
Howdy folks -- So I need a bit of help figuring out how to handle X-Forwarded-For, and specifically what to do in the presance of multiple IPs. Django's SetRemoteAddrFromForwardedFor middleware used to take the *first* item in the X-F-F header, but after http://code.djangoproject.com/ticket/3872

Cashcrate: A Good Paid Online Surveys

2007-09-20 Thread harry
To make money online survey taking, I have found that Cashcrate has been the best use of my time and efforts. Not only are the surveys frequent and ongoing, and you don't have to earn much to get your first bank deposit/check, but their referral program is great. You can find out more by clicking

RE: GeoDjango: ST_Transform broken (no SRID on first arg)?

2007-09-20 Thread Wensing, Matthew \(CNI-Palm Beach\)
I am using psycopg2 and haven't modified any code. Can't explain why I wasn't getting the '%s' expansions to wrap in the single tick marks. I ended up side-stepping this issue by hard-coding my default SRID into the srid keyword arg on __init__ in geos/base.py, which will work for this project.

Re: Do you need more committers/triagers?

2007-09-20 Thread Yuri Baburov
Thanks for your answers. I just wanted to write patch for one issue, receive feedback, write few more patches etc. Writing patches without feedback seems very weird conception to me - it's rather inefficient. But if it's the only way in Django... Then I should apologize. > I suggest using some so

Re: django on jython (new version)?

2007-09-20 Thread Tristan King
Hi guys, just a quick update on the little bit of work i've been doing on this. i've been merging leo's code with my own, and updating my own to the latest django svn code. I've been working on getting the django tutorial to work, and got up to: --- # objects.all() displays all the