I have recently updated my SQLAlchemy and FormAlchemy to the newest ones and a strange thing has occurred.
I do use Mako Templates to display data from my model.
Python:
class Asset(object):
id = Column(Integer, primary_key=True, nullable=False)
...
@hybrid_property
def underscore_name(self):
return "x_underscore_name_x"
Mako template:
<li>Item: ${Asset.underscore_name}</li>
Before the upgrade the web page rendered text was:
Item: x_underscore_name_x
After the upgrade it shows:
Item: Asset.underscore_name
Important! The method is being executed but the returned result is not being rendered on the webpage. Any ideas?
EDIT:
The library responsible for this behaviour is SQL Alchemy >=1.1.0. Version 1.0.19 does not have this issue. Let's see what's the response from the developers.