Re: Re: Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread James Bennett
On 8/23/06, Brantley Harris <[EMAIL PROTECTED]> wrote: > The problem is that to make it usefull to the user (read: api-user / > developer), you have to put the model save in a try / except block so > that if there is a validation error, it can raise the form. > Otherwise, the user will have to

Re: Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread Brantley Harris
On 8/23/06, James Bennett <[EMAIL PROTECTED]> wrote: > 1. I'm not sure I like the idea of manipulators having a 'process' > method which does everything; it would feel more natural to just try > 'manipulator.save()', have that save if all is well, and catch any > validation errors. The problem

Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread Brantley Harris
Finally! I've been waiting :) On 8/23/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > How To Be Sexy, Rule 1: The word "manipulator" has really got to go. > > Thoughts/comments/suggestions on Joseph's plan below, and on Brant's > plan in Trac? > I know you want to get rid of the concept of

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > > On 24/08/2006, at 2:00 PM, limodou wrote: > > > > > On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > >> > >> so Limodou. > >> > >> what's the next step. > >> have you got a prototype of it ? or a idea on how it will work? > >> I've got

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread Ian Holsman
On 24/08/2006, at 2:00 PM, limodou wrote: > > On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: >> >> so Limodou. >> >> what's the next step. >> have you got a prototype of it ? or a idea on how it will work? >> I've got a old linux box you can use to host it until it gets >> popular. > >

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > so Limodou. > > what's the next step. > have you got a prototype of it ? or a idea on how it will work? > I've got a old linux box you can use to host it until it gets popular. No, I haven't a plan about it, just some ideas. If someone make

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread Ian Holsman
so Limodou. what's the next step. have you got a prototype of it ? or a idea on how it will work? I've got a old linux box you can use to host it until it gets popular. I'm more for just storing the meta-data of the project, and let the owners of the project host it on their own (or googles

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
On 8/24/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > I think if this functionality built on django official site is the > > better, because every djangor can easy find it. I think the first > > stage could be the index site supplied by django site, and the exact > > projects

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread Gary Wilson
limodou wrote: > I think if this functionality built on django official site is the > better, because every djangor can easy find it. I think the first > stage could be the index site supplied by django site, and the exact > projects could be found everywhere. And the second stage could be >

Re: db_index not creating indexes with syncdb

2006-08-23 Thread Corey Oordt
try ./manage.py install, it executes sqlall Corey On Aug 23, 2006, at 2:42 PM, [EMAIL PROTECTED] wrote: > > I've got the following: > > class Page(models.Model): > name = models.CharField(maxlength=64, db_index=True, > unique=True) > description = models.TextField(blank=True) >

Re: Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread James Bennett
On 8/23/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Thoughts/comments/suggestions on Joseph's plan below, and on Brant's > plan in Trac? I think Brant's rocking the sexiness; the concept of validation behaving as a try/except block feels nice to me. And bidding good-bye to 'if errors',

Re: Validation Aware Models and django.forms on steroids

2006-08-23 Thread Adrian Holovaty
Resurrecting an old thread... Let's make this happen! Joseph (in the e-mail below) has spelled out a pretty decent plan for the new manipulator scheme. I see that we've got another proposal in Trac by Brant Harris -- http://code.djangoproject.com/ticket/2586. Let's get something decided and

db_index not creating indexes with syncdb

2006-08-23 Thread [EMAIL PROTECTED]
I've got the following: class Page(models.Model): name = models.CharField(maxlength=64, db_index=True, unique=True) description = models.TextField(blank=True) class Text(models.Model): page = models.ForeignKey(Page, db_index=True, edit_inline=models.STACKED)

Re: [Fw]The Python Web Framework

2006-08-23 Thread JP
Dan Watson wrote: > Ideally, it seems django should offer simple connection pooling with 2 > options: number of connections and an on/off switch. That would satisfy > the needs of some/most, and for those that need something more robust, > look into an external pooler. Thinking this over a bit

