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

Plugin system improvement needed #157

Open
CarolinaFernandez opened this issue May 8, 2013 · 0 comments
Open

Plugin system improvement needed #157

CarolinaFernandez opened this issue May 8, 2013 · 0 comments

Comments

@CarolinaFernandez
Copy link
Member

There are some issues that should be taken care of in the future as to improve its development:

  • Settings are not loaded anymore in plugin.py because of the objects PLUGIN_LOADER and TOPOLOGY_GENERATOR, two classes instances persistent in memory that were assigned to those variables. This caused some interference with the authentication in auth.wsgi. To solve this, the settings are loaded now in the urls.py; but this is not a nice place to do such loading. Take a look at this to see how this can be put back into plugin.py

  • Settings are now loaded twice: data in variables is repeated. See how to load only once

  • Path for plugins is now hardcoded in settings.py) (some problems arose from setting this in the following old fashion, inside plugin.py):

    PLUGIN_LOADER.set_plugins_path(os.path.join(os.path.dirname(file), "../../../plugins/"))

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

No branches or pull requests

1 participant