User subclassing

2006-07-21 Thread Ivan Sagalaev
James Bennett wrote: > Which I've never understood. Subclassing User, even when model > inheritance works again, will be probably the most difficult, least > efficient and least rewarding way of extending User... But nobody knows this beforehand. The feature is called "subclassing" and looks lik

Re: MS-SQL server LIMIT/OFFSET implementation

2006-07-21 Thread Dan Hristodorescu
Yes, you could do that, but it's not what you would want.It will become visible slower when the offset increases because you have to iterate through the previous rows.The nice Python syntax hides this detail but the driver has do it. This is because the cursor is a forward cursor and you have to i

Re: Re: Generic View Bug and Issues (Please? Agh!)

2006-07-21 Thread Tyson Tate
On 7/21/06, monkeynut <[EMAIL PROTECTED]> wrote: > OK, patch mark 2 is up.. the only problem (and it might be a biggie) is that > this effectively breaks things for people who're using the arguments in > their intended way (eg. getting tomorrow and yesterday, etc.)? > > Pete. I think the two poss

Re: Generic View Bug and Issues (Please? Agh!)

2006-07-21 Thread monkeynut
OK, patch mark 2 is up.. the only problem (and it might be a biggie) is that this effectively breaks things for people who're using the arguments in their intended way (eg. getting tomorrow and yesterday, etc.)?Pete. On 7/21/06, Pete Crosier <[EMAIL PROTECTED]> wrote: Tyson, Jacob - I've put up a p

Re: Django sprint / 0.95 release at OSCON

2006-07-21 Thread James Bennett
On 7/21/06, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > comes up 4-5 times a day at least on IRC, most common desire is to > extend auth.User Which I've never understood. Subclassing User, even when model inheritance works again, will be probably the most difficult, least efficient and least r

Re: Django sprint / 0.95 release at OSCON

2006-07-21 Thread Bryan
It would also be nice to get a status report on all of the "Heads up"/SoC django projects. I'm particularly interested in the status of Model Inheritance, Row Level Permissions, and Schema Evolution. With "status" being the current state of the project and its projected completion. Bryan Malco

Re: Generic View Bug and Issues (Please? Agh!)

2006-07-21 Thread Pete Crosier
Tyson, Jacob - I've put up a patch for this, let me know if it's what you were looking for, or just plain stoopid.Cheers, Pete.On 7/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: On Jul 20, 2006, at 10:53 PM, Tyson Tate wrote:> On Jul 20, 2006, at 8:41 PM, James Bennett wrote: 10. Navigat

Re: Creating a new field type

2006-07-21 Thread Jacob Kaplan-Moss
On Jul 21, 2006, at 11:46 AM, adurdin wrote: > I'm trying to create a new database field type, and am not sure what > method of models.Field I need to override to convert the value > returned > from the database to the appropriate Python type and vice-versa -- if > indeed it should be done in mo

Creating a new field type

2006-07-21 Thread adurdin
I'm trying to create a new database field type, and am not sure what method of models.Field I need to override to convert the value returned from the database to the appropriate Python type and vice-versa -- if indeed it should be done in models.Field. For the sake of example, assume I want to st

Re: MS-SQL server LIMIT/OFFSET implementation

2006-07-21 Thread DavidA
> > On Thu, 2006-07-20 at 17:34 -0400, Dan Hristodorescu wrote: > > > > > > and for SQL 2000 should look like this: > > > > > > SELECT fields FROM table > > > WHERE primary key IN > > > (SELECT TOP limit primary_key FROM table > > > WHERE primary_key NOT IN > >

Re: url redirection problem

2006-07-21 Thread Tim Shaffer
Tim Shaffer wrote: > Douglas Campos wrote: > > now i'm on my django site > > > > https://example.org/ > > > > if I type https://example.org/admin it redirects to > > http://example.org/admin/ > > (note the change from https to http) > > is this an expected behaviour? > > > > Thanx > > Yes, this

Re: url redirection problem

2006-07-21 Thread Tim Shaffer
Douglas Campos wrote: > now i'm on my django site > > https://example.org/ > > if I type https://example.org/admin it redirects to http://example.org/admin/ > (note the change from https to http) > is this an expected behaviour? > > Thanx Yes, this is the expected behavior. There is a setting ca

Re: Django sprint / 0.95 release at OSCON

2006-07-21 Thread Malcolm Tredinnick
On Fri, 2006-07-21 at 18:33 +0400, Ivan Sagalaev wrote: > Adrian Holovaty wrote: > > Most -- all? -- of the magic-removal stuff has settled down > > What about model inheritance? This is one feature that was before MR and > never recovered after. I remember some people in django-users were > fo

Re: Django sprint / 0.95 release at OSCON

2006-07-21 Thread Kenneth Gonsalves
On 21-Jul-06, at 8:03 PM, Ivan Sagalaev wrote: >> Most -- all? -- of the magic-removal stuff has settled down > > What about model inheritance? This is one feature that was before > MR and > never recovered after. I remember some people in django-users were > forced to stay with pre-MR syntax

Re: Django sprint / 0.95 release at OSCON

2006-07-21 Thread Ivan Sagalaev
Adrian Holovaty wrote: > Most -- all? -- of the magic-removal stuff has settled down What about model inheritance? This is one feature that was before MR and never recovered after. I remember some people in django-users were forced to stay with pre-MR syntax because of it. I also remember that

Re: Generic View Bug and Issues (Please? Agh!)

2006-07-21 Thread Jacob Kaplan-Moss
On Jul 20, 2006, at 10:53 PM, Tyson Tate wrote: > On Jul 20, 2006, at 8:41 PM, James Bennett wrote: > >>> 10. Navigate to /blog/2006/jul/ >>> PROBLEM: Last month is listed as a previous month even though there >>> are no objects created last month. Yes, this is documented behavior. >>> But why? W

Re: About model's manager method -- update

2006-07-21 Thread limodou
On 7/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-07-21 at 15:00 +0800, limodou wrote: > > I know there is a create method in model manager class, I can use a > > dict parameter to create an object and auto save the object. And I > > want to know if there is a similar meth

Re: About model's manager method -- update

2006-07-21 Thread Malcolm Tredinnick
On Fri, 2006-07-21 at 15:00 +0800, limodou wrote: > I know there is a create method in model manager class, I can use a > dict parameter to create an object and auto save the object. And I > want to know if there is a similar method "update", which can update > an object according dict parameters,

About model's manager method -- update

2006-07-21 Thread limodou
I know there is a create method in model manager class, I can use a dict parameter to create an object and auto save the object. And I want to know if there is a similar method "update", which can update an object according dict parameters, just like: Model.objects.update(object_id, **params) bu