Re: is_safe problem

2007-11-21 Thread Ivan Sagalaev
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 > __unicode__ value yet. As far as I understand the thing *now*, it

Re: is_safe problem

2007-11-21 Thread Michael Radziej
Hi Chris, SmileyChris wrote: > So my template looks like: {{ group|caps }} (`group` is a Model object > and the `caps` filter just capitalizes the first letter) and I'm stuck > with double escaping. > > The problem is, that it still gets double-escaped. Django's > FilterExpression checks to see

Re: is_safe problem

2007-11-21 Thread SmileyChris
PS: I've never even noticed the built-in `capfirst` filter until just now, but mine was pretty much identical. The built-in one doesn't solve this problem either. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

is_safe problem

2007-11-21 Thread SmileyChris
So my template looks like: {{ group|caps }} (`group` is a Model object and the `caps` filter just capitalizes the first letter) and I'm stuck with double escaping. The problem is, that it still gets double-escaped. Django's FilterExpression checks to see if the incoming object is SafeData, but

Re: Why newforms does not have required class on label

2007-11-21 Thread [EMAIL PROTECTED]
On Nov 21, 3:01 pm, onno <[EMAIL PROTECTED]> wrote: > On 21 nov, 13:56, "James Bennett" <[EMAIL PROTECTED]> wrote: > > > On Nov 21, 2007 6:50 AM, onno <[EMAIL PROTECTED]> wrote: > > > > Why, did you developers not decide to include a automatic "class > > > required" value for label and input

CSS improvements for newforms

2007-11-21 Thread pm13
I tried to find a solution for tickets #3512 (Add "required" & "error" CSS classes to form rows in as_* methods) and #3515 (CSS improvements for newforms). I added a patch and I got an advice to bring this topic here. I would like to propose new attribute for Widget.__init__ - outer_attrs.

Re: Getting Images to display in Development Environment

2007-11-21 Thread Don Spaulding II
No, I meant #python, because you're almost always in #django.  :-P Good catch. Don Spaulding Collin Grady wrote: Don Spaulding said the following: into the irc channel (#python on irc.freenode.net) to get the help I think you mean #django on irc.freenode.net :)

Re: Getting Images to display in Development Environment

2007-11-21 Thread Collin Grady
Don Spaulding said the following: > into the irc channel (#python on irc.freenode.net) to get the help I think you mean #django on irc.freenode.net :) -- Collin Grady --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Why newforms does not have required class on label

2007-11-21 Thread onno
On 21 nov, 13:56, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Nov 21, 2007 6:50 AM, onno <[EMAIL PROTECTED]> wrote: > > > Why, did you developers not decide to include a automatic "class > > required" value for label and input fields. > > Have you considered searching the ticket tracker for

Re: Why newforms does not have required class on label

2007-11-21 Thread James Bennett
On Nov 21, 2007 6:50 AM, onno <[EMAIL PROTECTED]> wrote: > Why, did you developers not decide to include a automatic "class > required" value for label and input fields. Have you considered searching the ticket tracker for the open tickets on this issue and proposals for the best way to restore

Why newforms does not have required class on label

2007-11-21 Thread onno
Why, did you developers not decide to include a automatic "class required" value for label and input fields. Now you have to jump some hoops to get the required class on your label html output. This makes no sense in the general way that django works. something like f = form.form_for_model(Foo)

Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-21 Thread Will Hardy
Hi all, This is a really impressive solution. An extra idea: adding a {% as variable_name %}{% endas %} or {% as variable %}{% endas variable_name %} Example: {% blocktrans %} Received on {{ message.created|date as date }} from {% as link_open %}{% endas link_open }} {{