Re: Fwd: how are you handling i18n and m10l content?

2006-11-09 Thread David Blewett
On Nov 9, 8:14 am, "David Blewett" <[EMAIL PROTECTED]> wrote: > What about using generic relations for this? You could have something > like this: > > class I18NText(models.Model): > language = models.ForeignKey(Language) > field = models.CharField(m

Re: Fwd: how are you handling i18n and m10l content?

2006-11-09 Thread David Blewett
;nada', language=Language('Spanish')) You can get the text for a specific translation like this: a.translations.filter(field='bar', language=Language('Spanish')) David Blewett --~--~-~--~~~---~--~~ You received this message be

Re: psyucopg2 status

2006-11-07 Thread David Blewett
Gary Doades wrote: > Yeah, I've been using it for a couple of months now with no problems. I > also use it on another project via SQLAlchemy. > > I only really pointed it out when I saw the beta chapters (chapter 2) > for the book. If it still recommends psycopg1 when it comes out it may > look o

Re: Branch Merges?

2006-11-06 Thread David Blewett
ike to help out with the FullHistory branch. It looks like it hasn't had trunk merged to it in a while. David Blewett --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Branch Merges?

2006-11-06 Thread David Blewett
milar to magic-removal, at merging all these branches? David Blewett --~--~-~--~~~---~--~~ 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@goog

Re: Google Sitemaps

2006-08-30 Thread David Blewett
d cause the save to take too long, or the request could raise an exception causing the object not to getsaved...  I'm not sure about what would be better, but it does rub methe wrong way.What about using signals? The ping_google() call could be activated by hooking in to the post_save() signa

Re: Model inheritance API

2006-07-24 Thread David Blewett
hings, Animals, and Toys? > That's what I'd expect, and want. I also think keeping the abstract class as a way of aggregating all the subclasses is key. An iterator is exactly what I would like to see as well. Please post any examples / code as they come! David Blewett --~--~---