Re: Change list default sort modification proposal

2009-08-13 Thread Rock
My suggestion for handling the UI for multi-column sorts is to allow the definition of named sorts in a manner similar to the way that the default sorting is defined. With this in place, additional multi column orders can be accomplished simply by using this name as a sort selection and applying t

Re: Change list default sort modification proposal

2009-08-11 Thread Rock
Yes. I have a project that could use this immediately. Looking forward to seeing the ticket and a patch I can try out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Proposal: Composite Foreign Keys

2008-11-16 Thread Rock
What is the big deal? I was on a gig recently where Django was used with Oracle. To support model partitioning for selected models, we munged the generated SQL for model creation to add composite keys and the partitioning logic. It was a little bit hairy, but once the model creation was correct, e

Considering alternate SQL Code generators

2008-10-06 Thread Rock
I was taking a look at Ticket #3163 which, when incorporated into Django, would add a Meta flag to the model which disables SQL code generation. It occurred to me that on a conceptual level, this fix is wrong. What would be more generally useful is a dictionary of alternate SQL code generating plu

Re: Considering alternate SQL Code generators

2008-10-05 Thread Rock
OK then. Here is my concept for 2 small hooks... Let the backend do it's thing and create the table creation SQL in the normal manner. Right before executing that SQL call a hook function, if present, gets to modify the SQL or change it to None to suppress the SQL call entirely. There is also a

Re: Considering alternate SQL Code generators

2008-10-04 Thread Rock
> In any case, you can already do what you want using custom managers. You > return a custom queryset that generates the query however you like. > Lifting all that up into Meta doesn't seem necessary to me. > Good feedback Malcolm, but I don't understand that last statement. In the case of parti

Re: Composite Fields

2008-09-16 Thread Rock
a field that works precisely like "id" by hand and then using that seems to be the way to go. Rock --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group

Re: Proposal: user-friendly API for multi-database support

2008-09-11 Thread Rock
FWIW as a possible data point, our team has implemented partitioned models in Oracle. To control this I added a settings parameter with a list or models to be partitioned. The actual work is done in the sqlreset command logic (but really needs to be in the table/index generation code for SQL crea

Re: Proposal: user-friendly API for multi-database support

2008-09-10 Thread Rock
Manager approach. Rock P.S. for Simon: I haven't spotted any obvious problems with the proposal so far. My initial reaction is that I like it. Good work! On Sep 10, 1:13 pm, "Justin Fagnani" <[EMAIL PROTECTED]> wrote: > For application-wide db connections, I think it

Re: Composite Primary Keys

2008-09-02 Thread Rock
should not preclude this scenario, however full support for setting up and managing partitioned models need not be included at this time. (I plan to help add that later.) The interesting point is that support for related fields for the Composite Primary Key is not required in order to support t

Re: Composite Primary Keys

2008-08-28 Thread Rock
To be clear, the syntax is: myfkey = models.ForeignKey(SomeClass,to_field="id") --~--~-~--~~~---~--~~ 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@goog

Re: MultiDb status ?

2008-08-28 Thread Rock
What you are describing is an edge case for the notion of "sharding" which is the deployment of identically structured DBs where different batches of users get saved in different databases. (Flickr does this.) Sharding is a different problem than the more general notion of supporting multiple dat

Re: Composite Primary Keys

2008-08-28 Thread Rock
Aug 27, 6:27 pm, Rock <[EMAIL PROTECTED]> wrote: > Well for one thing, if one of the columns happens to be named "ID", we > should use that for the relatedfields lookup column and that is that. > (BTW, does your approach allow the Django supplied ID field to be > combi

Re: Composite Primary Keys

2008-08-27 Thread Rock
Well for one thing, if one of the columns happens to be named "ID", we should use that for the relatedfields lookup column and that is that. (BTW, does your approach allow the Django supplied ID field to be combined with some other field(s) to make a multi-column key? This would be bang up for fu

Re: Composite Primary Keys

2008-08-27 Thread Rock
Any progress on this patch David? I would be happy to take a look at whatever you have and perhaps help out with completing the patch. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To pos

Re: Easier URL patterns

2008-04-08 Thread Rock
has a problem to solve and decides to solve it with regular expressions. Now there are two problems." Personally I have no problem with Django's approach, but I sympathize with those who think otherwise. Maybe whipping up a wizard would be in order. Hmmm. Rock --~--~-~--~~--

Re: newsform Addition

2008-02-13 Thread Rock
nlining of other uls.) This allows trivial one line forms with the submit button on the same line. Nice and compact. Rock --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post

Re: Proposed refactoring of create_superuser in contrib.auth

2008-01-22 Thread Rock
I have hacked create_superuser and the management caller so that I can set username, email and password in settings.py and obviate the need to input that data when invoking a fresh syncdb. I can supply details if people are interested. Based on that hack, I concur that a refactoring is in order.

Arts and entertainment

2007-09-17 Thread rock
Arts and entertainment Share your thoughts , videos , webpages , photos and make friends through a new powerful website. It's http://goodtolove.com . You will really enjoy surfing it.As well the best is that you can make money through this website using google adsense. --~--~-~--~~-

Re: Aggregate Functions

2006-03-08 Thread Rock
> I'm not opposed to the idea of a simple min/max etc API in addition to some > mega-aggregate API. I am completely opposed to this. What I am trying to devise is a non-mega-aggregate function that handles 80% of the cases easily. The sum(), min(), max() etc. convenience functions are _not_ that.

Re: Aggregate Functions

2006-03-07 Thread Rock
e name get_aggregate(s) kinda sux but I still haven't come up with anything better. Rock --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to

Re: Extending count()

2006-03-02 Thread Rock
nct columnname) SQL syntax and decided not to target that since it was already easy to combine distinct with count(). You point out that this logic also holds for isnull. Point taken.) I'll rework my patch for 1435 to remove that change. Rock --~--~-~--~~~---~--

Aggregate Functions

2006-03-01 Thread Rock
My other changeset developed at this week's Django Sprint is much more extensive and is best explained by the new section that I am adding to the DB API docs. Feedback is welcome. Rock Aggregate Functions === Aggregate functions perform calculations on columns. Typi

Extending count()

2006-03-01 Thread Rock
he default case the function is unchanged. If a fieldname is supplied, then the SQL query is changed from COUNT(*) to COUNT(columnname). The effect is that the count now returns the number of rows where the named column has a non-null value. Rock --~--~-~--~~~---~--