开发者

Get_by_key_name doesn't work with unicode key names of several characters

I'm using unicode strings for non latin characters as key names for my models.

I can create objects without problems, and the appengine admin shows key name correctly (I'm using chinese characters, and the right characters)

However, MyModel.get_by_key_name() returns No开发者_如何学JAVAne if the key_name is made of several characters. For 1 character key name, everything works fine.

Does anyone know about that?

Thanks!


Actually, I made some stupid encoding error when testing yesterday, which made me think the error came from the function.

The problem doesnt come from the keys. It is just an error in my algorithm that won't check for keys of 2 characters if there is no object which the 1st character as keyname.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