anvilistas / anvil-extras

Other
84 stars 25 forks source link

Fix augment name conflicts #558

Closed s-cork closed 2 months ago

s-cork commented 2 months ago

This monkey patch breaks code that does

self.raise_event("foo", event=some_event)

event_name should be a safe name here

you shouldn't do raise_event("foo", event_name="bar") because event_name gets overridden to "foo" anyway.