Re: Cutting applications vertically, like multiple weblogs software

2006-07-02 Thread Ahmad Alhashemi
Sorry again everyone. I don't actually have a specific application. Allow me to check all the suggestions, take a better look at Django then I promise I'll come back and summarize my findings. In the mean time, does the need to tie the views with the models also apply to the proposed Row Level Pe

Re: Cutting applications vertically, like multiple weblogs software

2006-07-02 Thread James Bennett
On 7/2/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > You are always going to have to specify the weblog_id (or whatever > condition you are filtering on) somewhere and you are going to have to > put in some logic somewhere to convert a request into the right > weblog_id. The latter can be do

Re: Cutting applications vertically, like multiple weblogs software

2006-07-02 Thread Malcolm Tredinnick
On Sun, 2006-07-02 at 00:54 -0700, Ahmad Alhashemi wrote: > Hi Luke, > > I agree that explicitness is better. But I think implicit filtering > here is not that bad for two reasons. The first is, as I said, it is > the rule not the exception. The second is that it makes it extremely > easy to star

Re: Cutting applications vertically, like multiple weblogs software

2006-07-02 Thread James Bennett
On 7/2/06, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote: > I agree that explicitness is better. But I think implicit filtering > here is not that bad for two reasons. The first is, as I said, it is > the rule not the exception. The second is that it makes it extremely > easy to start your application

Re: Cutting applications vertically, like multiple weblogs software

2006-07-02 Thread Ahmad Alhashemi
Hi Luke, I agree that explicitness is better. But I think implicit filtering here is not that bad for two reasons. The first is, as I said, it is the rule not the exception. The second is that it makes it extremely easy to start your application as a single site application then turn it into a mu

Re: Cutting applications vertically, like multiple weblogs software

2006-07-01 Thread Luke Plant
On Saturday 01 July 2006 21:03, Ahmad Alhashemi wrote: > The first one is to provide a feature in models that will allow me to > pre-define some filters. For example, I can put one line that will > make the ORM always filter the results of a certain object by > weblog_id without having to specify

Re: Cutting applications vertically, like multiple weblogs software

2006-07-01 Thread Ahmad Alhashemi
Hi Malcolm, Thank you for your reply. Sorry that my first email wasn't clear. I wasn't asking on how to add this feature to an actual application I currently have, I'm asking for pointers because I want to add a new feature to Django's core that will make it easier to add such a feature to any D

Re: Cutting applications vertically, like multiple weblogs software

2006-06-30 Thread Malcolm Tredinnick
Hi Ahmad, On Fri, 2006-06-30 at 09:49 -0700, Ahmad Alhashemi wrote: > Hello, > > Immagine that I created a weblog application. Then I decide to make it > accomodate multiple weblogs, by adding a weblog model and weblog_id to > all records in the application. > > Is there an easy way to achieve

Cutting applications vertically, like multiple weblogs software

2006-06-30 Thread Ahmad Alhashemi
Hello, Immagine that I created a weblog application. Then I decide to make it accomodate multiple weblogs, by adding a weblog model and weblog_id to all records in the application. Is there an easy way to achieve this without having to change all the model code in the application? I mean so that