I have the following problem (whose answer I fear is that it does not support it). I have verified that this sentence runs without problems:
res = tuple(Cliente.select(lambda c: c.nombre == "Pepe"))
But my problem is that name is inside a variable, so I tried the following to try:
res = tuple(Cliente.select(lambda c: getattr(c, "nombre") == "Pepe"))
This, on the other hand, returns an error TypeError: getattr(c, 'nombre')
. I do not think that there is an error with such a concept, so I think that simply, pony-orm does not support it. Do you know anything?