[google-appengine] Re: Working with Query results

2010-11-10 Thread Zeynel
On Nov 10, 9:11 am, Wim den Ouden wdenou...@gmail.com wrote:

 I don't use templates but as a guess i think you use result.mCOUNT

Ok. So I try something like this:

for result in RESULTS:
WEIGHT = (datetime.datetime.result.mDATE.toordinal()) *
result.mCOUNT

but I get this error:

WEIGHT = (datetime.datetime.result.mDATE.toordinal()) * result.mCOUNT
AttributeError: type object 'datetime.datetime' has no attribute
'result'

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Working with Query results

2010-11-10 Thread Wim den Ouden
result is not part of datetime.datetime, use (
(datetime.datetime(result.mDATE.toordinal()) * result.mCOUNT)

On Wed, Nov 10, 2010 at 3:38 PM, Zeynel azeyn...@gmail.com wrote:
 On Nov 10, 9:11 am, Wim den Ouden wdenou...@gmail.com wrote:

 I don't use templates but as a guess i think you use result.mCOUNT

 Ok. So I try something like this:

 for result in RESULTS:
    WEIGHT = (datetime.datetime.result.mDATE.toordinal()) *
 result.mCOUNT

 but I get this error:

 WEIGHT = (datetime.datetime.result.mDATE.toordinal()) * result.mCOUNT
 AttributeError: type object 'datetime.datetime' has no attribute
 'result'

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.





-- 
gr
wdo

Demo free E-business: https://e-comm.appspot.com
Wim den Ouden Google App Engine (cloud)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.