Re: Models over SQL views - disable regeneration of model

2007-12-12 Thread Malcolm Tredinnick
On Wed, 2007-12-12 at 23:15 -0800, Alex Myodov wrote: > Thanks for ideas, Malcolm. > I am slightly against "create_db_table", cause the name implies that > it controls "creating DB tables", while in fact it controls ANY > operations on DB tables - CREATE/ALTER/DROP TABLE, CREATE/DROP INDEX, >

Re: Models over SQL views - disable regeneration of model

2007-12-12 Thread Alex Myodov
Thanks for ideas, Malcolm. I am slightly against "create_db_table", cause the name implies that it controls "creating DB tables", while in fact it controls ANY operations on DB tables - CREATE/ALTER/DROP TABLE, CREATE/DROP INDEX, etc. But I fully agree that my name is not better and I am open for

Re: Writing tests for #6191 (admin delete view not listing all items)

2007-12-12 Thread Nick Lane
On Dec 13, 1:42 pm, "Joseph Kocherhans" <[EMAIL PROTECTED]> wrote: > Just testing _get_deleted_objects() is fine by me if you can. I think > the AdminSite object might be intertwined with things in the > newforms-admin branch, so there may still be a bunch of setup. I've updated the patch to

Re: The book

2007-12-12 Thread Jeremy Dunck
On Dec 12, 2007 9:49 PM, nick <[EMAIL PROTECTED]> wrote: > > What's the name of the book? I am looking for 1 to buy. http://www.amazon.com/Definitive-Guide-Django-Development-Right/dp/1590597257/ --~--~-~--~~~---~--~~ You received this message because you are

Re: The book

2007-12-12 Thread nick
What's the name of the book? I am looking for 1 to buy. On Dec 11, 2:00 pm, raminf <[EMAIL PROTECTED]> wrote: > Printed copy of Django book arrived yesterday. Looks great. As much as > I enjoyed reading the chapters online, it's nice to be able to take > the hardcopy out to a coffee shop. Also

Re: ModelForm.__init__() argument signature versus other newforms forms

2007-12-12 Thread Joseph Kocherhans
On 12/12/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > On 12/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > > > On Mon, 2007-12-10 at 20:56 -0600, Joseph Kocherhans wrote: > > > On 12/9/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > > > > > OK, so after chatting a bit

Re: Writing tests for #6191 (admin delete view not listing all items)

2007-12-12 Thread Joseph Kocherhans
On 12/12/07, Nick Lane <[EMAIL PROTECTED]> wrote: > > I had a quick look at writing some tests for #6191[1], and have a few > queries. > > Should I be testing the admin delete view to make sure the response > contains the expected items, or should I just test the "private" >

Writing tests for #6191 (admin delete view not listing all items)

2007-12-12 Thread Nick Lane
Hi, I had a quick look at writing some tests for #6191[1], and have a few queries. Should I be testing the admin delete view to make sure the response contains the expected items, or should I just test the "private" _get_deleted_objects() method, to check the items are returned in that list?

Re: ModelForm.__init__() argument signature versus other newforms forms

2007-12-12 Thread Joseph Kocherhans
On 12/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Mon, 2007-12-10 at 20:56 -0600, Joseph Kocherhans wrote: > > On 12/9/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > > > > OK, so after chatting a bit with Joseph on IRC I'm working on revising > > > my original patch. The

Re: Models over SQL views - disable regeneration of model

2007-12-12 Thread Malcolm Tredinnick
On Wed, 2007-12-12 at 05:29 -0800, Alex Myodov wrote: > Hi all. > > Can someone experienced please have a look at the #3163 ticket > ("sql_generation_required" Meta option) and hint me what other steps > should I do to move the patch forward? The name is silly. Call it create_db_table and

Personal Development is Bringing Artificial Intelligence to the Internet

2007-12-12 Thread Naeem
Personal Development is Bringing Artificial Intelligence to the Internet It never ceases to amaze me... that the personal development industry is growing as rapidly as it is. When you see that self help is being used to raise money for charities, it doesn't come as much of a surprise.

Re: Models over SQL views - disable regeneration of model

2007-12-12 Thread Alex Myodov
James, the answer is - "cause these people may still want to run "manage.py syncdb" for other models in the same app". You use "manage.py syncdb/reset/something" for the whole application (cause you are still doing the development, and the table structure changes from day to day), and all the

Re: Better Support for static file serving via django

2007-12-12 Thread msaelices
On 12 dic, 01:30, "Mike Scott" <[EMAIL PROTECTED]> wrote: > Hey All, > > I've been looking at how to better serve my static files for django sites, > and I'm particularly interested in things like Javascript handling. > > For example if we were to look at RoR, they have their include tags which

Re: Better Support for static file serving via django

2007-12-12 Thread SmileyChris
On Dec 13, 9:19 am, "Robert Coup" <[EMAIL PROTECTED]> wrote: > On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: > > > How can you check that only authorized users can access > > some files? Thomas, you might want to try out http://code.djangoproject.com/ticket/3583 It needs some

Re: Better Support for static file serving via django

2007-12-12 Thread Robert Coup
On 13/12/2007, Thomas Güttler <[EMAIL PROTECTED]> wrote: > How can you check that only authorized users can access > some files? > > Files which have a coresponding FileField in the model: How can > you test that only some people are allowed to see it? > > Apache can't do it. Or at least it would

Re: Models over SQL views - disable regeneration of model

2007-12-12 Thread James Bennett
I'm still curious why it is, that if people want to define models without having Django create tables, those people don't just avoid running 'manage.py syncdb'. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct."

Re: Better Support for static file serving via django

2007-12-12 Thread Thomas Güttler
Am Mittwoch, 12. Dezember 2007 01:48 schrieb [EMAIL PROTECTED]: > It sounds like you're actually proposing two things here. > > 1) Using Django to serve static files. There already exists a > mechanism for Django to accomplish this during development, detailed > here:

Re: Models over SQL views - disable regeneration of model

2007-12-12 Thread Alex Myodov
Hi all. Can someone experienced please have a look at the #3163 ticket ("sql_generation_required" Meta option) and hint me what other steps should I do to move the patch forward? I have a suspicion that the testcases are the only remaining thing - but then, can someone hint me how these