Re: Non-Western person names

2007-09-28 Thread Mike Scott
This is something that has been a gripe of mine in a current project, where by originally we had organisations as users, rather than users themselves. I think what should happen is the django user class should have a "displayname" field, for which defaulted to the username if none was provided, if

Non-Western person names

2007-09-28 Thread 周濟是母老鼠
I created #5638 ( http://code.djangoproject.com/ticket/5638 ), would you like to have a discuss? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django

Re: Custom permissions and contenttypes

2007-09-28 Thread eXt
On 28 Wrz, 22:35, "Deryck Hodge" <[EMAIL PROTECTED]> wrote: > Hrr... I see your point about each, at least as a use case. I > think there are ways to get what you want without, though. I see that I can define a model called GlobalPermissions and set my custom permissions on it. > For case #1

Re: Custom permissions and contenttypes

2007-09-28 Thread Jacob Kaplan-Moss
On 9/28/07, Deryck Hodge <[EMAIL PROTECTED]> wrote: > This is just how I'd handle the same requirements. Others may see a > need for content types being decoupled from installed apps. Mmm I dunno - I see contenttypes as a implementation detail of models, and something that code shouldn't rel

Re: Queryset in newforms

2007-09-28 Thread Collin Grady
Mario Gonzalez said the following: > That's what I want to solve, give the opportunity to the programmer > to change the queryset easily when a form_for_model is needed but you > don't need the default queryset. I understand what you want, and you can do it with a formfield_callback! You do /n

Re: Custom permissions and contenttypes

2007-09-28 Thread Deryck Hodge
On 9/28/07, eXt <[EMAIL PROTECTED]> wrote: > > Hi! > >Custom content types without a model give me a lot of flexibility. > For example: > > 1. I've got a bunch of reports which are generated by Jasper Reports. > In my Django app I have some groups of users and each of them should > see a diffe

Re: Schema Evolution status (official)

2007-09-28 Thread Xan
Russel, I'm only a non-programmer user, but just curious question: why you (all of core developers) implement the schema evolution in the self model that is evolving and not outside the model? Why not if you have: from django.db import models class Poll(models.Model): question = mo

Re: Custom permissions and contenttypes

2007-09-28 Thread eXt
Hi! Custom content types without a model give me a lot of flexibility. For example: 1. I've got a bunch of reports which are generated by Jasper Reports. In my Django app I have some groups of users and each of them should see a different subset of reports. Reports are not defined in my datab

Re: Custom permissions and contenttypes

2007-09-28 Thread Deryck Hodge
On 9/28/07, Rob Hudson <[EMAIL PROTECTED]> wrote: > Is there anything in Django to "register" a custom content type or > permission that the ContentType object can call on to determine if a > content type is registered, and if not, remove it? Or could one be > added? > It's the custom content ty

Re: Admin interface search queries not working for me

2007-09-28 Thread Will McCutchen
On Sep 27, 9:41 pm, yish <[EMAIL PROTECTED]> wrote: > I defined my search_fields for my model as > seach_fields ('name') > instead of > search_fields ['name'] > ... > If anyone is curious, what ended up happening is instead of iterating > across the search fields, it iterated across the letter

Re: Custom permissions and contenttypes

2007-09-28 Thread Rob Hudson
On Sep 27, 12:53 am, eXt <[EMAIL PROTECTED]> wrote: >I found that there was a change in > django.contrib.contenttypes.management.py which adds: I wrote that patch so I can at least respond but I think this bubbles up into a design decision for Django... > This causes removal of my custom con

Re: Schema Evolution status (official)

2007-09-28 Thread Derek Anderson
hey marty, i agree. see: http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation maybe another day or two for the stand-alone version... derek Marty Alchin wrote: > I won't get into the discussion on features or implementation yet, but > I do have to agree that working code speaks vo

Re: official shop of django?

2007-09-28 Thread Xan
On Sep 28, 12:19 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/27/07, Xan <[EMAIL PROTECTED]> wrote: > > > > > Yes, I suspect you "will create" a foundation of something of this > > kind. > > Like python foundation but with django ;-) > > > If you plan to create that, please consid

Re: I18n seems not to work with mod_wsgi

2007-09-28 Thread [EMAIL PROTECTED]
Still the same using Apache/2.2.2 and mod_wsgi 1.0 On Sep 28, 2:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I will try apache 2.2 I am currentry running 2.0.58 on freebsd 6.1 > > On Sep 28, 2:20 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > > > On 9/28/07, [EMAIL PROTECTED] <[EMAI

Re: Queryset in newforms

2007-09-28 Thread Mario Gonzalez
On 27 sep, 18:36, Collin Grady <[EMAIL PROTECTED]> wrote: > > Actually, you don't - I just checked the formfield method of > ManyToManyField, and you can pass the queryset directly to that, so it > will use that when it generates the field instead of whatever it would > normally default to. > Ye

Re: Schema Evolution status (official)

2007-09-28 Thread Marty Alchin
I won't get into the discussion on features or implementation yet, but I do have to agree that working code speaks volumes compared to descriptions. I'll have need for schema evolution in a future project, so I've been following these discussions, and I've completely lost track of who's working on

Re: I18n seems not to work with mod_wsgi

2007-09-28 Thread [EMAIL PROTECTED]
I will try apache 2.2 I am currentry running 2.0.58 on freebsd 6.1 On Sep 28, 2:20 pm, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > Updated mod_wsgi to revision 561 > > > No change > > > On Sep 28, 10:25 am, "[EMAIL PROTECTED]" >

Re: I18n seems not to work with mod_wsgi

2007-09-28 Thread Ramiro Morales
On 9/28/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Updated mod_wsgi to revision 561 > > No change > > On Sep 28, 10:25 am, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: > > Django revision: 6426 > > Mod_wsgi revision: Revision: 489 > > Mod_python 3.2.7 > > > > To test just set up the

Re: I18n seems not to work with mod_wsgi

2007-09-28 Thread [EMAIL PROTECTED]
Updated mod_wsgi to revision 561 No change On Sep 28, 10:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Django revision: 6426 > Mod_wsgi revision: Revision: 489 > Mod_python 3.2.7 > > To test just set up the admin interface and see if it is translated or > not. > > -- > > start

Re: Django 100% threadsafe with DB?

2007-09-28 Thread PyMan
On 28 Set, 11:06, PyMan <[EMAIL PROTECTED]> wrote: > Just for notice...in few words... > > i've modified some files of django.db.models putting a decorator > function on all those functions that are critical (get_or_create, > save, create, delete, add, remove, etc.). The decorator function just

Re: Django 100% threadsafe with DB?

2007-09-28 Thread PyMan
Just for notice...in few words... i've modified some files of django.db.models putting a decorator function on all those functions that are critical (get_or_create, save, create, delete, add, remove, etc.). The decorator function just does : * RLock.acquire * execute the requested function * RLo

Re: I18n seems not to work with mod_wsgi

2007-09-28 Thread [EMAIL PROTECTED]
Django revision: 6426 Mod_wsgi revision: Revision: 489 Mod_python 3.2.7 To test just set up the admin interface and see if it is translated or not. -- startup script #!/usr/local/bin/python import sys, os paths = [ '/home/hvalsluken/code'] if paths not in sys.path: for path in