What’s new about Sprox 0.8

Today Sprox 0.8 got released, it is the first release to add ToscaWidgets2 support. Depending on which version of ToscaWidgets is available inside your environment Sprox will either use TW1 or TW2 to generate its forms. Being mostly a TW2 oriented release it might seem that not a lot changed since the previous version, but a little gem is hidden between all the TW2 changes as Sprox now supports setting default behavior for models themselves using the __sprox__ attribute inside model declaration. class Parent(DeclarativeBase): __tablename__ = ‘parents’   uid = Column(Integer, primary_key=True) data = Column(String(100))   class Child(DeclarativeBase): __tablename__ = ‘children’   class __sprox__(object): dropdown_field_names = {’owner': [’data’]}   uid = Column(Integer, primary_key=True) data = Column(String(100))   owner_id = Column(Integer, […]