26 Commits

Author SHA1 Message Date
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
3df1a88824 Switch to Django i18n for code strings
Django i18n layer is on top of gettext and provide may crucial features
such as per-request locales, lazy translations etc.
2015-11-13 22:08:43 +05:30
Sunil Mohan Adapa
02cd89b60d Internationalize strings in template files 2015-11-13 22:02:17 +05:30
Sunil Mohan Adapa
4a9d877724 owncloud: Perform setup synchronously
Earlier, installation of the ownCloud package was performed as part of
setup process.  It took time and hence the action was done
asynchronously.  Now, however, package manager takes care of this.  To
avoid any potential race conditions with the user accessing ownCloud
before it is setup, perform the setup synchronously.
2015-09-27 23:02:46 +05:30
Sunil Mohan Adapa
0e111d833c Minor global variable naming fix
- For Python coding standards compliance
2015-09-27 23:02:46 +05:30
Sean Alexandre
d0bc2be3a3 owncloud: Adds on_install handler to enable after install.
Fixes https://github.com/freedombox/Plinth/issues/224
"Enable ownCloud after install"
2015-09-27 23:02:46 +05:30
James Valleroy
f81e4a60d3 owncloud: fix diagnose url 2015-08-29 06:59:37 -04:00
Sunil Mohan Adapa
8179e94d64 owncloud: Implement diagnostics 2015-08-29 06:22:02 -04:00
Sunil Mohan Adapa
04d0e3a550 owncloud: Move introduction from sidebar to main 2015-07-28 12:38:39 +05:30
Sunil Mohan Adapa
5ffe3dab70 Reorder all app menu items alphabetically
- Alphabetical order is best for users to find the necessary items
  quickly and precitably.

- Currently there is no particular order.
2015-07-28 12:15:35 +05:30
Sunil Mohan Adapa
1c5f4c04ec owncloud: Update menu item with generic name 2015-07-28 12:04:04 +05:30
fonfon
824a9091c1 use django-stronghold for authentication handling (instead of @login_required) 2015-07-01 00:01:02 +05:30
Bob Girard
d64ce6cc01 Bundle tests with applications
- For each application, add ./tests directory and __init__.py file
  within it.

- Modify test controllers (coverage.py, runtests.py) to find the new
  test directories for testing and coverage analysis.

- Move existing application-specific test modules (test_pagekite.py) to
  the newly created directories.
2015-06-26 12:05:48 +05:30
Sunil Mohan Adapa
53b0f5aca8 Don't use wells for placing all the content 2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa
b62f6746f4 Handle arguments to actions properly
- Don't allow strings to be sent as arguments.  The mixup with
  lists/tuples could be dangerous.

- Don't escape arguments.  subprocess.Popen takes care that arguments
  are passed on nicely to the actions.

- Update tests.
2015-05-01 18:52:17 +05:30
Sunil Mohan Adapa
be838a30c1 package: Add ability to receive notification on install
- Fix issue with Mumble firewall enabling after a fresh install.
2015-03-28 16:02:39 -04:00
fonfon
ef2bf32668 Made owncloud submit button more straightforward
As octogen pointed out on irc that's easy to miss that it's necessary
to click the submit button (and not just tick/untick the checkbox)
2015-02-11 10:28:29 +05:30
Sunil Mohan Adapa
9b9d112927 Use package framework for installing ownCloud 2015-01-05 00:13:19 +05:30
Sunil Mohan Adapa
271011adf6 Rename OwnCloud -> ownCloud 2014-12-06 17:08:38 +05:30
fonfon
96a14e3d0d moved 'in-app menu' from the sidebar to the top of the content; some template block renaming 2014-12-06 17:08:37 +05:30
Sunil Mohan Adapa
5b969d9d30 Explicitly write license headers for each source file
The package license (AGPL3+) implicitly indicates the license of each
file.  However, it is desirable to have license headers in each file.
This is the case for many prominent projects like GNU project, Mozilla
etc.
2014-11-30 14:49:49 +05:30
Sunil Mohan Adapa
6a1f96d7c2 Bootstrap change .btn-primary -> .btn .btn-primary
Only then the full intended style will apply.  This is a change from
Bootstrap 2 to Bootstrap 3.
2014-11-23 14:08:13 +05:30
fonfon
f0582e7a94 replaced bootstrap2 by bootstrap3 2014-11-11 19:06:47 +01:00
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
65fa648d9f Reorganize python sources into 'plinth' package 2014-08-29 12:57:27 +05:30