Commit Graph
13 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 8ce6312190 Tune log message verbosity
It is no longer very important to show Django configured applications
and module import messages because in practice we have rarely ever seen
being useful anywhere but for development.  Just print the module load
order just once.
2016-09-17 13:48:42 -04:00
Sunil Mohan Adapa 80d9f0d41e module_loader: Add setup helper to every module
- During initialization add a setup helper to every module.  For use
  later.
2016-02-13 13:50:06 +05:30
Sunil Mohan Adapa 7f4c5f7410 Make app names as module identifiers
- The last part of the module import path is the module name.  This also
  becomes the Django app name.  Apps names have to be unique.  Hence,
  there is no scope for two different modules with same name but
  different load path to exist in the project.

- Most uses of list of loaded modules are dealing with app names instead
  of full module load path.  This is due to the fact that Django deals
  with app names and not module paths.

- It is also somewhat clumsy to access a loaded module as we are
  re-importing every time to get access module.

- Simplify all of the above by using app names are module identifiers
  and maintaing an ordered dictionary of app names to loadded modules.

- Remove unused imports.

- Minor styling fixes.
2016-02-13 13:49:23 +05:30
Sunil Mohan Adapa a69f419c3c Make Django urlpatterns list of url()s
- Support for legacy pattern() mechanism will be removed in Django
  1.10.  Currently we see a warning for each Plinth module.
2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa eae507d456 Minor pylint fixes 2015-07-28 20:01:39 +05:30
Sunil Mohan Adapa da9faa5e02 Don't load Debian backup files as module configuration
When modules were removed, Debian packaging also had to remove them to
avoid errors.  When Debian guidelines are following and correspoding deb
helper is used, it creates .dpkg-* files in the module configuration
directory.  Plinth tries to load these which causes problems.  We should
consider loading files with a known extension in future.
2015-01-25 01:50:31 +05:30
Sunil Mohan Adapa 0bb2dd51d8 Minor styling changes in first boot module 2014-10-20 00:22:47 +05:30
fonfon 699a3ac0dc fixed static_dir of modules; omit hidden files in modules_enabled directory 2014-10-20 00:14:09 +05:30
Sunil Mohan Adapa fc2fdc4d27 Turn modules into proper Django applications 2014-10-04 13:43:22 +05:30
Sunil Mohan Adapa cc549fff61 Load modules using explict paths instead of config file name 2014-10-04 13:41:27 +05:30
Sunil Mohan Adapa 9e0d08e49d Move enabled modules list to configuration directory 2014-10-04 13:41:26 +05:30
fonfon 53adac652b introduced signals for pre/post-module-loading 2014-09-12 22:26:35 +02:00
Sunil Mohan Adapa 65fa648d9f Reorganize python sources into 'plinth' package 2014-08-29 12:57:27 +05:30