Re: Proposal: New transaction API with multiple databases

2009-04-05 Thread Glenn Maynard
I'm very interested in a cleaner transaction interface. I just wrote a contextmanager to do the usual "run this code in a transaction" bit, and it took a day and a half instead of a few minutes. The goals were typical: to be able to make SQL calls atomically, without caring about whether a trans

Reverse mappings raising exceptions

2009-04-11 Thread Glenn Maynard
icket/5741: "make queryset get() take a default", but without the backwards compatibility problem.) -- Glenn Maynard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To pos

Re: Reverse mappings raising exceptions

2009-04-13 Thread Glenn Maynard
type should have its own type, for the same reason OneToOne exists--it's a distinct type of relationship. I don't know what it would be called, though; "OneToZeroOrOne" is awkward. I don't think this wins anything over a flag in OneToOne, though, other than an awkward class

Why does get_profile exist?

2009-04-13 Thread Glenn Maynard
rationale here. -- Glenn Maynard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this

Re: Why does get_profile exist?

2009-04-13 Thread Glenn Maynard
tent. > oh, and this list is for the development of django. > Question about the usage of django should be directed at django-users. I'm well aware of both lists. This is a question about the design (development) rationale of Django. -- Glenn Maynard --~--~-~--~~~--

Re: Why does get_profile exist?

2009-04-13 Thread Glenn Maynard
revents people from ignoring get_profile entirely and just using OneToOne (which is probably what I'll do). -- Glenn Maynard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To po

Re: Why does get_profile exist?

2009-04-13 Thread Glenn Maynard
your applications will immediately > understand what's going on. I don't think "user.get_profile()" is measurably clearer than "user.profile", though I guess it would be if you named your profile class "Teapot". -- Glenn Maynard --~--~-~--~~---

Re: Why does get_profile exist?

2009-04-13 Thread Glenn Maynard
eld instead of ForeignKey for the profile's user field? It's a better fit; this seems like a relic from before OneToOneField was stable. http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users -- Glenn Maynard --~--~-~--~~~--

Re: Why does get_profile exist?

2009-04-13 Thread Glenn Maynard
ot;oh, this is meant to behave like a > subclass of that other model". I find the "zero or one to one" case much more commonly useful, and OneToOneField is much more natural for that (because ForeignKey's reverse gives a set)

Middleware exceptions cause other middleware to not be called

2009-04-15 Thread Glenn Maynard
are exception, but it was triggering on a request that wasn't a concern at the time and I had been ignoring it--and it didn't occur to me that it could cause problems with other requests. Of course, I've fixed my middleware which exposed this problem, but the general problem of clean

Re: Middleware exceptions cause other middleware to not be called

2009-04-16 Thread Glenn Maynard
;s generated by a view or a request > middleware, so let's be consistent on the exception path, too.) I suspect this patch still doesn't handle this, since there are no tests for it. -- Glenn Maynard --~--~-~--~~~---~--~~ You received this message

Re: A Letter to the Authors of Web Authentication Libraries

2009-05-03 Thread Glenn Maynard
nceived warnings might want you to believe.) But with these limitations, it may not be worth the bother for most people. -- Glenn Maynard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" gr

Re: Posting to the wrong list (was: Re: Need Django Developer urgent)

2009-05-11 Thread Glenn Maynard
cription is going to fix the unintuitive naming. -- Glenn Maynard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@google

Re: Posting to the wrong list (was: Re: Need Django Developer urgent)

2009-05-11 Thread Glenn Maynard
-django-core: development on Django itself, and more importantly, it would have been completely unambiguous to users developing using Django. But it's obviously not worth changing now. That's why I said "would have been". The notion of inverting the me

Re: Reduce bug triage overhead: DjangoAwesomeBot

2009-05-11 Thread Glenn Maynard
ly parse this out if it's present, and test against that revision (else trunk). This also makes the test results much more fixed and reproducable. (Answering the question "does the patch still work today" is useful too, but would probably need some external interface to request that a p

ticket 9589: development server stops on SyntaxError or other Exceptions

2009-11-10 Thread Glenn Maynard
#9589 http://code.djangoproject.com/ticket/9589 was closed for a reason that didn't make any sense--it looks like someone closed the ticket after reading only the first comment. The later patches fixed those problems. I asked about this in the ticket, but didn't get a response.