Re: Python 3

2007-09-02 Thread Bjørn Stabell
Guido strongly recommends you try to rely on the 2to3 conversion tool to generate the Python 3000 version for a while to come, or suffer having to maintain two code bases. So "porting" should ideally be fixing the 2to3 tool, or tweaking the Python 2.x version of Django so that the tool can do its

Re: Django Week in Review -- ATTN: Adrian Holovaty

2007-06-26 Thread Bjørn Stabell
Great work, Clint! These updates are going to be a lifesaver! --~--~-~--~~~---~--~~ 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 un

Re: unicode issues in multiple tickets (#952, #1356, #3370) and thread about Euro sign in django-users

2007-02-04 Thread Bjørn Stabell
On Feb 1, 4:16 pm, Michael Radziej <[EMAIL PROTECTED]> wrote: > Ivan Sagalaev: > > > Michael Radziej wrote: > >> d) make the database wrapper accept both unicode and bytestrings in > >> the models, but always pass unicode strings to the database backend. Sounds like a reasonable proposal. You ma

Re: unicode issues in multiple tickets (#952, #1356, #3370) and thread about Euro sign in django-users

2007-01-27 Thread Bjørn Stabell
On Jan 28, 2:02 pm, "ak" <[EMAIL PROTECTED]> wrote: > Bjorn, if you read my first messages and specially my patch #3370, you > find that I made a suggestion that if the guys want to move to unicode > they better drop all native encodings support and so does my patch. You mean require all I/O edge

Re: unicode issues in multiple tickets (#952, #1356, #3370) and thread about Euro sign in django-users

2007-01-27 Thread Bjørn Stabell
On Jan 28, 4:03 am, "ak" <[EMAIL PROTECTED]> wrote: > After some thoughts I came to the following conclusion: if you guys > want to keep support of legacy charsets in fact you don't have to > force model objects too be unicoded. Firstly, they are passed to > templates and filters and we can't mix

Re: QuerySet's __repr__

2007-01-14 Thread Bjørn Stabell
Malcolm Tredinnick wrote: [...] This seems like a reasonable idea, although I'm not sure if __repr__ is the right place for it or not (and that's something that doesn't interfere with the implementation anyway, so I'm not going to worry much). In principle __repr__ should be the right place (a

QuerySet's __repr__

2006-12-28 Thread Bjørn Stabell
Hi, I would like to be able to serialize QuerySets for use as "canned" queries etc, and looking at QuerySet it's currently delegating __repr__ to its data. I was wondering what the feeling would be to change this to actually return a Python expression that would evaluate to the value of the Que

Re: Branch Merges?

2006-11-08 Thread Bjørn Stabell
Although the http://code.djangoproject.com/wiki/ActiveBranches is better than what we had before, it can still be easier and more clear how to participate. Something like this might work better: generic-auth - Allow for ACL's, role-based systems, and current model-level permissions * Owner: Jose

Re: Branch Merges?

2006-11-08 Thread Bjørn Stabell
Why not have both a "branch per month" and all branches featured prominently on the home page? --~--~-~--~~~---~--~~ 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: limit_choices_to does not limit list_filter in admin interface

2006-10-14 Thread Bjørn Stabell
I'd love to see this as well. An alternative is to only show values that are actually in use for the field in the list_filter. This would further reduce the clutter of filters. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Cannot search ForeignKeys that can be null?

2006-09-25 Thread Bjørn Stabell
Given these two example models and sample data: class Venue(models.Model): title = models.CharField("title") class Event(models.Model): title = models.CharField("title") venue = models.ForeignKey(Venue, null=True, blank=True) class Admin: search_fields = ('

Re: RDBMS vs ODBMS

2006-08-30 Thread Bjørn Stabell
GinTon wrote: > I have seen that for web applications is best far using a ODBMS: > > 1- Objects in an OODBMS can store an arbitrary number of atomic types > as well as other objects. The fact that an OODBMS is better suited to > handling complex,interrelated data than an RDBMS means that an OODBMS

Re: [Fw]The Python Web Framework

2006-08-26 Thread Bjørn Stabell
James Bennett wrote: > On 8/22/06, Karl Guertin <[EMAIL PROTECTED]> wrote: > > http://www.sqlalchemy.org/docs/adv_datamapping.myt > > Some of these examples deal with rather exotic use cases that, I > think, are close to the edge of what ORM can reasonably do before the > abstraction starts leakin

Re: Graham Dumpleton about mod_python

2006-08-20 Thread Bjørn Stabell
I do remember posting a comment on the Django docs site about mod_python and mpm-worker crashes a while ago, but I cannot find it on the Django site anymore. In any case, we were using mod_python 3.1.3-3. I'm happy to hear it's been fixed in 3.2.8. Unfortunately, even Debian unstable is still a

Re: django unicode-conversion, beginning

2006-08-16 Thread Bjørn Stabell
In China GB18030 is required to be used by law, any most sites just assume the browser uses that as the default, so they don't even specify a character encoding. Your likely setup for international web sites is to have Unicode in the database (since databases have special support for it and it is

Re: Model inheritance redux

2006-08-07 Thread Bjørn Stabell
Alan Green wrote: > Sure. In this case you would need a discriminator attribute on Place. [...] > I'd be pleased to see Django require discriminator attributes on > superclasses, and then automagically retrieve the correct subclasses > at the correct times. It seems to work well enough in ORMs suc

Re: Model inheritance redux

2006-08-07 Thread Bjørn Stabell
Okay, I've got one more question. If we're not going to support querying for an object's real type, it becomes quite cumbersome to do anything polymorphically, which kind-of is the point of object-orientation. For example, to use the same URI spec & view for all the subtypes. OPTION 1: lots of

Re: Model inheritance redux

2006-08-06 Thread Bjørn Stabell
Joseph & Malcom, thanks for the comments. Just wanted to make sure I could stand my ground in the face of Rails-istas :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this gr

Email address as username

2006-08-06 Thread Bjørn Stabell
Hi, We'd like to use the email address as the username, but @'s not allowed in usernames. I was just wondering if there's a reason why usernames are restricted to alphanumeric characters only? We could, of course, just store the email address with @'s substituted with some other alphanumeric ch

Re: Model inheritance redux

2006-08-04 Thread Bjørn Stabell
Just a question; how does this compare pros and cons with single-table inheritance, used in Rails? See: http://twelvelabs.com/singletable/index.html Rgds, Bjorn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

TreeField/ TreeWidget

2006-07-14 Thread Bjørn Stabell
I was wondering if anyone has made a field for managing hierarchical data in Django? For example, a TreeField that manages "parent" relationships and gives the model parent and children object managers: class Category(model.Model): tree = TreeField() >>> a = Category() >>> b = Categor

Re: Manipulators going away?

2006-07-11 Thread Bjørn Stabell
Adrian Holovaty wrote: > You're right -- models will gain validation, and there will be a > helper function/method that returns a data structure that encapsulates > form validation/redisplay (like a Manipulator currently does). That'll > be replacing the current "automatic" manipulators, which I'v

Re: Unicodification of Django

2006-06-30 Thread Bjørn Stabell
Jacob Kaplan-Moss wrote: > On Jun 28, 2006, at 8:08 AM, Gábor Farkas wrote: > > let's imagine for a second that the unicode-django patch is done and > > available (it's not, but let's imagine it is) > > > > would there be a chance to get it applied? > > Obviously that would depend on the quality o

Re: models in more files

2006-05-04 Thread Bjørn Stabell
I submitted a ticket about this (I believe) 2 weeks ago: http://code.djangoproject.com/ticket/1658 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djan

Re: Django/Dojo integration: take a look and speak up

2006-04-13 Thread Bjørn Stabell
Could you make it available as a patch against the latest magic-removal branch? --~--~-~--~~~---~--~~ 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@googl

More than two-levels of inline editing?

2005-11-16 Thread Bjørn Stabell
Hi all, Is there any work underway to implement more than two-levels of inline editing in the admin interface? I.e., Company/ Department/ Team/ Person in one interface? I see this talk about 'new-admin' so I'd thought I'd ask. Rgds, -- Bjorn