py4web 1.20250921.1 is published

21 views
Skip to first unread message

Massimo DiPierro

unread,
Sep 22, 2025, 2:54:56 AM (7 days ago) Sep 22
to py4web
Changelog

- Upgraded pydal to provide default IS_IN_DB() and IS_LIST_OF(IS_IN_DB()), thanks laundmo
- Fixed insecure nsecure deprecated document.write, thanks laundmo
- reverted (temporarily) the widget refactor b2e7174c0a7e4ff17d65cb93aa48e57251d8228b

The widget refactor was not backward compatible and also alters the global widgets object which can cause one app to interfere with another app. I will review that commit more carefully and find a way to include the desired new features but make it backward compatible.

laundmo

unread,
Sep 22, 2025, 9:33:24 AM (6 days ago) Sep 22
to py4web
Hi Massimo,

I've re-added the widgets refactor in this PR, along with 1 critical logic fix (though one for new features) along with clarifying docs about backwards compat and different usages FormStyle.widgets (it can take both backwards compatible widgets with just a single .make method, and new Widget subclasses)
https://github.com/web2py/py4web/pull/1001/files

Otherwise, I don't know what parts of it are not backwards compatible, besides perhaps the inclusion of new default widgets for <input type="number">? Please feel free to elaborate on your findings in the PR, here, or in the new thread i created for this here: https://groups.google.com/g/py4web/c/Y-1cN-d48eY

- laund
Reply all
Reply to author
Forward
0 new messages