I’m looking to implement a simple Python decorator in anvil. I’ve attached the project I’m working with. The decorator is f1, and resides in the “Homepage” form. Not sure what I’m doing wrong here…
I’ve decorated a simple “greet” function with f1.
Here’s the app:
https://anvil.works/build#clone:N5U5K34KSFW5EEGH=Z2QKVAEZNRVQHFXHVAUOF22K
A side note: I’m trying to figure out how this works so I can decorate textboxes and other various inputs with validation decorators to save time doing simple validation.