Change to order of Session creation in 1.4?

2012-04-13 Thread Justin Holmes
I have a signal hook set on user_login. I use this in order to get_or_create a SessionInfo object, which I use to keep track of data about users who may login from more than one computer at the same time. in 1.3, the Session object for the login that is taking place had already been created at th

Re: Implementation of Object Permissions

2012-04-13 Thread Moritz S.
I checked the four most used solutions. The first three ones use GenericKeys (in my opinion not the ideal solution as I described above) and the fourth one as far as I can see does not use the auth permission backend but does permission handling on his own. -Moritz Am Samstag, 14. April 2012 02

Re: Implementation of Object Permissions

2012-04-13 Thread Mike Axiak
How does it compare to the solutions that already exist listed here? http://djangopackages.com/grids/g/perms/ -Mike On Fri, Apr 13, 2012 at 7:56 PM, Moritz S. wrote: > Hi all, > > I have been using django for a while and became happy by the time I > discovered the auth module that supports per

Implementation of Object Permissions

2012-04-13 Thread Moritz S.
Hi all, I have been using django for a while and became happy by the time I discovered the auth module that supports permission handling. But this module turned out to only be able to handle model based permissions. I could not imagine django of not having such a basic functionality (in my opi

Re: Revised revised form rendering

2012-04-13 Thread Carl Meyer
Hi Mikhail, On 03/29/2012 01:31 PM, Mikhail Korobov wrote: > GSoC'11 Gregor Müllegger's and Carl Meyer's project (Revised form > rendering) seems to get stuck because of performance issues. > > Question 1. Am I understand this correctly and the limiting factor is > the template rendering speed?

Re: GSoC 2012: Security Enhancements

2012-04-13 Thread Luke Plant
Hi Rohan, Sorry for the slow reply on this one, I've had a busy time recently. Please see my comments on some parts of this proposal. On 31/03/12 19:10, Rohan Jain wrote: > Hi, > > I am Rohan Jain, a 4th (final) year B.Tech undergraduate Student from > Indian Institute of Technology, Kharagpur.

Re: extra files in startproject

2012-04-13 Thread Daniel Sokolowski
Hi Carl, Looks fine to me, and I think throwing the warning at the end is indeed a good idea. -Original Message- From: Carl Meyer Sent: Friday, April 13, 2012 2:20 PM To: django-developers@googlegroups.com Subject: Re: extra files in startproject -- You received this message because

Re: Django 1.4: session_key is None when calling a view with the test client

2012-04-13 Thread Kai Diefenbach
Hi Aymeric, On 2012-04-13 17:11:48 +, Aymeric Augustin said: On 13 avr. 2012, at 18:42, Kai Diefenbach wrote: Now my questions: Is this by intention? Can I get around that? Has this any meaning for the application in production? This is most likely a consequence of r17155 [1]. Okay, I

Re: auth.user refactor: the profile aproach

2012-04-13 Thread Hanne Moa
On 3 April 2012 04:56, Alex Ogier wrote: > I get that Django's core is very accustomed to the relational database mode > of thinking: "If a User might own a Twitter handle, then let's create a > table of twitter handles in the twitter-auth app, and foreign key back to > the default User model". It

Re: django.contrib.sites.managers.CurrentSiteManager spanning more than one model

2012-04-13 Thread Rory Geoghegan
Hi, I have a patch for this on pastebin here: http://pastebin.com/u5g67iPP Please tell me if it is worth integrating, --Rory Geoghegan On Thu, Apr 5, 2012 at 3:53 PM, Rory Geoghegan < rory.geoghe...@ecometrica.com> wrote: > The only hard part is modifying the _validate_field_name method. > get_

Re: extra files in startproject

2012-04-13 Thread Carl Meyer
On 04/13/2012 08:33 AM, Carl Meyer wrote: > Thanks Daniel. I'm experimenting right now with a patch to setup.py that > would print a loud warning to console if it detects an existing django/ > directory in the target site-packages. I've filed a pull request (https://github.com/django/django/pull/1

Re: Django 1.4: session_key is None when calling a view with the test client

2012-04-13 Thread Aymeric Augustin
On 13 avr. 2012, at 18:42, Kai Diefenbach wrote: > Now my questions: Is this by intention? Can I get around that? Has this any > meaning for the application in production? Hello Kai, This is most likely a consequence of r17155 [1]. I'd like to understand if it's possible to trigger a regressi

Django 1.4: session_key is None when calling a view with the test client

2012-04-13 Thread Kai Diefenbach
Hi, when I call a view with the test client (django.test.client.Client) like, for instance, so: self.client.post(reverse('lfs_login'), {'action': 'register', 'email': 't...@test.com', 'password_1': 'password', 'password_2': 'password'}) with Django 1.3.1 the session_key of session is set:

Re: extra files in startproject

2012-04-13 Thread Jan Schotsmans
Tbh, you can not go cater to this type of new users, that start badmouthing the project right out the gate, with the first hint of trouble, either becoming insulting, out right, on the developer list, or doing as you put in your example, posting bad things on their blogs. If Jason had sent a mail

Re: extra files in startproject

2012-04-13 Thread Daniel Sokolowski
You sir are Epic! -Original Message- From: Carl Meyer Sent: Friday, April 13, 2012 10:33 AM To: django-developers@googlegroups.com Subject: Re: extra files in startproject -- You received this message because you are subscribed to the Google Groups "Django developers" group. To po

Re: extra files in startproject

2012-04-13 Thread Carl Meyer
On 04/13/2012 08:30 AM, Daniel Sokolowski wrote: > People won’t always read all the docs – it’s a fact – so sooner or later > some other new comer will experience this issue complain, gave up and > worse even blog his/hers negative experience. We do want the newbie > experience to be as painless as

Re: extra files in startproject

2012-04-13 Thread Daniel Sokolowski
People won’t always read all the docs – it’s a fact – so sooner or later some other new comer will experience this issue complain, gave up and worse even blog his/hers negative experience. We do want the newbie experience to be as painless as possible which means popularity and growth of the fra

Re: extra files in startproject

2012-04-13 Thread Carl Meyer
Hi Alex, On 04/12/2012 10:49 PM, Alex Ogier wrote: > The problem is that not everyone uses package managers. A reasonable > way to track django trunk for example is to periodically pull and run > "setup.py install" which is in most cases approximately idempotent. I > have seen setup.py's that use

Re: django db library doesn't handle quoted table/field names

2012-04-13 Thread Craig Lucas
I can attempt to merge his changes in and test it. Do people typically merge these changes in manually? I see changes from a bunch of different people over the last 4 years, should I just grab the last guys changes? On Thu, Apr 12, 2012 at 9:16 PM, Ramiro Morales wrote: > On Thu, Apr 12, 2012 at

Re: auth.user refactor: the profile aproach

2012-04-13 Thread Tom Evans
On Tue, Apr 10, 2012 at 6:04 PM, Alex Ogier wrote: > Hi Tom, > > The best rounded description with pros and cons is Solution 2a on > https://code.djangoproject.com/wiki/ContribAuthImprovements > > You are correct that I am primarily thinking of pluggable authentication > when I think of this new u

Re: extra files in startproject

2012-04-13 Thread Alex Ogier
On Apr 13, 2012 3:30 AM, "Luciano Pacheco" wrote: > > This "import django" will work even when django is not installed, because usually "python setup.py " is ran from checkout of django, that contains the valid folder (python package) named "django". So, this "import django" will import relative t

Re: extra files in startproject

2012-04-13 Thread Luciano Pacheco
On Fri, Apr 13, 2012 at 5:15 PM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > On 12 avr. 2012, at 23:16, Aymeric Augustin wrote: > [...] > So a documentation fix might not be sufficient to eradicate the problem. > Could we add this in a pre-install hook in setup.py? > > try: >

Re: extra files in startproject

2012-04-13 Thread Aymeric Augustin
On 12 avr. 2012, at 23:16, Aymeric Augustin wrote: > Some people who had the habit of running "setup.py install" from a git clone > to keep up-to-date with the development version reported the problem. > (Just to be 100% clear — this technique doesn't work because it doesn't > remove .py or .pyc