Re: Postgresql transaction aborts, despite being in autocommit mode

2008-09-19 Thread Richard Davies
Hi Jacob, I agree that this is documented behavior for PostgreSQL _transactions_. The reason that I think it's a bug is that I shouldn't be in a transaction at all - as I understand http://docs.djangoproject.com/en/dev/topics/db/transactions/ , the default behaviour should be auto-commit in whi

Re: m2m table names

2008-09-19 Thread Russell Keith-Magee
On Sat, Sep 20, 2008 at 2:47 AM, HenrikV <[EMAIL PROTECTED]> wrote: > > If you imagine changing the table name of the auth.User table to > 'account_user'. Should the groups relationship create a table called > 'account_user_groups' or 'auth_user_groups' ? I'm unclear if this is a user 'how to' qu

Re: Why would render() get called multiple times?

2008-09-19 Thread Manuel Saelices
On 20 sep, 03:32, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-09-19 at 15:33 -0400, Karen Tracey wrote: > > [...] > > > > > Does anyone have an opinion on whether it would be better to just put > > the existing fix in as-is, or leave this open for a bit to try to > > understand

Re: Concrete django.template Suggestions

2008-09-19 Thread Malcolm Tredinnick
On Fri, 2008-09-19 at 09:08 -0700, Armin Ronacher wrote: [...] > Where are threading bugs? We're all going to find this easier if the right words are used. Template class instances are mutable objects that hold their current state. This is a design choice, not a bug. When something is done inten

Re: Why would render() get called multiple times?

2008-09-19 Thread Malcolm Tredinnick
On Fri, 2008-09-19 at 15:33 -0400, Karen Tracey wrote: [...] > > Does anyone have an opinion on whether it would be better to just put > the existing fix in as-is, or leave this open for a bit to try to > understand why it is happening? I personally would want to understand what's really going

Re: Proposal: installmedia command - A story for distributing media with apps

2008-09-19 Thread Brian Beck
On Sep 19, 4:26 pm, Brian Beck <[EMAIL PROTECTED]> wrote: > I also have an implementation that I'll post when I get home. I just posted my collectmedia (I liked the name Rajeev used) command here: http://www.djangosnippets.org/snippets/1068/ It's a long snippet because it includes an interactive

Re: Postgresql transaction aborts, despite being in autocommit mode

2008-09-19 Thread Collin Grady
This is related to http://code.djangoproject.com/ticket/3460 -- Collin Grady --~--~-~--~~~---~--~~ 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@googleg

Re: Postgresql transaction aborts, despite being in autocommit mode

2008-09-19 Thread Jacob Kaplan-Moss
Hi Richard -- What you've described is documented behavior for PostgreSQL (try googling for "commands ignored until end of transaction block") -- Postgres does not alow *any* commands in a transaction after a database error; you have to commit or rollback first. Jacob --~--~-~--~~--

Postgresql transaction aborts, despite being in autocommit mode

2008-09-19 Thread Richard Davies
Hi all, I believe that I have found a bug in Django 1.0 for both Postgresql backends, but would very much appreciate your thoughts in case I am misunderstanding something... The test case seems clear enough that this must have been noticed before, and there is an existing open ticket and patch fo

Re: Proposal: installmedia command - A story for distributing media with apps

2008-09-19 Thread Brian Beck
I noticed that elwaywitvac just posted this management command here: http://www.djangosnippets.org/snippets/1066/ I also have an implementation that I'll post when I get home. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: RFC: django.template refactoring (#7806)

2008-09-19 Thread Vinay Sajip
On Sep 19, 4:16 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 4:15 AM, Vinay Sajip <[EMAIL PROTECTED]> wrote: > > There are philosophical differences between Django and Jinja > > templating about how much power there should be in the templating > > engine. Django's

Development process and 1.1 release schedule posted

2008-09-19 Thread Jacob Kaplan-Moss
Hi folks -- Following up from my RFC earlier this week, I've posted the new release process (http://docs.djangoproject.com/en/dev/internals/release-process/) and 1.1 schedule (http://code.djangoproject.com/wiki/Version1.1Roadmap). I've made a couple changes from the drafts: * I've more clearly

Re: Why would render() get called multiple times?

2008-09-19 Thread Karen Tracey
On Wed, Sep 10, 2008 at 4:06 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > We have this problem that's been seen in the wild by a couple-three people > now: > > http://code.djangoproject.com/ticket/8110 > > It apparently results from the AdminLogNode's render() function getting > called multiple t

m2m table names

2008-09-19 Thread HenrikV
If you imagine changing the table name of the auth.User table to 'account_user'. Should the groups relationship create a table called 'account_user_groups' or 'auth_user_groups' ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: incorrect field type for object_pk in contrib.comments?

2008-09-19 Thread [EMAIL PROTECTED]
The issue is it's a generic foreign key, so to change it at that time, would mean the comments app would have to go through every installed app and just look to see if any had a CharField or other non-integer PK and then set it to be that time, since the app can't know at table creation which mode

Re: incorrect field type for object_pk in contrib.comments?

2008-09-19 Thread Ludvig Ericson
On Sep 16, 2008, at 23:31, [EMAIL PROTECTED] wrote: > > It's intentional, usually you see an object_pk as an integer field, > however that means it won't work with any field with a custom primary > key, specifically those with string type pks. And a textfield offers > the flexibility to work wit

Re: Nested Inlines in admin!!

2008-09-19 Thread John
Thanks Karen! On Sep 19, 10:24 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Sep 19, 2008 at 9:42 AM, John <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I was wondering if nested inlines' will be supported in the admin in > > any post 1.0 release. I remember seeing it mentioned in the road