Re: [Fw]The Python Web Framework

2006-08-23 Thread Ivan Sagalaev
Dan Watson wrote: > Ideally, it seems django should offer simple connection pooling with 2 > options: number of connections and an on/off switch. That would satisfy > the needs of some/most, and for those that need something more robust, > look into an external pooler. In your words this looks

Re: [Fw]The Python Web Framework

2006-08-23 Thread Dan Watson
> In my experience such simple behavior is rarely needed. When you > actually need a pool it means that your app become pretty large so it > requires not only static pool but also other settings like minimum spare > connections, maximum spare connections, keep-alive timeouts etc... So > this

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread [EMAIL PROTECTED]
I've added the code.google link on the wiki :) In general people will host their projects at google, sourceforge and other sites like these. The basic thing what djangoproject.com should have is a project catalog where all django based projects can be added, listed, searched etc. Second thing -

Re: [Fw]The Python Web Framework

2006-08-23 Thread Ivan Sagalaev
Kevin Menard wrote: > I've experienced the exact opposite. When I can say in a config file > that I want 10 connections in a pool, that's a lot easier for me than > setting up an external utility. In my experience such simple behavior is rarely needed. When you actually need a pool it means

Re: Multi-db: Change DatabaseWrappers to no longer be local?

2006-08-23 Thread JP
Ivan Sagalaev wrote: > JP wrote: > > Looking back over the multi-db branch today, I realized that it seems > > to be duplicating the thread locality of connections. The connection > > management classes in multi-db django.db manage all connections as > > thread local, and the DatabaseWrapper

Re: Re: [Fw]The Python Web Framework

2006-08-23 Thread Kevin Menard
On 8/22/06, James Bennett <[EMAIL PROTECTED]> wrote: > 1. It's easier to "switch out" pooling utilities this way, or to > switch between pooling and not pooling as circumstances dictate. When > your framework tries to do connection pooling for you, it > automatically gets harder and, depending

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread [EMAIL PROTECTED]
I agree with you what absolutely need to be included to the dajngo web site is at least a pointer to the code repository. It would also be nice if djangoproject could host the project documentation. However I think that it would be great to have a sandbox for each project where visitor can

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
On 8/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > > I have the feeling that this is more or less already existing. It is > called "google code" > - http://code.google.com/hosting/search?q=label:django > It is taking 2 min to create a new projet. the only thing missing there

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread [EMAIL PROTECTED]
Hello, I have the feeling that this is more or less already existing. It is called "google code" - http://code.google.com/hosting/search?q=label:django It is taking 2 min to create a new projet. the only thing missing there is a "meta" wiki where the owner of each project can publish

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread Guillermo Fernandez Castellanos
Hi, I would find already really useful something like a database with, for each project a name, description, type of application (middleware,... or maybe blog, photo manager,...) and a link to the project page (or blog entrance). All this should have a search function. This could replace a lot

Re: Multi-db: Change DatabaseWrappers to no longer be local?

2006-08-23 Thread Ivan Sagalaev
JP wrote: > Looking back over the multi-db branch today, I realized that it seems > to be duplicating the thread locality of connections. The connection > management classes in multi-db django.db manage all connections as > thread local, and the DatabaseWrapper classes in the backends are all >

Re: [Fw]The Python Web Framework

2006-08-23 Thread Gábor Farkas
James Bennett wrote: > > 2. Admittedly I don't have a whole lot of experience in the area, but > creating and managing a pool of connections to be passed from thread > to thread just feels like much more hassle and overhead than we really > need, especially since there are external pooling

Re: the template system's whitespace handling

2006-08-23 Thread Gary Wilson
I created a ticket: http://code.djangoproject.com/ticket/2594 I also attached a patch that I have done a little testing with and seems to work ok. I first attacked this at the Node level, but realized that might not be the best way because the Nodes get rendered recursively. In order to clean