Ticket opened. http://code.djangoproject.com/ticket/6272
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscr
On Tue, 2007-12-18 at 00:42 -0800, Tai Lee wrote:
> I think I was just bitten by this. The model fields defined in
> django.contrib.auth.models (and I assume other parts of django) use
> django.utils.translation.ugettext_lazy to specify the label (or
> another property from which the label is der
I think I was just bitten by this. The model fields defined in
django.contrib.auth.models (and I assume other parts of django) use
django.utils.translation.ugettext_lazy to specify the label (or
another property from which the label is derired). The form field
objects generated by form_for_* and M
On Dec 17, 6:52 pm, "Gary Wilson Jr." <[EMAIL PROTECTED]> wrote:
> SmileyChris wrote:
> > I've been working on a new version of the session messages ticket and
> > was looking at making the "messages" context variable lazy - it seems
> > silly how it currently wipes messages, even if you didn't ch
SmileyChris wrote:
> I've been working on a new version of the session messages ticket and
> was looking at making the "messages" context variable lazy - it seems
> silly how it currently wipes messages, even if you didn't check for
> them.
What ticket number is this btw?
--~--~-~--~
On Tue, 2007-12-04 at 20:47 -0800, SmileyChris wrote:
> On Dec 5, 2:25 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > > It only just works :P
> >
> > it's called Fit For Purpose. You've yet to demonstrate somewhere in
> > Django we need all these extra levers of which you speak.
>
> The
On Dec 5, 2:25 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> > It only just works :P
>
> it's called Fit For Purpose. You've yet to demonstrate somewhere in
> Django we need all these extra levers of which you speak.
The lazy __proxy__ class is full of magical bits, which I don't really
get
On Mon, 2007-12-03 at 16:02 -0800, SmileyChris wrote:
> On Dec 4, 4:39 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > > lazy()
> >
> > Of course it works. We're using it throughout Django for lazy
> > translations.
>
> It only just works :P
it's called Fit For Purpose. You've yet to de
On Dec 4, 4:39 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> > lazy()
>
> Of course it works. We're using it throughout Django for lazy
> translations.
It only just works :P
Currently a lazy object isn't considered an instance of its
resultclasses
So you can't do: isinstance(my_lazy_string
On Dec 4, 4:39 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> lazy() is complex enough without adding things we don't need.
I guess this is my point. It seems that lazy() has been made overly
complex for little gain.
> If there's a legitimate case where Django core needs this extra
> functi
On Mon, 2007-12-03 at 00:03 -0800, SmileyChris wrote:
> On Dec 3, 6:02 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
> > What method?
>
> lazy()
Of course it works. We're using it throughout Django for lazy
translations.
Keep in mind though that most of the stuff in django.utils is for
D
On Dec 3, 6:02 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> What method?
lazy()
Maybe I just don't get how it is supposed to work, but the setattr
line seems wrong, at least for setting special method names.
Also confusing is that the docstring says "Results are not memoized;
the functio
On Sun, 2007-12-02 at 20:44 -0800, SmileyChris wrote:
> I tried actually using lazy today for something and couldn't get it to
> work.
> It seems to me that the current implementation is basically broken.
>
> For example, I was trying to do lazy(my_function, list)
> __proxy__.__init__ tries to s
I tried actually using lazy today for something and couldn't get it to
work.
It seems to me that the current implementation is basically broken.
For example, I was trying to do lazy(my_function, list)
__proxy__.__init__ tries to setattr(self, k, [promise]), but that
won't actually work for any ma
14 matches
Mail list logo