Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Modules #21

Open
6 tasks
da-h opened this issue Jul 13, 2020 · 0 comments
Open
6 tasks

Dynamic Modules #21

da-h opened this issue Jul 13, 2020 · 0 comments
Projects
Milestone

Comments

@da-h
Copy link
Owner

da-h commented Jul 13, 2020

introduce child modules to make it possible to collect / choose / merge several modules dynamically

API Proposal:

  • when loading modules, call them with moduleA(strargument,42) to initialize a module with user-given arguments
  • in case there is only one string-argument, you can use alternatively moduleA.strargument instead of moduleA(strargument)`.
  • in case an argument-id is given, the dynamic module loads another module as a child module, meaning that no events are registered globally, but only locally
  • defaults can be overwritten by moduleA during registration phase
  • internally, it uses load(..., eventbind=False, as_id='.') (see Allow reinstantiation of modules #17)
  • enable local event objects and the possibility to register methods to local miniflask event objects only

Problems so far with this plan:

  • how to define that at least a module of type x/with event y shall be called?
  • can we combine register_default_modules with that? (See Redo register_default_module #22)
@da-h da-h added this to the v2.1 milestone Nov 11, 2020
@da-h da-h added this to Open in v2.0 Dec 7, 2020
@da-h da-h removed this from Open in v2.0 Dec 7, 2020
@da-h da-h added this to Open in v2.0 Dec 7, 2020
@da-h da-h added this to To do in v2.1 via automation Feb 3, 2021
@da-h da-h removed this from Open in v2.0 Feb 3, 2021
@da-h da-h modified the milestones: v3.0, v5.0 Oct 6, 2022
@da-h da-h changed the title Child-Modules Dynamic Modules Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v2.1
To do
Development

No branches or pull requests

1 participant