Re: [Fwd: Documentation: Google-foo lost]

2008-09-19 Thread Steve Holden
Jacob Kaplan-Moss wrote: > On Fri, Sep 19, 2008 at 2:19 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > >> The question is: is it worth continuing this web-scraping and analysis >> and potentially extending it to other reference mechanisms I am unaware >> of? I don't know whether the current redi

Concrete django.template Suggestions

2008-09-19 Thread Armin Ronacher
Hi everybody, After my quite controversal blog post about Jinja and Django I summed up some suggestions for the Django template engine that don't require a complete reimplementation / breaking backwards compatibility :) First of all the thread in-safeties I discovered [and the explanation why no

Re: [Fwd: Documentation: Google-foo lost]

2008-09-19 Thread Jacob Kaplan-Moss
On Fri, Sep 19, 2008 at 2:19 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > The question is: is it worth continuing this web-scraping and analysis > and potentially extending it to other reference mechanisms I am unaware > of? I don't know whether the current redirection will eventually cause > the

Re: compressed fixture support

2008-09-19 Thread Russell Keith-Magee
On Fri, Sep 19, 2008 at 6:05 PM, Bas van Oostveen <[EMAIL PROTECTED]> wrote: > > And would be as easy to implement, the possible usecases i've got is > with a big fixture of a organism/protein database. This can be > compressed very well and is only applied one, so no need to keep a 50+ > MB fixtu

Re: RFC: django.template refactoring (#7806)

2008-09-19 Thread Jacob Kaplan-Moss
On Fri, Sep 19, 2008 at 4:15 AM, Vinay Sajip <[EMAIL PROTECTED]> wrote: > There are philosophical differences between Django and Jinja > templating about how much power there should be in the templating > engine. Django's philsophy is to keep the power to the minimum > required - "templates are no

Re: admin doesn't allow more than one null fk where unique=True

2008-09-19 Thread Karen Tracey
On Fri, Sep 19, 2008 at 10:51 AM, smcoll <[EMAIL PROTECTED]> wrote: > > Take this model as an example: > > - > from django.db import models > from django.contrib.auth.models import User > > class Contact(models.Model): >user = models.ForeignKey(User, unique=True, null=True, blank=T

admin doesn't allow more than one null fk where unique=True

2008-09-19 Thread smcoll
Take this model as an example: - from django.db import models from django.contrib.auth.models import User class Contact(models.Model): user = models.ForeignKey(User, unique=True, null=True, blank=True) - No more than one Contact can be saved with a Null fk on 'user',

Re: Nested Inlines in admin!!

2008-09-19 Thread Karen Tracey
On Fri, Sep 19, 2008 at 9:42 AM, John <[EMAIL PROTECTED]> wrote: > > Hi, > > I was wondering if nested inlines' will be supported in the admin in > any post 1.0 release. I remember seeing it mentioned in the road map > for the 1.0 release but I guess it was dropped due to time issues. > > The topi

Nested Inlines in admin!!

2008-09-19 Thread John
Hi, I was wondering if nested inlines' will be supported in the admin in any post 1.0 release. I remember seeing it mentioned in the road map for the 1.0 release but I guess it was dropped due to time issues. Thanks! --~--~-~--~~~---~--~~ You received this messag

Re: RFC: django.template refactoring (#7806)

2008-09-19 Thread Andreas
What really annoys me is all the talk about how important it is that its designed for non-programmers but if i recall corectly jacob said on djangocon that they never aimed for making django a general purpose webframework, they just made something that fit their needs. With that said, how many dja

Re: overriding auth.User model

2008-09-19 Thread HenrikV
Problem solved. The patch works just fine, it is a question of being careful about imports. Hence it is just a documentation issue. I will get some documentation done asap. Tweaked the auth tests as well. On Sep 17, 6:19 pm, HenrikV <[EMAIL PROTECTED]> wrote: > Ticket 3011 proposes how to allow

Re: compressed fixture support

2008-09-19 Thread Bas van Oostveen
I agree with Russ Magee's feeling. For compression you should just use pipes, you already pipe the output to a file, you should also pipe it through a compress app. An -c,--compress option does not make any sense without an accompanying -o,--output-file option as well. Though i'm +1 on having t

Re: RFC: django.template refactoring (#7806)

2008-09-19 Thread Vinay Sajip
On Sep 17, 11:52 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Wed, 2008-09-17 at 14:42 +0100, Ben Ford wrote: > > I take it that most are aware of: > > >http://lucumr.pocoo.org/cogitations/2008/09/16/why-jinja-is-not-djang... > > > It seems like a very well thought out and thorough wri

Re: Template inheritance and {% include %} tags

2008-09-19 Thread Simon Willison
On Sep 18, 11:58 pm, SmileyChris <[EMAIL PROTECTED]> wrote: > I think you missed the point, Simon. > > Michael isn't talking about self-referencing extending, he's talking > about blocks in statically included templates ({% include "bit.htm" > %}). Ah yes, sorry - misunderstood the original e-mai

Re: [Fwd: Documentation: Google-foo lost]

2008-09-19 Thread Steve Holden
Don Spaulding wrote: > > > On Tue, Sep 16, 2008 at 2:20 PM, Don Spaulding > <[EMAIL PROTECTED] > wrote: > > > Hope it's useful! > > > > and of course it isn't. I forgot my lambdas. Doh! > That's a great start. I noticed that many Google links are to fragments, and w