Re: Ticket #3297 and File uploads

2007-06-05 Thread Malcolm Tredinnick
On Mon, 2007-06-04 at 16:04 +1000, Malcolm Tredinnick wrote: > On Mon, 2007-06-04 at 12:44 +0800, Russell Keith-Magee wrote: > > Hi All, > > > > I've been looking at ticket #3297 - a request to implement FileField > > and ImageField in newforms. > > > > Adrian's comments on this ticket, plus the

Re: custom element in search_field [admin class]

2007-06-05 Thread Malcolm Tredinnick
On Wed, 2007-06-06 at 00:57 +, Iapain wrote: > Hi, > > I was wondering if we can specify our own custom element like function > in *search_field* in Admin class. e.g > > class Student(models.Model): > name = models.CharField(maxlength=255) > > class Admin: > search_list = ['name', '

custom element in search_field [admin class]

2007-06-05 Thread Iapain
Hi, I was wondering if we can specify our own custom element like function in *search_field* in Admin class. e.g class Student(models.Model): name = models.CharField(maxlength=255) class Admin: search_list = ['name', 'my_custom_list_or_object_row'] def my_custom_list_or_object_row(se

Re: Ping: Extend "for" tag to allow unpacking of lists

2007-06-05 Thread SmileyChris
New patch uploaded, taking into account Brian's thoughts (and fixing a small bug): http://code.djangoproject.com/ticket/3523#comment:11 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: Ping: Extend "for" tag to allow unpacking of lists

2007-06-05 Thread SmileyChris
On Jun 5, 11:48 pm, Brian Harring <[EMAIL PROTECTED]> wrote: > Comments on the patch/syntax at least; Offhand, test > 'for-tag-unpack03' points out some uglyness in the api- > > {% for key value in items %} > {{ key }}:{{ value }}/ > {% endfor %} Regarding the whole comma/space issue, t

Re: multiple-db-support

2007-06-05 Thread JP
I replied to Ben via email, but for the group, again: multi-db needs a new maintainer. I don't have the time to keep up with merging it, let alone to add new features or complete the documentation. I think Ben has some excellent ideas here and would be a great maintainer candidate. JP On Jun 5,

Re: Volunteer(s) needed: Django needs a buildbot

2007-06-05 Thread Jason Sankey
On Jun 2, 1:15 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > We talked about this a while back: Django really needs a buildbot (or > some other continuous integration tool). I had planned to tackle this > myself (using Bitten --http://bitten.cmlenz.net/) but it's getting > clear I'm not goi

Re: dbsettings

2007-06-05 Thread Marty Alchin
On 6/5/07, Ilya Semenov <[EMAIL PROTECTED]> wrote: > I run into the problem that the module doesn't seem to work well with > Apache+mod_python. The new values are actually saved to the db, but > not used until I restart Apache (neither as class members nor in the > admin settings panel). I think t

Re: Ping: Extend "for" tag to allow unpacking of lists

2007-06-05 Thread Brian Harring
Personally, I'd like the patch to go in; the support is far easier on the eyes reading wise, and it has the nice side affect of speeding up the access- index access is last in the chain for var resolution, meaning several pricey exceptions/tests occur every access. Faster resolution, and cleane

Re: Can django support easy_install

2007-06-05 Thread kernel1983
Yes,Waylan Limberg Do you mean it is the problem of PyPI but not django? On 6月5日, 上午12时06分, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 6/4/07, kernel1983 <[EMAIL PROTECTED]> wrote: > > > Setuptools is a powerful tools for python. > > > When could django support it? At Version One? > >

Re: Ping: Extend "for" tag to allow unpacking of lists

2007-06-05 Thread Russell Keith-Magee
On 6/5/07, David Larlet <[EMAIL PROTECTED]> wrote: > > 2007/6/5, SmileyChris <[EMAIL PROTECTED]>: > > > > Ticket http://code.djangoproject.com/ticket/3523 has been sitting > > quietly for a couple of months as a design decision and it's a > > reasonably common question in the IRC channel so I thou

Re: Ping: Extend "for" tag to allow unpacking of lists

2007-06-05 Thread David Larlet
2007/6/5, SmileyChris <[EMAIL PROTECTED]>: > > Ticket http://code.djangoproject.com/ticket/3523 has been sitting > quietly for a couple of months as a design decision and it's a > reasonably common question in the IRC channel so I thought I'd ask a > core developer for a decision. > I'm not a cor

Re: newforms + editable=False

2007-06-05 Thread Russell Keith-Magee
On 6/5/07, Michael Radziej <[EMAIL PROTECTED]> wrote: > > On Tue, Jun 05, Malcolm Tredinnick wrote: > > > The number "4" exists as a piece of data, irrelevant of > > whether it was created by a user, a machine or a bunny rabbit. > > I hope no animals were harmed for producing this e-mail? ;-) Onl

newforms-admin - why propagate AttributeError?

2007-06-05 Thread Honza Král
In django/contrib/admin/templatetags/admin_list.py in function result_headers AttributeError is being propagated (apparently it was a design decision) when getattr fails on the model. This causes some problems with dynamically generated fields/properties/methods. I stumbled across it when I tried

Re: dbsettings

2007-06-05 Thread Ilya Semenov
Marty, Thanks for your work! I run into the problem that the module doesn't seem to work well with Apache+mod_python. The new values are actually saved to the db, but not used until I restart Apache (neither as class members nor in the admin settings panel). I think that's because of the per-pro

Re: newforms + editable=False

2007-06-05 Thread Michael Radziej
On Tue, Jun 05, Malcolm Tredinnick wrote: > The number "4" exists as a piece of data, irrelevant of > whether it was created by a user, a machine or a bunny rabbit. I hope no animals were harmed for producing this e-mail? ;-) -- noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -

Re: newforms + editable=False

2007-06-05 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > No. It has strong "user created semantics", which are orthogonal to the > data itself. The number "4" exists as a piece of data, irrelevant of > whether it was created by a user, a machine or a bunny rabbit. The > database doesn't care. Code using that data doesn't care

Re: newforms + editable=False

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 09:42 +0200, Michael Radziej wrote: > On Tue, Jun 05, Malcolm Tredinnick wrote: > > > What I'd like to see us do is move "editable" out of the model field > > declaration entirely as part of newforms-admin. It's presentation > > related, has no place there and is one of the

Re: newforms + editable=False

2007-06-05 Thread Malcolm Tredinnick
On Tue, 2007-06-05 at 12:00 +0400, Ivan Sagalaev wrote: > Malcolm Tredinnick wrote: > > What I'd like to see us do is move "editable" out of the model field > > declaration entirely as part of newforms-admin. It's presentation > > related > > I disagree with this specific point. "Editable" is use

Re: newforms + editable=False

2007-06-05 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > What I'd like to see us do is move "editable" out of the model field > declaration entirely as part of newforms-admin. It's presentation > related I disagree with this specific point. "Editable" is useful to distinguish calculated (or automatically produced, if you pr

Re: newforms + editable=False

2007-06-05 Thread Michael Radziej
On Tue, Jun 05, Malcolm Tredinnick wrote: > What I'd like to see us do is move "editable" out of the model field > declaration entirely as part of newforms-admin. It's presentation > related, has no place there and is one of the few remaining ugly spots > of that nature. [...] +1 In addition to

GSoC 2007 Object-level Caching - Update

2007-06-05 Thread Paul Collier
Hello! (Internet is acting up; I hope this doesn't double-post.) It's been a week since coding started. In the meantime I've been fleshing out the interface for the new QuerySet and incorporating suggestions from last week. I implemented a 'registry' that tracks cached QuerySets and listens for i