Ok I put it up.
It does not affect the _() syntax at all, except for allowing the use
of _() within a trans tag... But I don't feel that it is a problem.
The patch includes a backwards-compatiblity workaround. Again I bring
up the single/double quote issue, but since {% trans %} works with
singl
Gary Wilson wrote:
> Is there a reason why setup_environ adds the parent directory of the project
> directory to the path, imports the project module, and then removes the parent
> directory from the path? The imported project module is also not used
> afterwards.
Adrian, do you know?
--~--~--
On Sat, 2007-11-17 at 19:55 -0800, Dmitri Fedortchenko wrote:
> Great.
>
> Here are the tickets:
> http://code.djangoproject.com/ticket/5971
> http://code.djangoproject.com/ticket/5972
>
> And while we're on the subject of tickets:
> I've been digging around in the jungle of template parsing wh
Great.
Here are the tickets:
http://code.djangoproject.com/ticket/5971
http://code.djangoproject.com/ticket/5972
And while we're on the subject of tickets:
I've been digging around in the jungle of template parsing while
working on this patch and and the trans patch, and a thought occured
to me.
Sorry, I made a (hopefully obvious) mistake in my example, see below:
On Sun, 2007-11-18 at 04:33 +0100, Mark Green wrote:
> ---
>
> Template:
>
> -
> {% blocktrans with value|filter as number %}
> This will have [[]]one item[[]] inside
> {% plural %}
> This will have [[]]%{number} items[[]] in
Hi,
On Fri, 2007-11-16 at 02:11 -0800, alain D. wrote:
> Hi,
>
>Following up on a previous discussion about an important but
> complex i18n missing feature :
> http://groups.google.com/group/django-developers/browse_thread/thread/c88b582fa4764aaa
>
> I've been thinking over and over about
On Sat, 2007-11-17 at 17:47 -0800, Dmitri Fedortchenko wrote:
> Once again I return with my whacky ideas.
>
> I want to apply filters to my translations in the templates. So.
> I have created a patch which allows use of the following syntax:
>
> {% trans "username"|capfirst|slice:"2:" noo
On Sat, 2007-11-17 at 18:27 -0800, Dmitri Fedortchenko wrote:
> The django.template.TokenParser has a little problem.
>
> I am not sure if this is a problem actually, but it is inconsistent
> when parsing filters that follow constant strings or variables.
>
> Meaning that:
> {% tag thevar|filte
The django.template.TokenParser has a little problem.
I am not sure if this is a problem actually, but it is inconsistent
when parsing filters that follow constant strings or variables.
Meaning that:
{% tag thevar|filter sometag %} will produce:
self.value() = "thevar|filter"
self.tag() = "somet
Once again I return with my whacky ideas.
I want to apply filters to my translations in the templates. So.
I have created a patch which allows use of the following syntax:
{% trans "username"|capfirst|slice:"2:" noop %}
{% trans somevar|slice:"2:" %}
The filters are applied on the resu
Thanks a lot guys, I like many of your methods for solving the
problem, and probably I'll implement one by now.
But, I think that discusion should be about if it'll be good to change
django itself in any way.
May be form_for_model is behaving as expectly, but then, which method
has Django for al
Hello,
Maybe the snippet which I created today can help you. It displays a
delete checkbox next to the :
http://www.djangosnippets.org/snippets/469/
However, I'm not sure if it will work in admin.
tom
On 16.11.2007, at 18:12, Marc Garcia wrote:
>
> There are a couple of things about FileFie
> I've a model:
>
> class Person(model.Model):
> name = models.CharField(maxlength=32)
> [...]
> picture = models.ImageField(upload_to='pictures', blank=True)
>
> Imagine that I've created a person record with a picture of anoother
> person, and I want to delete it (the picture). How c
On Nov 17, 8:06 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> All you're doing is asking the same questions as in previous threads.
> How does that inject clarity?
We will disagree about the accuracy of that statement but your
response is by far the most clear and succinct response to th
On Fri, 2007-11-16 at 18:03 -0500, Elegantly Subtle wrote:
> There's no real decisive answer to this recurring question so
> hopefully this will inject some clarity into the discussion...
All you're doing is asking the same questions as in previous threads.
How does that inject clarity?
> Wha
There's no real decisive answer to this recurring question so
hopefully this will inject some clarity into the discussion...
What is the current status of Multiple Database support in Django?
What is the timeline for integration of Multiple Database support in
the trunk?
The current ticket
> Jeremy Dunck wrote:
>> As for close rates and other useful metrics, yeah, those should be
>> more visible. :)
Marty Alchin wrote:
> I've wondered about building a Trac plug-in to monitor those types of
> things and provide reports. There's a wealth of information in Trac
> just waiting to be m
17 matches
Mail list logo