When converting urlsafe versions of keys to actual keys, there is a method to get by urlsafe string, but not one for urlsafe string and kind. It would be nice to have a method like:
ndb.Key(urlsafe='urlsafe_string', kind='Car')
... instead of having to do:
key = ndb.Key(urlsafe='urlsafe_string')
if key.kind() != Car.name:
key = None
Just to verify that the key being returned is the expected type.
When converting urlsafe versions of keys to actual keys, there is a method to get by urlsafe string, but not one for urlsafe string and kind. It would be nice to have a method like:
ndb.Key(urlsafe='urlsafe_string', kind='Car')
... instead of having to do:
key = ndb.Key(urlsafe='urlsafe_string') if key.kind() != Car.name: key = None
Just to verify that the key being returned is the expected type.