Hey Bruce,
This is just standard "Python stuff." The brackets ("[...]")
indicate that what ever you are logging is a list (due the the
get_all). The 'u' prefixing the quote indicates that it is a unicode
string.
You should probably use self.request.get('query') instead of get_all.
Robert
On Wed, Jun 22, 2011 at 04:20, Bruce Aloe <[email protected]> wrote:
> Hello,
>
> I have put some python code in GAE and my client (some java code) each
> time sends a http request with a query to python code. The python code
> receives the query and run it, then generate the query result. The
> python code actually uses get_all function to get the query passing
> from client to server.
>
> When i look at the logging information from log menu in admin console,
> the logged query information is like:
> [u"select * from Employee where salary > 8000"]
>
> As you can see the query string is surrounded by [u ...]
>
> What does [u ...] mean? Could i have a way to take it off?
>
> Thanks!
>
> Bruce
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.