Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Stephen Kelly
Stephen Kelly wrote: > Stephen Kelly wrote: > >> Łukasz Rekucki wrote: >> >>> On 19 October 2010 23:41, Jacob Kaplan-Moss >>> wrote: On Tue, Oct 19, 2010 at 4:31 PM, James Bennett wrote: > If we're going to do this, could we also look at deprecating the > 'templatetag' templa

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Stephen Kelly
Stephen Kelly wrote: > Łukasz Rekucki wrote: > >> On 19 October 2010 23:41, Jacob Kaplan-Moss >> wrote: >>> On Tue, Oct 19, 2010 at 4:31 PM, James Bennett >>> wrote: If we're going to do this, could we also look at deprecating the 'templatetag' template tag? There are a couple cases a

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Stephen Kelly
Łukasz Rekucki wrote: > On 19 October 2010 23:41, Jacob Kaplan-Moss > wrote: >> On Tue, Oct 19, 2010 at 4:31 PM, James Bennett >> wrote: >>> If we're going to do this, could we also look at deprecating the >>> 'templatetag' template tag? There are a couple cases a 'verbatim' tag >>> wouldn't cov

Re: new class based views

2010-10-19 Thread Russell Keith-Magee
On Wed, Oct 20, 2010 at 1:25 AM, Valentin Golev wrote: > Hello, > > I'm trying to use brand new Class Based Views and I have a question > about implementation. > > Let's take a look at SingleObjectMixin.get_object(): > http://code.djangoproject.com/browser/django/trunk/django/views/generic/detail.

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Łukasz Rekucki
On 19 October 2010 23:41, Jacob Kaplan-Moss wrote: > On Tue, Oct 19, 2010 at 4:31 PM, James Bennett wrote: >> If we're going to do this, could we also look at deprecating the >> 'templatetag' template tag? There are a couple cases a 'verbatim' tag >> wouldn't cover that 'templatetag' wouldn't, bu

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Jacob Kaplan-Moss
On Tue, Oct 19, 2010 at 4:31 PM, James Bennett wrote: > If we're going to do this, could we also look at deprecating the > 'templatetag' template tag? There are a couple cases a 'verbatim' tag > wouldn't cover that 'templatetag' wouldn't, but I'm kinda hard-pressed > to think of when they'd ever c

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread James Bennett
On Tue, Oct 19, 2010 at 1:49 PM, Jacob Kaplan-Moss wrote: > Looks like a good idea to me. I've certainly used ssi as a hack for > this before, so getting a noparse/verbatim tag into Django sounds > great. If we're going to do this, could we also look at deprecating the 'templatetag' template tag?

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread David Gouldin
Given 2 +1s, I've added a ticket: http://code.djangoproject.com/ticket/14502 On Oct 19, 6:49 pm, Jacob Kaplan-Moss wrote: > On Tue, Oct 19, 2010 at 12:24 PM, David Gouldin wrote: > > Thoughts/opinions? > > Looks like a good idea to me. I've certainly used ssi as a hack for > this before, so get

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Jacob Kaplan-Moss
On Tue, Oct 19, 2010 at 12:24 PM, David Gouldin wrote: > Thoughts/opinions? Looks like a good idea to me. I've certainly used ssi as a hack for this before, so getting a noparse/verbatim tag into Django sounds great. Jacob -- You received this message because you are subscribed to the Google G

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread flo...@gmail.com
I agree that something like this is becoming more necessary, as I ran into this a few days ago myself. Funny how similar our strategies were (David's is more robust): http://gist.github.com/629508 -Eric Florenzano On Oct 19, 10:24 am, David Gouldin wrote: > As client-side templates become more p

Re: ,new class based views

2010-10-19 Thread Valentin Golev
Sorry! I've hit "Enter" key accidentally while writing a subject. Don't blame me too much, please :) On 19 окт, 21:22, Valentin Golev wrote: > Hello -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to djan

new class based views

2010-10-19 Thread Valentin Golev
Hello, I'm trying to use brand new Class Based Views and I have a question about implementation. Let's take a look at SingleObjectMixin.get_object(): http://code.djangoproject.com/browser/django/trunk/django/views/generic/detail.py Why does it use function arguments, and not self.kwargs, while,

Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread David Gouldin
As client-side templates become more popular, it is increasingly likely that django's template language will not be the only one present in a template. (jQuery's new template language makes frequent use of curly braces in its syntax.) At the same time, the assumption that all template syntax shou

,new class based views

2010-10-19 Thread Valentin Golev
Hello -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options,

,new class based views

2010-10-19 Thread Valentin Golev
Hello -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options,

Re: Field localize useless

2010-10-19 Thread Michel Thadeu Sabchuk
Hi Russell! > Even if you are using L10N, there are occasions when localized widgets > *aren't* the right thing to do. > > Consider as an example: Australian postcodes are 4 digit numbers. It's > entirely reasonable that they might be stored as an IntegerField. But > it would be completely inappro

Re: Model proxy instance does not equal the respective model instance

2010-10-19 Thread Byron
Added ticket and patch: http://code.djangoproject.com/ticket/14492 On Oct 17, 12:00 pm, Byron wrote: > I came across an issue when comparing a model proxy instance and a > model instance, that is: > >     obj1 = Entry.objects.get(id=1) >     obj2 = EntryProxy.objects.get(id=1) > >     obj1 == obj

Re: #6375 -- Class Based Views: Opinions on commit plan

2010-10-19 Thread Łukasz Rekucki
On 19 October 2010 05:10, Russell Keith-Magee wrote: > On Tue, Oct 19, 2010 at 10:29 AM, Will Hardy wrote: >> Whilst I agree that messing with contrib.auth is likely to break >> something and create more work, I think it would be good for Django if >> everyone in the Django community went and nee