Re: Random Tag

2005-12-03 Thread Eugene Lazutkin
"Simon Willison" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Actually the Flickr front page photo is picked from a small subset of > editorially approved pictures (with accompanying relevant quotes) so it > could be done using the proposed tag. Really? About a month ago I

Re: Random Tag

2005-12-03 Thread Simon Willison
On 2 Dec 2005, at 12:03, Tim Keating wrote: -1 from me. As a *user*, I would much rather just generate random content inside of my view code. I'd like to point out the cited example (random photo on Flickr) can't be done with this technique, since this is baked into the template. Actually

Re: Random Tag

2005-12-03 Thread Tom Tobin
On 12/3/05, Tim Keating <[EMAIL PROTECTED]> wrote: > > "Hate" is too strong a word. However, I do feel that this is not a > positive addition. > My apologies, I hate to be negative about someone else's hard work. Don't worry, I'm merely poking back in jest; I asked for criticism in the first pla

Re: Random Tag

2005-12-03 Thread Tim Keating
"Hate" is too strong a word. However, I do feel that this is not a positive addition. Django offers a nice three-tiered architecture in terms of information presentation: - Views, to select content. - Templates, to organize content into manageable structures. - CSS, to tell the browser how to

Re: Random Tag

2005-12-02 Thread Tom Tobin
On 12/2/05, Tim Keating <[EMAIL PROTECTED]> wrote: > > -1 from me. As a *user*, I would much rather just generate random > content inside of my view code. I'm surprised this makes you -1 rather than -0; do you hate it that much? :-) > I'd like to point out the cited example > (random photo on F

Re: Random Tag

2005-12-02 Thread Tim Keating
-1 from me. As a *user*, I would much rather just generate random content inside of my view code. I'd like to point out the cited example (random photo on Flickr) can't be done with this technique, since this is baked into the template.

Re: Random Tag

2005-11-30 Thread Tom Tobin
On 11/29/05, Tom Tobin <[EMAIL PROTECTED]> wrote: > I'd be interested in feedback on ticket #919, which implements a > "random" tag which parallels the functionality of the random filter. I've split out a weighted random class, `RandWeight`, that lives in `dj

Re: Random Tag

2005-11-29 Thread Simon Willison
On 29 Nov 2005, at 05:30, Tom Tobin wrote: I'd be interested in feedback on ticket #919, which implements a "random" tag which parallels the functionality of the random filter. I'd also be curious as to where the best place would be to implement a possible helper class for

Re: Random Tag

2005-11-29 Thread Adrian Holovaty
On 11/29/05, Tom Tobin <[EMAIL PROTECTED]> wrote: > I'd be interested in feedback on ticket #919, which implements a > "random" tag which parallels the functionality of the random filter. I definitely like it and feel like it's a worthy addition to the default

Re: Random Tag

2005-11-29 Thread Tom Tobin
On 11/29/05, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > What is the use case of this tag? This looks like logic, template in > philosophy dictates the layout of the data generated in the views. Putting > weights for example, is it not more of a logic than presentation? Some measure of logic is na

Re: Random Tag

2005-11-29 Thread Amit Upadhyay
On 11/29/05, Tom Tobin <[EMAIL PROTECTED]> wrote: I'd be interested in feedback on ticket #919, which implements a"random" tag which parallels the functionality of the random filter.I'd also be curious as to where the best place would be to implement a possible helper cla

Random Tag

2005-11-28 Thread Tom Tobin
I'd be interested in feedback on ticket #919, which implements a "random" tag which parallels the functionality of the random filter. I'd also be curious as to where the best place would be to implement a possible helper class for the weighted random option, as I was co