Re: ORM roadmap

2009-10-03 Thread Russell Keith-Magee
On Sun, Oct 4, 2009 at 5:00 AM, James Bennett wrote: > > On Sat, Oct 3, 2009 at 1:58 PM, Thierry wrote: >> I know this is not a problem for most users. But when working with >> complex projects or projects requiring some performance optimization >> django orm doesn't suffice. Its a pity to see s

Re: Brand new projects should pass their tests (the django.contrib.auth thing from #7611)

2009-10-06 Thread Russell Keith-Magee
On Tue, Oct 6, 2009 at 4:43 PM, Simon Willison wrote: > > One of the things that has been established at DjangoCon is that, as a > community, we don't have a strong enough culture of testing. This is > despite Django shipping with some good testing tools (TestClient and > the like). Anything we c

Re: Brand new projects should pass their tests (the django.contrib.auth thing from #7611)

2009-10-06 Thread Russell Keith-Magee
On Wed, Oct 7, 2009 at 6:50 AM, Kevin Teague wrote: > > On Oct 6, 1:43 am, Simon Willison wrote: >> >> Option 6 would be welcome if anyone has any ideas. > > Do what Grok does: > > $ grokproject newapp > $ cd newapp > $ ./bin/test > Running tests at level 1 > Total: 0 tests, 0 failures, 0 errors

Re: Patch: adding a msg parameter to assertContains and similar methods in the test client

2009-10-07 Thread Russell Keith-Magee
On Wed, Oct 7, 2009 at 11:15 PM, Christian Oudard wrote: > > I wanted to get some feedback from the mailing list about a patch I > wrote. There are two approaches I tried, and attached them both to > this ticket: > > http://code.djangoproject.com/ticket/10314 > > Quick explanation: Basically, the

Re: Brand new projects should pass their tests (the django.contrib.auth thing from #7611)

2009-10-08 Thread Russell Keith-Magee
On Thu, Oct 8, 2009 at 5:52 PM, Simon Willison wrote: > > On Oct 6, 1:25 pm, Russell Keith-Magee wrote: >> I think we need something else. In particular, I think we need to >> address the problem at a slightly deeper level - we need to >> acknowledge that we don

Re: Proposal: Tutorial Refresh

2009-10-09 Thread Russell Keith-Magee
On Fri, Oct 9, 2009 at 11:22 PM, Jacob Kaplan-Moss wrote: > > On Fri, Oct 9, 2009 at 9:41 AM, Rob Hudson wrote: >> * How do people feel about a tutorial that covers a complete site? > > Well, in grand Django tradition, by suggesting this, you've > volunteered to be in charge :) > > But sign me u

Re: Proposal: Tutorial Refresh

2009-10-09 Thread Russell Keith-Magee
On Sat, Oct 10, 2009 at 6:55 AM, Rob Hudson wrote: > > I, too, like the idea of a conference site.  It fills a void and > sounds useful for upcoming conferences.  I wasn't too crazy about the > blog idea, and was convinced away from the snippets idea.  So shall we > call it a conference site and

Re: Django 1.2 roadmap and schedule

2009-10-09 Thread Russell Keith-Magee
On Sat, Oct 10, 2009 at 1:13 AM, Vinay Sajip wrote: > > On Oct 8, 6:44 pm, Jacob Kaplan-Moss wrote: >> We're still gathering feature requests for 1.2 >> (seehttp://code.djangoproject.com/wiki/Version1.2Features), but we're >> going to work voting differently. Instead of categorizing features >>

Re: Django 1.2 roadmap and schedule

2009-10-10 Thread Russell Keith-Magee
On Sat, Oct 10, 2009 at 5:11 PM, Vinay Sajip wrote: > >> While it may not be *technically* too late to get the feature on the >> voting list, my Magic 8-ball predicts that any vote on #3591 will have >> the same result as last time - Rejected, needs more design work. >> >> All the serious proposa

Re: Proposal for 1.2: Dumber email validation

2009-10-10 Thread Russell Keith-Magee
On Sat, Oct 10, 2009 at 9:35 PM, James Bennett wrote: > > In light of yesterday's security issue, I'd like to propose that we > significantly dumb down the regex Django uses to validate email > addresses. > > Currently, the regex we use covers many common cases, but comes > nowhere near covering

Does #3591 need solving? (was Re: Django 1.2 roadmap and schedule)

2009-10-10 Thread Russell Keith-Magee
On Sun, Oct 11, 2009 at 6:19 AM, Hanne Moa wrote: > > On Sat, Oct 10, 2009 at 13:51, Russell Keith-Magee > wrote: >> Looking at #3591 in particular - another big part of the problem is >> that the ticket tries to solve a theoretical problem that, in >> practice, doe

Re: Patch: adding a msg parameter to assertContains and similar methods in the test client

2009-10-10 Thread Russell Keith-Magee
On Sat, Oct 10, 2009 at 1:16 AM, Christian Oudard wrote: > > First off, thank you all for responding and discussing this issue. > > Responding to Russell's comments on the quality of the patch, I agree > that it needs better test coverage. I've uploaded an updated patch > which covers all exit po

Re: Does #3591 need solving? (was Re: Django 1.2 roadmap and schedule)

2009-10-11 Thread Russell Keith-Magee
On Sun, Oct 11, 2009 at 3:23 PM, Vinay Sajip wrote: > > On Oct 11, 12:46 am, Russell Keith-Magee > wrote: >> If I may ask - which apps (or app names) caused the collision? Off the >> top of my head, I can't think of any especially mainstream application > &

Re: Does #3591 need solving? (was Re: Django 1.2 roadmap and schedule)

2009-10-11 Thread Russell Keith-Magee
On Sun, Oct 11, 2009 at 10:42 PM, Vinay Sajip wrote: > > On Oct 11, 9:52 am, Russell Keith-Magee > wrote: >> On Sun, Oct 11, 2009 at 3:23 PM, Vinay Sajip wrote: >> >> This is true, but again, the distinction between theoretical and >> practical problem emerg

Re: Does #3591 need solving? (was Re: Django 1.2 roadmap and schedule)

2009-10-11 Thread Russell Keith-Magee
On Mon, Oct 12, 2009 at 4:56 AM, Vinay Sajip wrote: > > On Oct 11, 4:31 pm, Russell Keith-Magee > wrote: >> However, I can't recall the last time that someone asked the general >> question of how to avoid a name collision between their two tagging >> (or wha

Re: Proposal: Tutorial Refresh

2009-10-11 Thread Russell Keith-Magee
On Mon, Oct 12, 2009 at 7:15 AM, Zachary Voase wrote: > > On 11 Oct 2009, at 23:39, Joshua Russo wrote: > >> How about the possibility of an advanced tutorial, to highlight more >> advanced features. > > That's pretty much what the Django Book is for. No, it really isn't. Firstly, The Django Bo

Re: Patch: adding a msg parameter to assertContains and similar methods in the test client

2009-10-12 Thread Russell Keith-Magee
On Tue, Oct 13, 2009 at 12:29 AM, Christian Oudard wrote: > > I think using it as a prefix is a good solution. Updated the patch, > and attached it to the ticket. Should we reopen the ticket? Done. I've also marked it for v1.2 so I remember to check it in. All that is missing now is some docume

Re: Session/cookie based messages (#4604)

2009-10-13 Thread Russell Keith-Magee
On Tue, Oct 13, 2009 at 3:34 AM, Tobias McNulty wrote: > > Before we get too far, I'd appreciate hearing feedback from one or > more of the core devs (and from some of the folks who were involved in > this discussion back when it was happening on the ticket) on the wiki > page[1] and the general

Re: Session/cookie based messages (#4604)

2009-10-13 Thread Russell Keith-Magee
On Wed, Oct 14, 2009 at 7:45 AM, Tobias McNulty wrote: > > On Tue, Oct 13, 2009 at 3:27 AM, Russell Keith-Magee > wrote: >> Secondly, I share Chris' concern about overloading 'messages'. This >> overlaps with the bikeshed issue of what to call the new c

Re: lazy auth context processor

2009-10-14 Thread Russell Keith-Magee
On Wed, Oct 14, 2009 at 8:24 PM, Luke Plant wrote: > > I want to fix #6552 (also #12031), and I've attached a patch that > makes the auth context processor lazy. > > I'm pretty sure this is the right thing to do, but I'd like to check > for any gotchas people might be aware of. I can't see any o

Re: Patch: adding a msg parameter to assertContains and similar methods in the test client

2009-10-14 Thread Russell Keith-Magee
On Wed, Oct 14, 2009 at 11:00 PM, Christian Oudard wrote: > > I'm a bit green on doing documentation, but I'll give it a try. I'll > probably have to post a documentation patch and get some feedback a > few times before it's correct. Should I mark it as changed in version > 1.2 like this? > > ..

Re: LazyObject fix - tiny backwards incompatible change

2009-10-16 Thread Russell Keith-Magee
On Thu, Oct 15, 2009 at 7:26 PM, Luke Plant wrote: > > Hi all, > > There is a bit of cruft in LazyObject that I'd like to fix - > 'get_all_members'.  This seems to be left over from before it got > separated from LazySettings.  The method is *only* needed to support > introspection, which is usua

Re: shortcut proposal

2009-10-16 Thread Russell Keith-Magee
On Fri, Oct 16, 2009 at 1:45 AM, Luke Plant wrote: > > Hi all, > > As a consequence of the proposed CSRF changes, we brought up wanting > to add a shortcut like render_to_response that uses RequestContext, as > a refinement, but didn't decide on anything.  Ideally, we would have > something as sh

Re: shortcut proposal

2009-10-16 Thread Russell Keith-Magee
On Fri, Oct 16, 2009 at 6:01 PM, Yuri Baburov wrote: > > That means, >  1) perfect render_to_response should be lazy. This isn't a new idea - Simon Willison has been proposing this general idea for a while. He's been talking specifically about making template rendering lazy, so you can use middl

Re: shortcut proposal

2009-10-16 Thread Russell Keith-Magee
On Fri, Oct 16, 2009 at 11:29 PM, Yuri Baburov wrote: > > Hi Russell, > > On Fri, Oct 16, 2009 at 8:14 PM, Russell Keith-Magee > wrote: >> >> http://code.google.com/p/django-openid/source/browse/trunk/django_openid/response.py > Thanks. > > Exactly this

Re: patch produced by svn diff doesn't display in django trac

2009-10-16 Thread Russell Keith-Magee
On Sat, Oct 17, 2009 at 6:00 AM, Gabriel Farrell wrote: > > I hate to waste time talking about the tools rather than the product, > but I'm frustrated by my inability to get my patches displaying nicely > in the Django code trac.  See > http://code.djangoproject.com/attachment/ticket/11250/admin

Re: shortcut proposal

2009-10-16 Thread Russell Keith-Magee
On Sat, Oct 17, 2009 at 5:15 AM, Sean Brant wrote: > > Using a decorator allows you to do cool things like > > @provides_html('myapp/mypage.html') > @provides_json(optional_serialize_callback_can_go_here) > def my_view(request): >    return {'foo': 'bar') > > Then your provides_* could check the

Re: Continuous Integration command

2009-10-17 Thread Russell Keith-Magee
On Sun, Oct 18, 2009 at 12:59 AM, berto wrote: > > Hello developers, > > I wanted to be able to run a project's test suite in the same manner > runserver restarts when a file is changed.  I did not find this > feature in Django so I wrote the following code: > > http://www.djangosnippets.org/snip

Re: #9886: HttpRequest refactoring

2009-10-17 Thread Russell Keith-Magee
On Sun, Oct 18, 2009 at 2:50 AM, Ivan Sagalaev wrote: > > Jacob Kaplan-Moss wrote: >> On Thu, Sep 17, 2009 at 10:09 AM, Ivan Sagalaev >> wrote: >>> Ticket [9886] is one of the things that I've been holding for 1.2 time >>> frame to ask for some discussion since Jacob marked it DDN. >> >> At firs

Re: AddWYSIWYGEditor

2009-10-18 Thread Russell Keith-Magee
On Sun, Oct 18, 2009 at 8:28 PM, diover wrote: > > How I can use any AddWYSIWYGEditor  in Django? Django-developers is a mailing list for discussing the development of Django itself. General questions of usage or problem solving should be directed to django-users. Yours, Russ Magee %-) --~--~-

Re: Continuous Integration command

2009-10-18 Thread Russell Keith-Magee
On Sun, Oct 18, 2009 at 6:14 PM, berto wrote: > > On Oct 17, 5:33 pm, Russell Keith-Magee > wrote: >> I'd like to fix this problem, but while this problem exists, adding a >> continuous integration server that crashes every time the developer >> makes a Sy

Re: shortcut proposal

2009-10-19 Thread Russell Keith-Magee
On Mon, Oct 19, 2009 at 4:47 PM, Exe wrote: > > Hello! > >> As a consequence of the proposed CSRF changes, we brought up wanting >> to add a shortcut like render_to_response that uses RequestContext > > I want to propose another method. > > Why we need RequestContext? We need it to provide global

Re: Reversing URL for a view with namespaces

2009-10-20 Thread Russell Keith-Magee
On Tue, Oct 20, 2009 at 5:34 AM, Ivan Sagalaev wrote: > > Hello! > > I've just stumbled upon a difficult to understand problem. I have an app >  that has an urlconf which is included in a project under a namespace: > >     (r'^blog/', include('app.urls', namespace='blog')), > > This namespace all

Re: auth.User: a new approach

2009-10-20 Thread Russell Keith-Magee
On Mon, Oct 19, 2009 at 11:52 PM, Hanne Moa wrote: > > It doesn't look like Contrib-06, covering ticket #3011, Allow for > extendable user module, will be in for 1.2. So: let's think afresh, > start from scratch, think about what we really, really want. This is > my pony for *2.0*: I completely

Re: The this-needs-to-be-in-django angst

2009-10-20 Thread Russell Keith-Magee
On Tue, Oct 20, 2009 at 10:23 PM, Jacob Kaplan-Moss wrote: > > Hi Yuri, Mart -- > > I feel that I need to make it clear that I'm not ignoring you, or this > conversation. However, the tone is so hostile and unprofessional that > it'd be a waste of my time to try to engage, so I'm simply going to

Re: Proposal for __neq field lookup

2009-10-20 Thread Russell Keith-Magee
On Tue, Oct 20, 2009 at 10:09 PM, Michael P. Jung wrote: > > I'd like to propose a new field lookup __neq which could be used to > negate a single parameter. It is not ment to make exclude() obsolete, as > they both have a different scope: > > filter(x__neq=1, y__neq=2) would translate to "(x <>

Re: auth.User: a new approach

2009-10-21 Thread Russell Keith-Magee
On Wed, Oct 21, 2009 at 2:55 PM, Hanne Moa wrote: > > On Tue, Oct 20, 2009 at 16:18, Russell Keith-Magee > wrote: >> >> On Mon, Oct 19, 2009 at 11:52 PM, Hanne Moa wrote: >>> >>> It doesn't look like Contrib-06, covering ticket #3011, Allow for &g

Re: Ticket 11967 review?

2009-10-21 Thread Russell Keith-Magee
On Wed, Oct 21, 2009 at 10:19 PM, Lakin Wecker wrote: > > http://code.djangoproject.com/ticket/11967 > > As commented on the ticket: > >  This is driving me nuts too.  It wouldn't be so bad if this was a 404, but >  combined with #11191 and #3785 it generates a ton of 500 errors. :/ > >  Any chan

Re: The this-needs-to-be-in-django angst

2009-10-21 Thread Russell Keith-Magee
On Thu, Oct 22, 2009 at 3:22 AM, mrts wrote: > > On Oct 20, 7:19 pm, Jacob Kaplan-Moss wrote: > > Django Bug Days > --- > > At regular intervals, say twice a month on Saturdays, > set aside 2-3 hours for IRC-based bug hunting sprints. Yes, we should have more regular sprints. Howeve

Re: The this-needs-to-be-in-django angst

2009-10-21 Thread Russell Keith-Magee
On Thu, Oct 22, 2009 at 8:48 AM, James Bennett wrote: > > On Wed, Oct 21, 2009 at 7:36 PM, Russell Keith-Magee > wrote: >> Let me tell you a store about three people named Everybody, Anybody, >> Somebody and Nobody. > > Four! The four people in this story are... e

Re: The this-needs-to-be-in-django angst

2009-10-22 Thread Russell Keith-Magee
On Thu, Oct 22, 2009 at 6:47 PM, mrts wrote: > > On Oct 22, 3:36 am, Russell Keith-Magee > wrote: > As I said, I don't think I'm actually in a pjosition to suggest > improvements to the workflow (being Nobody in that little story :)), > but I'd be most pleased t

Re: non-relational DB

2009-10-22 Thread Russell Keith-Magee
On Thu, Oct 22, 2009 at 7:46 PM, Waldemar Kornewald wrote: > > Hi again, > now a little question: > > Some fields do type conversions. For example, TimeField converts > datetime objects into time objects. > App Engine doesn't support time, but only datetime, so should we do > such conversions at

Re: Django 1.2 feature voting

2009-10-22 Thread Russell Keith-Magee
On Thu, Oct 22, 2009 at 11:27 PM, Phillip Temple wrote: > > Two apps I would like to see in contrib are: > mptt - this has been stable for a long time, integrates well into > django, and is now a dependency for a few apps out there > django-registration - rewritten to have pluggable work flow, th

Re: non-relational DB

2009-10-22 Thread Russell Keith-Magee
On Fri, Oct 23, 2009 at 5:09 AM, Thomas Wanschik wrote: > >> When a new QuerySet is instantiated (e.g. by calling >> Model.objects.all()) it asks the backend for its Query class and then >> creates an instance of that class. By default, this class is >> sql.Query. Only the Oracle backend has its

Advocacy for Email-01 (email backends)

2009-10-25 Thread Russell Keith-Magee
Hi all, The v1.2 votes are in, and it appears that Email-01 (introducing an email backend API) needs some more discussion. I am in complete agreement that Django shouldn't try to become an email framework. That isn't the intention of this proposal. The intention is to fix a specific problem tha

Re: non-relational DB

2009-10-25 Thread Russell Keith-Magee
On Mon, Oct 26, 2009 at 12:42 AM, Thomas Wanschik wrote: > > > > On 22 Okt., 23:52, Russell Keith-Magee wrote: >> On Fri, Oct 23, 2009 at 5:09 AM, Thomas Wanschik >> >> wrote: >> >> >> When a new QuerySet is instantiated (e.g. by calling >&g

Re: 1.2 Feature Suggestion

2009-10-25 Thread Russell Keith-Magee
On Mon, Oct 26, 2009 at 8:32 AM, Tobias McNulty wrote: > On Sun, Oct 25, 2009 at 7:39 PM, Dan wrote: >> >> I didn't know about rosetta. What would you guys think of having a doc >> section about popular third party apps? Putting a list of applications really isn't the right solution - for one t

Re: 1.2 Feature Suggestion

2009-10-25 Thread Russell Keith-Magee
On Mon, Oct 26, 2009 at 9:40 AM, James Bennett wrote: > > On Sun, Oct 25, 2009 at 8:30 PM, Russell Keith-Magee > wrote: >> A wiki page doesn't really solve the problem either. If you make it an >> exclusive list, someone has to decide who is on the list and who

Re: non-relational DB

2009-10-26 Thread Russell Keith-Magee
On Mon, Oct 26, 2009 at 4:52 PM, Waldemar Kornewald wrote: > > On Mon, Oct 26, 2009 at 1:46 AM, Russell Keith-Magee > wrote: >> The current query_class will need to change slightly to support >> multi-db, so anything you implement against that interface will >> r

Re: non-relational DB

2009-10-26 Thread Russell Keith-Magee
On Mon, Oct 26, 2009 at 8:46 PM, Waldemar Kornewald wrote: > > On Mon, Oct 26, 2009 at 1:12 PM, Russell Keith-Magee > wrote: >> To date, sql.Query is the right structure for all Django's supported >> backends. It might even be the right structure for a non-SQL back

Re: WSGI support in Django

2009-10-27 Thread Russell Keith-Magee
On Tue, Oct 27, 2009 at 10:49 PM, Gustavo Narea wrote: > > Hi there. > > Over the last week I've been working to improve WSGI support in Django > and I have sent a few patches which have not received the feedback I > expected to have, so I wanted to ping you. ;-) In the interests of good communi

Re: Bug in django\template\__init__.py ??

2009-10-29 Thread Russell Keith-Magee
On Thu, Oct 29, 2009 at 10:37 PM, Johan wrote: > > Hi. In django\template\__init__.py on line 54 there is a line of > code : from django.conf import settings. Firstly there is no > settings.py file in django\conf, ther is however a file called > global_settings.py. In my context the is issue is f

Call for feedback: First GSoC patch ready to land

2009-10-30 Thread Russell Keith-Magee
Hi all, I've just finished the polishing the first part of Alex's GSoC work to add Multi-db, which I'd like to commit. This is a call for feedback. This first patch isn't directly related to multi-db, but it is a prerequisite that will allow the multi-db code to function. The goal of this patch

Re: Call for feedback: First GSoC patch ready to land

2009-10-30 Thread Russell Keith-Magee
On Oct 30, 4:33 pm, Russell Keith-Magee wrote: > Hi all, > > I've just finished the polishing the first part of Alex's GSoC work to > add Multi-db, which I'd like to commit. This is a call for feedback. I forgot to mention - the patch _should_ be completely backwards

Re: Advocacy for Email-01 (email backends)

2009-10-30 Thread Russell Keith-Magee
On Oct 25, 3:22 pm, Russell Keith-Magee wrote: > Hi all, > > The v1.2 votes are in, and it appears that Email-01 (introducing an > email backend API) needs some more discussion. > > I am in complete agreement that Django shouldn't try to become an > email framework. T

Re: Call for feedback: First GSoC patch ready to land

2009-10-30 Thread Russell Keith-Magee
On Sat, Oct 31, 2009 at 9:36 AM, Johannes Dollinger wrote: > > The m2m-refactor patch breaks ManyToManyFields on abstract models: > "AssertionError: ForeignKey cannot define a relation with abstract > class A" Thanks for the report, Johannes. I'll take a look at this and see what I can do about

Re: Call for feedback: First GSoC patch ready to land

2009-10-30 Thread Russell Keith-Magee
On Sat, Oct 31, 2009 at 9:53 AM, Russell Keith-Magee wrote: > On Sat, Oct 31, 2009 at 9:36 AM, Johannes Dollinger > wrote: >> >> The m2m-refactor patch breaks ManyToManyFields on abstract models: >> "AssertionError: ForeignKey cannot define a relation with abstra

Re: Reversing URL for a view with namespaces

2009-10-31 Thread Russell Keith-Magee
On Tue, Oct 20, 2009 at 11:38 PM, Ivan Sagalaev wrote: > > Russell Keith-Magee wrote: >> On the 'missing something' front, reverse() now takes a 'current_app' >> argument that gives context to the app lookup, which resolves the >> ambiguity from the po

Re: Reversing URL for a view with namespaces

2009-11-01 Thread Russell Keith-Magee
On Mon, Nov 2, 2009 at 5:44 AM, Ivan Sagalaev wrote: > > Ivan Sagalaev wrote: >> Ahha! This is the catch I was missing. So in order for an app to place >> itself generally in the "namespace-aware" category it should define a >> function that will return a triple of (patterns, app_namespace, >> in

Last chance to object to new features

2009-11-02 Thread Russell Keith-Magee
Hi all, A quick reminder - if you have any objections or feedback on #10109, the M2M refactor [1], I intend to land this patch in approximately 48 hours. Also, following some mailing list and IRC discussion [2], I'll be trying to land #10355 at the same time. This is the addition of the email ba

Re: Call for feedback: First GSoC patch ready to land

2009-11-02 Thread Russell Keith-Magee
On Mon, Nov 2, 2009 at 11:40 PM, Jacob Kaplan-Moss wrote: > > Hi Russ -- > > I'm +1 on merging the patch immediately. I have some feedback on the > couple of issues you raised below, but I see no reason they can't be > addressed after merging. > > On Fri, Oct

Re: Last chance to object to new features

2009-11-02 Thread Russell Keith-Magee
On Tue, Nov 3, 2009 at 1:27 PM, Andi Albrecht wrote: > > On Mon, Nov 2, 2009 at 4:53 PM, Jacob Kaplan-Moss wrote: >> >> On Mon, Nov 2, 2009 at 10:02 AM, Russell Keith-Magee >> wrote: >>> A quick reminder - if you have any objections or feedback on #10109, >

Re: Enhanced debug output colors: django code is green, user code is red.

2009-11-03 Thread Russell Keith-Magee
On Tue, Nov 3, 2009 at 5:34 AM, Yuri Baburov wrote: > > Hi All, > > Since you are discussing and applying different features, > > I think it's time to ask what do you think of the subj. > > It's at http://code.djangoproject.com/ticket/11834 > > It adds some helpful color beauty to django 500 outp

Re: Last chance to object to new features

2009-11-04 Thread Russell Keith-Magee
On Wed, Nov 4, 2009 at 6:23 PM, Andi Albrecht wrote: > > This just came up on IRC: in django.test.utils > setup_test_environment() the lines 46/47 are mixed up. > > Here's a diff that fixes this issue: > > diff --git a/django/test/utils.py b/django/test/utils.py > index a30bb7e..9d39eee 100644 >

Re: #7052 - Fixing serialization for content types and auth

2009-11-05 Thread Russell Keith-Magee
On Thu, Nov 5, 2009 at 11:46 PM, Eric Holscher wrote: > On Thu, Nov 5, 2009 at 9:29 AM, Russell Keith-Magee > wrote: >> >> Hi all, >> >> Next on my pony list for v1.2: #7052 - fixing the serializers to work >> around the problem of serializing dynamical

Re: #7052 - Fixing serialization for content types and auth

2009-11-05 Thread Russell Keith-Magee
On Fri, Nov 6, 2009 at 11:41 AM, mattimust...@gmail.com wrote: > >> In my minds eye, I have a vision of a serialization framework that >> would allow for registration of different serialization formats - not >> just JSON/XML, but the fields and internal structure of a JSON >> fixture, etc. Descri

Re: #7052 - Fixing serialization for content types and auth

2009-11-05 Thread Russell Keith-Magee
On Fri, Nov 6, 2009 at 1:55 AM, Travis Cline wrote: > > On Nov 5, 10:21 am, Jacob Kaplan-Moss wrote: >> That said, I do think Eric's suggestion of automatically introspecting >> for unique/unique_together is the best idea I've seen yet. Well, the >> best idea that doesn't require a ground-up rew

Re: #7052 - Fixing serialization for content types and auth

2009-11-07 Thread Russell Keith-Magee
On Sat, Nov 7, 2009 at 8:37 AM, Rob Madole wrote: > > (accidentally sent this directly to Russell, he has offered to help me > re-construct this where it belongs) (and, repeating my response that got sent privately to Rob) > I am under-the-covers-down-and-naughty familiar with this one. > > Thi

Re: #7052 - Fixing serialization for content types and auth

2009-11-07 Thread Russell Keith-Magee
On Sat, Nov 7, 2009 at 1:48 PM, J Meier wrote: > > I've implemented a nearly identical solution for this problem before, > and while it worked, it felt dirty. > > It strikes me that the problem is to do with our "surrogate" primary > key ids, which don't relate to the data at all. For most models

Re: #10509 (Better handling of database-specific information)

2009-11-08 Thread Russell Keith-Magee
On Sat, Nov 7, 2009 at 12:50 PM, Christophe Pettus wrote: > > Greetings, > > As part of proposing a patch for a bug I filed (#12180), I ran across > this ticket, and took the liberty of claiming it.  Since I'm > relatively new to working on Django code proper, I wanted to start a > discussion abo

Re: template or is it template_name

2009-11-10 Thread Russell Keith-Magee
On Wed, Nov 11, 2009 at 5:06 AM, Sean Brant wrote: > > Stop me if you have heard this one before. Anyone else find it > annoying that direct_to_template takes the kwarg "template" and most > other generic views take "template_name". Smells a little like php to > me. > > Is this something that sho

Re: Regularly-scheduled Django sprints, first December 11 - 13

2009-11-11 Thread Russell Keith-Magee
On Wed, Nov 11, 2009 at 1:06 AM, mrts wrote: > > Great news! Have you discussed the workflow yet? > I.e. will a DVCS be involved, and if yes, will there be > a central repo for coordinating the effort? > > A special repo on Github would otherwise be perfect, > but as mentioned before, we have a p

Re: Regularly-scheduled Django sprints, first December 11 - 13

2009-11-11 Thread Russell Keith-Magee
On Wed, Nov 11, 2009 at 12:00 AM, Jeremy Dunck wrote: > > Djangonauts, >  To help speed along development on Django, I'd like us to start > holding regularly-scheduled sprints. On behalf of the core team, I'd like to thank Jeremy for taking the lead on this. Organizing an event like a sprint isn

Re: Multi-credential ORM configuration support

2009-11-11 Thread Russell Keith-Magee
On Thu, Nov 12, 2009 at 6:20 AM, Warren Smith wrote: > > If this question would be more appropriate for django-users, please > let me know.  I ask it here because I suspect that the answer to my > question may require someone with a fairly deep understanding of the > ORM internals. > > I have a l

Re: Regularly-scheduled Django sprints, first December 11 - 13

2009-11-11 Thread Russell Keith-Magee
On Thu, Nov 12, 2009 at 5:57 AM, mrts wrote: > > On Nov 11, 1:57 pm, Russell Keith-Magee > wrote: >> Also - I know you're very enthused about Git and GitHub, but Django >> uses SVN as the canonical store for trunk and branches, and this isn't >> likely to

Re: Template Caching - Ticket #6262

2009-11-12 Thread Russell Keith-Magee
On Thu, Nov 12, 2009 at 9:15 AM, Mike Malone wrote: > Sup, > > I've been working on template caching (ticket #6262) with a mister > Alex Gaynor. The patch is getting pretty stable and I think it's close > to merge-able, so if anyone wants to take a look at what we've got and > provide feedback: go

Re: Multi-credential ORM configuration support

2009-11-12 Thread Russell Keith-Magee
On Fri, Nov 13, 2009 at 2:28 AM, Warren Smith wrote: > On Wed, Nov 11, 2009 at 5:08 PM, Russell Keith-Magee > wrote: >> Multi-db allows you to set up multiple database credentials; the usual >> reason for this is to split DB load across multiple database servers, >> bu

Re: Multi-credential ORM configuration support

2009-11-13 Thread Russell Keith-Magee
On Sat, Nov 14, 2009 at 4:31 AM, Warren Smith wrote: > On Thu, Nov 12, 2009 at 5:17 PM, Russell Keith-Magee > wrote: >>> 1. Retrieve the credentials from the session. >>> 2. Create a new, or update an existing, entry for those credentials in >>> the database con

Re: unable to start a background process using the development server

2009-11-13 Thread Russell Keith-Magee
On Sat, Nov 14, 2009 at 4:15 AM, stevecrozz wrote: > I tried to reopen this bug http://code.djangoproject.com/ticket/9286, > but apparently that's a no-no since it was closed as invalid by a core > developer. > > I'd like someone to take another look at it since I think Jacob didn't > understand t

Re: Documentation of backwards incompatible changes

2009-11-13 Thread Russell Keith-Magee
On Sat, Nov 14, 2009 at 8:55 AM, Luke Plant wrote: > Hi all, > > The online docs can easily give the impression that we have perfect > compatibility with Django 1.0 — the 'Django over time' section on [1] > has a link to 'Backwards-incompatible changes' [2], which contains > pre-1.0 changes only,

Re: unable to start a background process using the development server

2009-11-13 Thread Russell Keith-Magee
On Sat, Nov 14, 2009 at 1:01 PM, Stephen Crosby wrote: > Thanks for the response Russell, > > We can get into exactly what I'm doing if we need to, but for now lets just > assume that I've thought this through fairly thoroughly and I do in fact > want to start background processes from certain ver

Re: Why CharFields don't have default=None?

2009-11-15 Thread Russell Keith-Magee
On Mon, Nov 16, 2009 at 4:29 AM, Djoume wrote: > Dear Djangonauts, > > I have read the documentation and I think I understand why we don't > want to store empty strings as NULL in the database. > > I also understand that model validation is being worked on and it's > not what I'm trying to achieve

Re: Template Caching - Ticket #6262

2009-11-16 Thread Russell Keith-Magee
On Thu, Nov 12, 2009 at 9:15 AM, Mike Malone wrote: > Sup, > > I've been working on template caching (ticket #6262) with a mister > Alex Gaynor. The patch is getting pretty stable and I think it's close > to merge-able, so if anyone wants to take a look at what we've got and > provide feedback: go

Re: Template Caching - Ticket #6262

2009-11-16 Thread Russell Keith-Magee
On Mon, Nov 16, 2009 at 10:04 PM, Alex Gaynor wrote: > On Mon, Nov 16, 2009 at 8:58 AM, Russell Keith-Magee > wrote: >> On Thu, Nov 12, 2009 at 9:15 AM, Mike Malone wrote: >>> Sup, >>> >>> I've been working on template caching (ticket #6262) with a

Re: Multi-credential ORM configuration support

2009-11-16 Thread Russell Keith-Magee
On Tue, Nov 17, 2009 at 3:19 AM, Warren Smith wrote: > On Fri, Nov 13, 2009 at 8:06 PM, Russell Keith-Magee > wrote: >>> Would it make sense to factor out the connection selection logic into >>> a utility function with parameters that make it usable in all >>>

Re: Call for feedback: First GSoC patch ready to land

2009-11-17 Thread Russell Keith-Magee
On Wed, Nov 18, 2009 at 12:03 AM, Schmilblick wrote: > Sorry for crashing the list, but how does this affect this bug: > http://code.djangoproject.com/ticket/5390 ? > > I'm currently using django with the patch provided in that ticket, and > the latest commits regarding the gsoc-project created a

Re: Improving (and testing!) bash completion

2009-11-18 Thread Russell Keith-Magee
On Mon, Nov 16, 2009 at 6:35 AM, Eric Holscher wrote: > Hey all, > > What I did > > > First thing I did was write tests for the current behavior[1]. No tests were > written for the original commit, so if nothing else, these tests should be > commited. The link there works for the current

Re: CACHE_BACKEND = 'locmem:///' <-> 'locmem://'

2009-11-19 Thread Russell Keith-Magee
On Thu, Nov 19, 2009 at 6:52 PM, jedie wrote: > What is the right "spelling": 'locmem:///' or 'locmem://' ??? > > In the docu is three "/" [1] > but in global_settings.py is two "/" [2] > > [1] http://docs.djangoproject.com/en/dev/topics/cache/#local-memory-caching > [2] > http://code.djangoproje

Re: Scaffolding

2009-11-19 Thread Russell Keith-Magee
On Thu, Nov 19, 2009 at 6:47 PM, Thierry wrote: > Ok scaffolding has seen a lot of ups and downs in the dev community. > > Type 1 > "lets generate code, because that way our programming language sucks > less" approach some PHP frameworks take. > > Type 2 > Intelligent code snippets (generation) su

Re: validation.py backwards incompatibility for fieldsets

2009-11-19 Thread Russell Keith-Magee
On Thu, Nov 19, 2009 at 10:35 PM, rebus_ wrote: > Hi, > > This is my first bug report so please don't shoot me right away. > > In revision 11744 [1] code was added in > django/contrib/admin/validation.py which is supposed to improve the > error message for M2M fields. It seems to me that this chan

Re: Session/cookie based messages (#4604)

2009-11-20 Thread Russell Keith-Magee
On Tue, Nov 17, 2009 at 9:28 PM, Tobias McNulty wrote: > On Thu, Nov 5, 2009 at 9:15 AM, Russell Keith-Magee > wrote: >> >> I had a quick poke around the rest of the code base, especially about >> transition issues. However, I didn't want to start in on a big >&

Re: Oracle/GIS Testers Needed

2009-11-20 Thread Russell Keith-Magee
On Fri, Nov 20, 2009 at 3:19 PM, Jani Tiainen wrote: > On Fri, 2009-11-20 at 01:14 -0500, Alex Gaynor wrote: >> Hey all, >> >> Russ and I have been working on getting the multi-db work ready for >> merge (final stretch here hopefully!), and I just ported the Oracle >> backend to the slightly updat

Re: Session/cookie based messages (#4604)

2009-11-20 Thread Russell Keith-Magee
On Fri, Nov 20, 2009 at 9:50 PM, Tobias McNulty wrote: > Hi Russell, thanks for all your feedback.  I'll review the small issues in a > separate email (or just fix them), but here are my responses to the two > bigger problems. > > On Fri, Nov 20, 2009 at 3:29 AM, Russell

Re: Doc building piece missing?

2009-11-21 Thread Russell Keith-Magee
On Sat, Nov 21, 2009 at 9:59 PM, Luke Plant wrote: > On Saturday 21 November 2009 11:54:40 Tim Chase wrote: > The problem is there are no 1.1.2 release notes yet.  Also, if you put > "versionchanged:: 1.2", our docs are set up to parse that as referring > to the next version of Django, so it says

Re: Doc building piece missing?

2009-11-21 Thread Russell Keith-Magee
On Sun, Nov 22, 2009 at 5:17 AM, Tim Chase wrote: >>  2. Mess around with the Sphinx processor and make it display point >> release numbers but link to the minor release. > > A big -1 if documentation can only be built with a custom version > of Sphinx, making it harder for others to build docs. A

Re: Patch Reviewing

2009-11-22 Thread Russell Keith-Magee
On Thu, Nov 19, 2009 at 10:39 AM, Richard Laager wrote: > It was suggested in #django that I ask here about some patches I've > submitted: > http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&reporter=~rlaager&has_patch=1&order=priority > > What should I be doing to hel

Re: Problem with history view in admin page

2009-11-23 Thread Russell Keith-Magee
On Mon, Nov 23, 2009 at 9:12 PM, Rahul wrote: > Hi All, > > There is a problem reported for history view in admin page. > For history view there is a sql query generated, which trying to do > exact look-up on OBJECT_ID column (LogEntry model, DJANGO_ADMIN_LOG > table). > > "TextField" is responsib

Re: Problem with history view in admin page

2009-11-23 Thread Russell Keith-Magee
On Tue, Nov 24, 2009 at 1:07 PM, Mario Briggs wrote: >>> > What is stored in this field is a string-serialized representation of > the > primary key value. > << > > I agree that INTEGER is not the right choice, but then so too is CLOB. > How long is this string-serialized representation going to b

Re: Why not datetime.utcnow() in auto_now/auto_now_add

2009-11-24 Thread Russell Keith-Magee
On Wed, Nov 25, 2009 at 12:10 AM, jedie wrote: > DateTimeField "auto_now" and "auto_now_add" used datetime.now(). But > why this? IMHO it's better to use datetime.utcnow(), isn't it? Why would it be? A datetime field isn't necessarily stored in UTC. It uses datetime.now() because that will return

Re: Problem with history view in admin page

2009-11-24 Thread Russell Keith-Magee
On Wed, Nov 25, 2009 at 1:25 AM, Ian Kelly wrote: > On Mon, Nov 23, 2009 at 11:00 PM, Russell Keith-Magee > wrote: >> On Tue, Nov 24, 2009 at 1:07 PM, Mario Briggs >> wrote: >>> I agree that INTEGER is not the right choice, but then so too is CLOB. >>>

<    1   2   3   4   5   6   7   8   9   10   >