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'
///////////////////////////////////////////////
I have also tried as follows:
query = Profiles.all()
query.filter('nick !=', 'magocrab')
print query.count()
The error I get is as follows:
///////////////////////////////////////////
BadFilterError: invalid filter: Could not parse filter string: nick !
=.
////////////////////////////////////
Does anyone know how to fix it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---