Skip to content

feat: on action decorator#1090

Draft
sveneberth wants to merge 4 commits into
viur-framework:developfrom
sveneberth:feature/on_action
Draft

feat: on action decorator#1090
sveneberth wants to merge 4 commits into
viur-framework:developfrom
sveneberth:feature/on_action

Conversation

@sveneberth
Copy link
Copy Markdown
Member

Usage

class MyModule(List):
    @on_edited
    @on_added
    def entry_observer(self, skel):
        print(f"Entry changed: {skel = }")

What do u think of this concept?

@sveneberth sveneberth added the feature New feature or request label Mar 5, 2024
@sveneberth sveneberth added this to the Action-Skels milestone Mar 5, 2024
@sveneberth sveneberth changed the title Feature/on action feat: on action decorator Mar 5, 2024
@phorward
Copy link
Copy Markdown
Member

phorward commented Mar 5, 2024

What do u think of this concept?

Quite interesting. This looks like a more dynamic replacement for #972.
But I would like to combine it with the meaning of actions. So an action is defined once, and generates hooks, access, access-right etc. via one definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants