Re: is_safe problem

2007-11-22 Thread SmileyChris
On Nov 22, 10:48 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > P.S. However I think you try to shoot yourself in the foot by tying > general unicode representation of an object to work only for HTML. I'd > rather leave it to some special filter. Probably. I'm definitely being lazy ;) But the

Re: django ORM

2007-11-22 Thread James Bennett
On 11/22/07, Goutham DL <[EMAIL PROTECTED]> wrote: > Iam new to this community. I would like to know more about the django > ORM(i.e its internal workings). Can someone provide some good links > for this? http://code.djangoproject.com/wiki/DevModelCreation -- "Bureaucrat Conrad, you are

Re: django ORM

2007-11-22 Thread Goutham DL
I have downloaded the source code and gone through the official documentation :).Iam more interested in how django does the mapping from the code to SQL. Goutham --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: django ORM

2007-11-22 Thread SmileyChris
On Nov 23, 8:18 am, Goutham DL <[EMAIL PROTECTED]> wrote: > Hi, > Iam new to this community. I would like to know more about the django > ORM(i.e its internal workings). Can someone provide some good links > for this? Hi Goutham, If you're new to the community, ensure you have a good

django ORM

2007-11-22 Thread Goutham DL
Hi, Iam new to this community. I would like to know more about the django ORM(i.e its internal workings). Can someone provide some good links for this? Goutham --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Reusable Django-based applications with setuptools

2007-11-22 Thread Jannis Leidel
Hi devs, I'd like to point to a short discussion at django-users [1] about "django-reusableapps" and my conclusion regarding reusable Django- based applications with setuptools [2]. Best, Jannis 1: http://groups.google.com/group/django-users/browse_thread/thread/6efc4c921e59a658 2:

Sul do Brasil

2007-11-22 Thread skywalkerbrz
Estou trabalhando num projeto web para uma empresa de desenvolvimento de softwares de gestao. Gostaria que programadores do sul do Brasil entrassem em contato pois precisamos de uma alternativa ágil e eficiente de desenvolvimento de um site dinâmico. Fico no aguardo Lucas Selbach Consultor de

question about TestCase._pre_setup database flush condition

2007-11-22 Thread Atsushi Suga
I have a question abut database flush condition. in django/test/testcases.py TestCase._pre_setup() forrow is _pre_setup() comment """ ... If the Test Case class has a 'fixtures' member, clearing the database and installing the named fixtures at the start of each test. ... """ Comment of this

Best way to update only certain fields on a model instance?

2007-11-22 Thread Johann C. Rocholl
Hi, I have some problems with model.save(): 1. It does a SELECT first to see if the instance is already in the database. 2. It has additional database performance overhead because it writes all fields, not just the ones that have been changed. 3. It overwrites other model fields with data that

modelos de cartas comerciais gratis

2007-11-22 Thread Paula22
modelos prontos de cartas comerciais - pedidos de emprego Modelos de documentos comerciais, carta comercial cartas modelo. tipos de cartas comerciais modelos prontos. Visite agora: http://www.modelosdecartascomerciais.com Cartas Comerciais elaborados com criatividade e conhecimento, convites

Re: is_safe problem

2007-11-22 Thread Ivan Sagalaev
SmileyChris wrote: > I should have clarified that for this model, I have it's __unicode__ > method return a safe string: > > return mark_safe('%s (%s contacts)' % > (escape(self.name), self.contacts_total) Hm... I give up then :-). From my looking around the code I think it should behave as

Re: is_safe problem

2007-11-22 Thread SmileyChris
On Nov 22, 8:46 pm, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > SmileyChris wrote: > > The problem is, that it still gets double-escaped. Django's > > FilterExpression checks to see if the incoming object is SafeData, but > > at this stage it is a Model object - it hasn't be translated to its > >