Re: MS SQL pyodbc backend update to trunk

2008-07-18 Thread vcc
Fixed, thanks. - Original Message - From: "bob84123" <[EMAIL PROTECTED]> To: "Django developers" Sent: Wednesday, July 16, 2008 7:51 AM Subject: Re: MS SQL pyodbc backend update to trunk Thanks for that. Turned out the problem I was having was to

Re: MS SQL pyodbc backend update to trunk

2008-07-10 Thread vcc
m djang.db import connection s = Session.objects.get( session_key = self.session_key, expire_date__gt= connection.sql_date_now() ) Any idea? Regards, Wei guangjing On 7月8日, 下午9时36分, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-0

MS SQL pyodbc backend update to trunk

2008-07-02 Thread vcc
I port MS SQL pyodbc backend (django-pyodbc) to newforms-admin r7671, tested on ubuntu 8.04 and with SQL Server 2005. I found sql server need convert boolean value to integer (BooleanField), so need add a new feature like 'needs_bool_to_integer' to DatabaseFeatures, deafult to False. Since

Re: Pick a value from list variable in templates

2008-03-05 Thread vcc
- Original Message - From: "Collin Grady" <[EMAIL PROTECTED]> To: <django-developers@googlegroups.com> Sent: Thursday, March 06, 2008 3:59 AM Subject: Re: Pick a value from list variable in templates > > vcc said the following: >> I got a

Re: Pick a value from list variable in templates

2008-03-05 Thread vcc
I got another ID: foo.(bar) It's clear and no conflict, also can use nested, for example foo.(one.(tow.(three))). or maybe: foo(bar) is look better. Best regards, vcc _ --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Pick a value from list variable in templates

2008-03-04 Thread vcc
o.__bar__ > }}, do I mean `getattr(foo, bar)`, or do I just want an attribute of > foo that happens to be named __bar__? > Lookup in order, first check if foo has an attribute named __bar__, if not do `getattr(foo, bar)`, should avoid conflict. Just like the same way django l

Re: Pick a value from list variable in templates

2008-03-04 Thread vcc
- Original Message - From: "Collin Grady" <[EMAIL PROTECTED]> To: <django-developers@googlegroups.com> Sent: Wednesday, March 05, 2008 12:49 PM Subject: Re: Pick a value from list variable in templates > > vcc said the following: >> How about: {{ foo

Re: Pick a value from list variable in templates

2008-03-04 Thread vcc
t``, > ``getitem``, and probably others (search the archives). > > Though the code is simple, from a design POV it's a lot more > difficult. Anyone who wants to push this feature through is going to > need to come up with a compelling design first; the code is easy. > How about: {{ f