def encode_entity_table_key(key):
 if (not isinstance(key, entity_pb.Reference)):
  key = entity_pb.Reference(key)
 prefix = dbconstants.KEY_DELIMITER.join([key.app(), key.name_space()])
 return get_entity_key(prefix, key.path())

def encode_entity_table_key ( key ) : if ( not isinstance ( key , entity_pb . Reference ) ) : key = entity_pb . Reference ( key ) prefix = dbconstants . KEY_DELIMITER . join ( [ key . app ( ) , key . name_space ( ) ] ) return get_entity_key ( prefix , key . path ( ) )
create a key that can be used for the entities table .