On Tue, Sep 9, 2008 at 5:41 AM, magocrab <[EMAIL PROTECTED]> wrote:
>
> I can not perform the following query:
>
> print db.GqlQuery("SELECT * FROM Profiles WHERE nick != :1",
> nick).count()
>
> The error I get is as follows:
>
> //////////////////////////////////////////
> pb.set_kind(self.__kind.encode('utf-8'))
>
> 'NoneType' object has no attribute 'encode'
> ///////////////////////////////////////////////
It's a known problem that is getting fixed:
http://code.google.com/p/googleappengine/issues/detail?id=586
In the meantime, you can run the query with a .fetch(1000) and use
Python's len() to find out how many elements. It's not a great
solution, but it should work.
Dave.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---