#2333 Pt 3 - Test system fixture data

2006-12-17 Thread Russell Keith-Magee
Hi all, Time for the long promised phase 3 of the Django testing framework - fixtures - to make an appearance. I've attached the changes as a single patch to ticket #2333 (http://code.djangoproject.com/tickets/2333 ) The idea here is to exploit the serialization framework to provide a mechanism

Re: "getattr(): attribute name must be string"

2006-12-17 Thread [EMAIL PROTECTED]
It doesn't look like anything is being done with it right now. I believe the patch outlined in the code works but I haven't thoroughly tested it. I'd like to see it fixed too. If you need help, let me know. -Chris Phil Powell wrote: > I'm just wondering if anyone is following up on this issue

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Honza Král
On 12/18/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > Honza Král wrote: > > On 12/18/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > > > > > Honza Král wrote: > > > > On 12/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > > Feel free to take > > > > > on any of the items mentioned in this

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Gary Wilson
Honza Král wrote: > On 12/18/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > > > Honza Král wrote: > > > On 12/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > Feel free to take > > > > on any of the items mentioned in this e-mail, as long as we've all > > > > agreed on the right way to sol

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Gary Wilson
Gary Wilson wrote: > Some more suggestions based on things that I have experienced while > recently making an application that required many forms based on > models: > > - Ability to not display certain fields, mainly for when the value will > be post-filled in the view (i.e. the owner of an obje

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Gary Wilson
Some more suggestions based on things that I have experienced while recently making an application that required many forms based on models: - Ability to not display certain fields, mainly for when the value will be post-filled in the view (i.e. the owner of an object being set to the logged in u

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Honza Král
On 12/18/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > Honza Král wrote: > > On 12/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Feel free to take > > > on any of the items mentioned in this e-mail, as long as we've all > > > agreed on the right way to solve the problems. Rewriting the >

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Gary Wilson
Honza Král wrote: > On 12/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Feel free to take > > on any of the items mentioned in this e-mail, as long as we've all > > agreed on the right way to solve the problems. Rewriting the > > validators to Fields would be a much-welcomed contribution, t

Re: utils.text.wrap is O(n^2)

2006-12-17 Thread Michael Radziej
Hi, somehow I kept interest in this and found a better solution. Splitting the whole text first into words is only the best way when the line width is close to the average word length. In the more typical cases you have multiple words per line, and then it's faster to process line by line by look

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Honza Král
On 12/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/16/06, Honza Král <[EMAIL PROTECTED]> wrote: > > there are a few things I would like to see in there (or where > > appropriate) and don't know if somebody is already working on it (or > > other things that would clash with this effor

Re: Re: [triaged ticket] #3118: errata in 'UPDATE/INSERT' section of DB-API document

2006-12-17 Thread Russell Keith-Magee
On 12/17/06, Fernando Gutierrez <[EMAIL PROTECTED]> wrote: > > This also excludes the integer 0 that evaluates to False. That is a > problem, some legacy databases use 0 as the first pk for some tables, in > that case you can't modify the objects that have this primary key. Ok; ticket #2160 is tw

Re: [triaged ticket] #3118: errata in 'UPDATE/INSERT' section of DB-API document

2006-12-17 Thread Russell Keith-Magee
On 12/17/06, Yasushi Masuda <[EMAIL PROTECTED]> wrote: > > Dear django developers, > > I'd like to notify that I have triaged ticket #3118 created by > mtsuyuki[at]gmail.com. The ticket is reporting errata in 'UPDATE/INSERT' > section of DB-API document. Thanks for the triage! I've committed your

update via edit_inline=1 of OneToOne related model

2006-12-17 Thread [EMAIL PROTECTED]
Hi! I see it very common and good to extend some base models by OneToOne relations. So, for example, in my application I am using django contrib.auth. All my users also have 'instituton' field. All works, except inline editition of code. Here is example: --- Customer/models.

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Honza Král
On 12/17/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Adrian Holovaty wrote: > > Yes, there should be a way to specify the widget for a field in the > > model. The question is, should it be specified as a keyword argument > > to the field declaration, or should it be passed in the "class Admin"

Re: newforms: generating forms from models enhancements

2006-12-17 Thread Ivan Sagalaev
Adrian Holovaty wrote: > Yes, there should be a way to specify the widget for a field in the > model. The question is, should it be specified as a keyword argument > to the field declaration, or should it be passed in the "class Admin"? Would it be better to specify it as and additional parameter