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 > su

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 o

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 informatio

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]
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 experim

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 on

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 class

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

2006-08-23 Thread Ivan Sagalaev
JP wrote: > Not a dumb question at all. I'll try to explain better by contrasting > how multi-db handles connections with how connections are kept thread > local in trunk. BTW, I happen to know how it works now since I was among those who was trying to solve threading issues before Eugene Lazutk

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 tha

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

2006-08-23 Thread JP
Ivan Sagalaev wrote: > JP wrote: > > Not a dumb question at all. I'll try to explain better by contrasting > > how multi-db handles connections with how connections are kept thread > > local in trunk. > > BTW, I happen to know how it works now since I was among those who was > trying to solve thre

I18N+Database Problem

2006-08-23 Thread Anthyme
Hello ! First I want to say I'm sorry if I have a poor English, it's not my first language. My problem is that : I start learning I18n with Django but i don't understand how to create langage file (type .po) with the content of the database (like CharField). I wonder if it's possible to do it be

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 - t

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 becom

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 us

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 m

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) conte

Proposal: Optgroup integration with FilePathField and SelectField

2006-08-23 Thread scum
I'd like to integrate the optgroup tag (http://www.w3schools.com/tags/tag_optgroup.asp) into the FilePathField (which would in code would lead to this being tacked onto the SelectField object) and want to get people's thoughts before writing the code. My thought would be that: NAME_CHOICES = (

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 impl

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', FormW

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: 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 > hosti

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 c

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 or

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 i

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. > > No,

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 a

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: 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 is

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 pro

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

2006-08-23 Thread Brantley Harris
On 8/24/06, James Bennett <[EMAIL PROTECTED]> wrote: > > 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

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

2006-08-23 Thread James Bennett
On 8/24/06, Brantley Harris <[EMAIL PROTECTED]> wrote: > No, watch for the difference between a ValidationError being raised > and a Form exception being raised. In the ValidationError case, it > must be saved and returned with the other validation errors in the > given step (1. conversion; 2. fo