Re: Template IF statement with <,>,<=,>= (or equvalent)

2006-02-27 Thread Ivan Sagalaev
Glenn Tenney wrote: >I was thinking about this too... in my case I've got an event starting >date and ending date; in my views I want to be able to view based on >criteria such as: hasn't happened yet, hasn't happened yet but will happen >sometime this month / quarter / year, happened already thi

Re: Template IF statement with <,>,<=,>= (or equvalent)

2006-02-27 Thread Glenn Tenney
On Mon, Feb 27, 2006 at 01:42:23PM +0300, Ivan Sagalaev wrote: > Putting values in columns is indeed presentation logic. But deciding > what exactly is "debit" or "credit" is a business one. Django templates > pretty much require you to supply this exact distinction without > "implementation de

Re: Template IF statement with <,>,<=,>= (or equvalent)

2006-02-27 Thread [EMAIL PROTECTED]
Ok, thanks for your reply again. I now understand the Django's philosophy in a bit more detail after reading the following document: http://www.djangoproject.com/documentation/design_philosophies/ I decided to go for the option 1. -Alen --~--~-~--~~~---~--~~ You

Re: Template IF statement with <,>,<=,>= (or equvalent)

2006-02-27 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: >I have a bank statement for a particular account that I wish to display >as an HTML table. >I have a few statement attributes that come from my RDBMS. One in >particular named 'amount' that can be a positive or negative float >value. If its negative, it must show up in t

Re: Template IF statement with <,>,<=,>= (or equvalent)

2006-02-27 Thread [EMAIL PROTECTED]
Ok in a bit more detail as to what I'm trying to do. I have a bank statement for a particular account that I wish to display as an HTML table. I have a few statement attributes that come from my RDBMS. One in particular named 'amount' that can be a positive or negative float value. If its negativ

Re: Template IF statement with <,>,<=,>= (or equvalent)

2006-02-25 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: >Django Template engine seems to be very strate forward yet powerful, >however I can't for the life of me figure out how to check if variable1 >is greater then or smaller then variable2. > > You can't. Django's philosophy is that this is logic is probably a small part

Template IF statement with <,>,<=,>= (or equvalent)

2006-02-24 Thread [EMAIL PROTECTED]
Django Template engine seems to be very strate forward yet powerful, however I can't for the life of me figure out how to check if variable1 is greater then or smaller then variable2. Did a search on this group and looked at the templates doc and still can't figure it out. :-) It is a Friday in