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

Allow reinstantiation of modules #17

Closed
da-h opened this issue Jun 28, 2020 · 1 comment
Closed

Allow reinstantiation of modules #17

da-h opened this issue Jun 28, 2020 · 1 comment

Comments

@da-h
Copy link
Owner

da-h commented Jun 28, 2020

It should be possiboe do instanciate of modules without making them fill the global event or state scope.

Used cases are:

  • allow multiple instances of the same module coexist
  • allow multiple modules ciexist that definde the same unique-events
@da-h da-h changed the title Allow instances modules coexist Allow instances of modules coexist Jun 28, 2020
@da-h da-h changed the title Allow instances of modules coexist Allow reinstantiation of modules Jun 28, 2020
@da-h
Copy link
Owner Author

da-h commented Jul 9, 2020

API-Proposal:

  • (66bf7a1) load("moduleA",as_id="other.id.moduleA_changed_name") loads a module under a different id.
    • for instance, it is possible to redefine multiple modules with different states
    • these states should have moduleAs state as default
  • (66bf7a1) load("moduleA", bind_events=False) does not bind the events to the global scope of the events-object. This makes sese when issue wrap events using other modules #20 has been included and events are still callable using event.by_module["moduleA"].eventname.

@da-h da-h mentioned this issue Jul 13, 2020
6 tasks
@da-h da-h closed this as completed Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant