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

Pluggable apps infrastructure improvements #37

Open
kashifpk opened this issue Apr 18, 2014 · 2 comments
Open

Pluggable apps infrastructure improvements #37

kashifpk opened this issue Apr 18, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@kashifpk
Copy link
Owner

Currently the method of specifying pluggable app names as strings in a list isn't very pythonic. Allow importing apps and then including them in the enabled_apps list. Imported apps may reside in project's app folder or may be a pre-built pyck app downloaded and installed in the system/virtualenv. Example contents of apps/init.py may look like:

from pyckapps import register, admin, cms
import myapp1, myapp2

enabled_apps = [register, admin, cms, myapp1, myapp2]

Ideally pluggable apps (specially pre-installed ones) should provide a method to override the url prefix so that if a different url prefix than the default app name is desired it can be done in apps/init.py

@kashifpk kashifpk added this to the Version 1.0 milestone Apr 18, 2014
@kashifpk kashifpk self-assigned this Apr 18, 2014
@kashifpk
Copy link
Owner Author

kashifpk commented Nov 1, 2014

Given some further thought using subapps as egg files would increase project dependencies and mostly offers "use but don't change" scenarios. Having the subapp inside the project gives the freedom to modify the app if required which in the long run would improve app quality and features from contributions of developers using the apps.

Closing this ticket.

@kashifpk kashifpk closed this as completed Nov 1, 2014
@kashifpk
Copy link
Owner Author

With the release of Pyramid 1.6 we now have pyramid.config.Configurator.root_package attribute and init method. Sub apps can use pyramid.config.Configurator.root_package to reference the root package making import-able subapps much easier to do. Re-opening this ticket as this now involves much less work.

@kashifpk kashifpk reopened this Apr 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant