Re: Media support enhancement

2006-04-28 Thread Ivan Sagalaev
Victor Kropp wrote: >I'm a student from Saint-Petersburg, Russia. > Hi! :-) >2. Improve ImageField. It should allow deleting files > Note, that there is an old ticket about this: http://code.djangoproject.com/ticket/369 and it's wontfixed. So it might be hard to persuade core devs to include t

Re: Distributed Applications and Database Data

2006-04-28 Thread Matthew Flanagan
I sure MR has hooks for this. Have a look in django/contrib/sites/management.py at how it uses the new event system to create the example.com Site object. On 4/28/06, Brantley Harris <[EMAIL PROTECTED]> wrote: > > I've started to impliment my proposal for schema implementation and > realized that

Re: magic-removal merge status

2006-04-28 Thread Ken Kennedy
Cool. I really am looking for to it. I have a new project going in MR, and it's nice! I like all the auth stuff in one place...much simpler. WRT migrating my older app, though...ick. Do you expect more db-schema changes of this magnitude before 1.0? I've been in and out of the rabbit-hole of DML

magic-removal merge status

2006-04-28 Thread Adrian Holovaty
A quick magic-removal merge update -- I've been proofreading all the Django documentation to make sure it's all been updated for magic-removal, and it's taken a bit longer than I expected, so the merge won't be happening today (Friday). I'll continue to proofread over the weekend and hope to do t

Re: Opinions requested about validating edit_inline fields

2006-04-28 Thread Malcolm Tredinnick
On Fri, 2006-04-28 at 13:52 +, Jason Davies wrote: > > Malcolm Tredinnick wrote: > > On Thu, 2006-04-27 at 09:19 -0700, Jason Davies wrote: [...] > > > How about passing an optional name_prefix parameter to these > > > validators, which would allow them to look up things like > > > all_data[n

Re: Object (not schema) versioning/history

2006-04-28 Thread Adrian Holovaty
On 4/28/06, Vitaliy Fuks <[EMAIL PROTECTED]> wrote: > These records would be very infrequently accessed (in my worldview, > anyway), and perhaps generally infrequently created. I would love to > be able to put @versioned on top of a model and then have it > automatically create an app_model_histo

Media support enhancement

2006-04-28 Thread Victor Kropp
Hi all, I'm a student from Saint-Petersburg, Russia. I want to take part in Google's Summer of Code. I'd like to enhance media support in Django. This is the "face" of a site and this is what users like (or don't). So, improving media support will make Django more attractive for end users. The

Re: patch testing?

2006-04-28 Thread Michael Radziej
Adrian Holovaty wrote: > I'd say, do that, plus run the Django unit-test suite. See > http://www.djangoproject.com/documentation/contributing/#unit-tests > for more on those. > > If your patch introduces some new functionality, we encouage you to > submit unit tests along with the patch, in a way

Re: unexpected results for AnyModel.objects.filter(anyfield=None)

2006-04-28 Thread Michael Radziej
Luke Plant wrote: > First, you do 'IS NULL' in Django using anyfield__isnull=True. I *am* aware. I stumbled across this when my application put None into a variable where a primary key value was expected (quite within the logic) and using this for filter(). It should have produced no results

Re: unexpected results for AnyModel.objects.filter(anyfield=None)

2006-04-28 Thread Luke Plant
On Friday 28 April 2006 18:45, Michael Radziej wrote: > I started to track this down, found that while constructing the sql > clause, None values are deliberately ignored. > > In db.models.query, function parse_lookup() walks through the kwargs > and tests: > > for kwarg, value in kwarg_items

Re: patch testing?

2006-04-28 Thread Adrian Holovaty
On 4/28/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > What level of testing do you expect from patch authors? > > I usually check the output of pychecker and test within my own > application. If logic is difficult, I also try to cover all code > branches. But I don't try to do a proper "make ev

patch testing?

2006-04-28 Thread Michael Radziej
Hi, to the core developers, something I've started to wonder: What level of testing do you expect from patch authors? I usually check the output of pychecker and test within my own application. If logic is difficult, I also try to cover all code branches. But I don't try to do a proper "make ev

unexpected results for AnyModel.objects.filter(anyfield=None)

2006-04-28 Thread Michael Radziej
Hi, I was completely surprised by this (magic-removal branch): AnyModel.objects.filter(anyfield=None) fetches the whole row! >>> ddd=models.Domainkunde.objects.filter(pk=None) >>> ddd.count() 19985L I would have expected an empty result set, even if there were rows with id NULL (I know that N

Re: Template tag magic that hasn't been removed

2006-04-28 Thread Rudolph
I just thought of a better solution. Taglibraries are just like templates: - they get loaded from paths set in settings.py - and else they get loaded by the template_loaders IMHO we could do the same thing for taglibraries. Rudolph --~--~-~--~~~---~--~~ You rece

Re: Template tag magic that hasn't been removed

2006-04-28 Thread Rudolph
Maybe the error message should be a bit more informative. Instead of telling the programmer the taglibrary isn't in django.templatetags, it should tell the taglibrary is not found inside one of the INSTALLED_APPS. It would be cleaner if one could load taglibraries from every possible location: it

Re: Permissions

2006-04-28 Thread Joseph Kocherhans
On 4/28/06, Andreas Neumeier <[EMAIL PROTECTED]> wrote: > > I'm not quite sure, it may be me: Is the permission system working at > all in the magig-removal branch? > > I added something like that to my model just yesterday: > --- > class Meta: > permissions = ( > ("can_create", "Can c

Firebird support

2006-04-28 Thread David Elias
Hi there, Is anyone working on this? I already found some problems for the firebird adapter, or not :) For example the LIMIT OFFSET clause, firebird uses SELECT FIRST SKIP and the sql construction in django implies that the limit offset is always appended with the backed.get_limit_offset_sql()

Object (not schema) versioning/history

2006-04-28 Thread Vitaliy Fuks
As I am thinking about using Django for a particular project I was wondering if anyone ever considered keeping track of object content history. For example, in a typical CMS/newspaper application with multiple contributors I'd like to keep track of actual changes made to some pieces of content by

Re: Opinions requested about validating edit_inline fields

2006-04-28 Thread Jason Davies
Malcolm Tredinnick wrote: > On Thu, 2006-04-27 at 09:19 -0700, Jason Davies wrote: > > > > > A solution that fits all needs would be to create an extra parameter for > > > these validators (the ones that take field names) that indicates that > > > only fields for this class should be considered (