Re: authentication by email

2012-03-08 Thread Matt Pegler
Sorry all, disregard my previous email, I misread one thing and completely missed Wim's original message. On Thu, Mar 8, 2012 at 11:07 PM, Matt Pegler wrote: > For the project I am working on, we solved this by making a custom > auth backend that checks the username against the email column.  We'

Re: authentication by email

2012-03-08 Thread Matt Pegler
For the project I am working on, we solved this by making a custom auth backend that checks the username against the email column. We've found it to be a nice clean solution to wanting to use email addresses instead of usernames. On Thu, Mar 8, 2012 at 9:54 PM, Clay McClure wrote: > "Django is a

Re: authentication by email

2012-03-08 Thread Donald Stufft
The major issue is that there is no way to do schema migrations in core (currently). So there's no way to handle increasing the length of the username field. More comprehensive solutions require more thought to figure out the pluggable User models. On Friday, March 9, 2012 at 12:54 AM, Cl

Re: authentication by email

2012-03-08 Thread Clay McClure
"Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design"—unless you want to do something seemingly simple like using email addresses for authentication, in which case you need to monkey patch models and forms to get everything working right, wh

The model class should have default ``__cmp__`` method.

2012-03-08 Thread Λlisue
I have the following codes for testing model and it's works correctly in Django 1.3 + Python 2.7 without unittest2:: # in method of TestCase subclass --- user1 = User.objects.create_user(username='user1', email='us...@test.com', password='password') user2 = User.obj

Re: [1.4] Pass "obj" parameter to get_inline_instances

2012-03-08 Thread Yohan Boniface
Hi Carl, Thanks for your answer. I fully understand your point: I'm late in the release process. In the other hand, can't we consider this as a "bug" for the fact that this new feature is not consistent with what we can call a "de facto API"? What I mean is that "request" and "obj" are passed

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Ian Clelland
On Thu, Mar 8, 2012 at 8:48 AM, Carl Meyer wrote: > Hi Ian, > > On 03/08/2012 08:40 AM, Ian Clelland wrote: > > On Thursday, March 8, 2012, Aymeric Augustin > > > > wrote: > >> PEP 414 was accepted a few days ago. It's designed to make it easier > > to

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Aymeric Augustin
2012/3/8 Carl Meyer > Note that the current version of Vinay's port (since it was updated to > account for dropping Python 2.5 support post-1.4) does not use u() and > b() functions, it uses "from __future__ import unicode_literals". This > means that the only place string wrappers are needed is

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Carl Meyer
Hi Ian, On 03/08/2012 08:40 AM, Ian Clelland wrote: > On Thursday, March 8, 2012, Aymeric Augustin > > wrote: >> PEP 414 was accepted a few days ago. It's designed to make it easier > to support 2.6, 2.7, 3.3+ on the same codebase. > > (finishes reading

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Ian Clelland
On Thursday, March 8, 2012, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > PEP 414 was accepted a few days ago. It's designed to make it easier to support 2.6, 2.7, 3.3+ on the same codebase. (finishes reading) Ugh. I'm starting to expect "PEP 499: In a last-ditch effort to encour

Re: [1.4] Pass "obj" parameter to get_inline_instances

2012-03-08 Thread Carl Meyer
Hi Yohan. On 03/08/2012 07:04 AM, Yohan Boniface wrote: > Some great changes have been made on the admin for this release. One of > them is the add of the "get_inline_instances" [1], that gives the > possibility to change the inlines list at runtime. > > I've a little suggestion on this. It could

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Carl Meyer
On 03/08/2012 08:19 AM, Łukasz Rekucki wrote: > On 8 March 2012 16:43, Aymeric Augustin > wrote: >> PEP 414 was accepted a few days ago. It's designed to make it easier to >> support 2.6, 2.7, 3.3+ on the same codebase. >> >> I hope we'll take advantage of this new feature in Django; however, that

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Łukasz Rekucki
On 8 March 2012 16:43, Aymeric Augustin wrote: > PEP 414 was accepted a few days ago. It's designed to make it easier to > support 2.6, 2.7, 3.3+ on the same codebase. > > I hope we'll take advantage of this new feature in Django; however, that > means a large update (if not a reboot) of the py3k

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Aymeric Augustin
PEP 414 was accepted a few days ago. It's designed to make it easier to support 2.6, 2.7, 3.3+ on the same codebase. I hope we'll take advantage of this new feature in Django; however, that means a large update (if not a reboot) of the py3k branch. -- Aymeric. -- You received this message beca

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Karen Tracey
On Thu, Mar 8, 2012 at 10:29 AM, Joe & Anne Tennies wrote: > [snipped] It's mostly done at this point. It got done just before > the 1.4 lockdown, but it was too much risk to take on that late in the > release cycle. Also it's more cleanly done if we can drop support for Python 2.5, which argued

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Joe & Anne Tennies
There's a branch... somewhere (bitbucket or github I believe) that supports both 2.x and 3.x. It's mostly done at this point. It got done just before the 1.4 lockdown, but it was too much risk to take on that late in the release cycle. It does pass most of the tests at this point (I believe all tha

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Florian Apolloner
Hi, Am Donnerstag, 8. März 2012 15:51:58 UTC+1 schrieb Vladimir Perić: > > I was also considering applying for as a GSoC student to Django this > summer, but I see that the "Python 3 porting" project has been removed > from the new list. Is there a reason for this? > Django already has a workin

[1.4] Pass "obj" parameter to get_inline_instances

2012-03-08 Thread Yohan Boniface
Hi, First of all, congrats to the core team for the first rc of the 1.4 release! Some great changes have been made on the admin for this release. One of them is the add of the "get_inline_instances" [1], that gives the possibility to change the inlines list at runtime. I've a little suggesti

Re: Django participation in Google Summer of Code 2012

2012-03-08 Thread Vladimir Perić
Hi, On Mar 7, 10:08 am, Russell Keith-Magee wrote: > One quick update -- Django's 2012 GSoC wiki page is now up, at the somewhat > predictable URL: > > https://code.djangoproject.com/wiki/SummerOfCode2012 I was also considering applying for as a GSoC student to Django this summer, but I see tha