Commit Graph
223 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 642a4e10ff Improve exception handle when running actions
- Don't use depricated exception.message. Instead using exception.args
- Pass stdout output along with stderr in exception
- Handle possible exceptions such as ValueError, OSError in all cases
- Log all command executions and their errors
2014-08-17 19:39:14 +05:30
Sunil Mohan Adapa 96aa493992 Fix sidebar menu in user management pages 2014-08-17 19:27:08 +05:30
Sunil Mohan Adapa ad144116e3 Fix sidebar menu in pagekite introduction page 2014-08-17 19:26:32 +05:30
Sunil Mohan Adapa eb034116b4 Fix link to ownCloud service
The link is intended to take the user to and address where ownCloud
services are provided and not to the Plinth ownCloud configuration
page.
2014-08-17 19:25:51 +05:30
Sunil Mohan Adapa 89d982715c Don't read arbitrary files from doc directory
Exposing all the files in doc directory is not a safe thing to do. It is
best to let only intended file to be read and displayed.
2014-08-17 19:24:31 +05:30
Sunil Mohan Adapa 128ef20743 Explictly close the file handle after reading a documentation page 2014-08-17 19:22:02 +05:30
Sunil Mohan Adapa dda4b930e0 Fix infinite redirection in first boot 2014-08-17 19:20:44 +05:30
fonfon f7c425384d updating documentation and translation 2014-07-11 03:14:45 +03:00
fonfon 1cf1cb2e90 moved context_processor from plinth.py to a separate file; removed two unnecessary context variables: 1) use cfg.main_menu instead of main_menu; 2) request_path is available automatically 2014-07-11 02:36:25 +03:00
fonfon 0d0c9f7bb0 removed all manual url prefix handling, we only use djangos url system now 2014-07-11 01:11:59 +03:00
fonfon 0e18fe3c1c Merge 'middleware' changes 2014-07-10 23:29:41 +03:00
fonfon 5150efac5f menu and submenu now also uses djangos named urls and url-reverse 2014-07-10 23:29:06 +03:00
fonfon 19f36f67d9 moved firstboot handling to a firstboot middleware 2014-07-10 19:49:41 +03:00
fonfon 0d5636a900 refactored actions to use exceptions instead of return-values 2014-07-10 18:27:49 +03:00
fonfon 50f657fbc5 tiny docstring, import and trailing slash change 2014-07-10 04:33:12 +00:00
fonfon a82a83576f use djangos named URLs and url-reverse instead of manually constructing urls 2014-07-10 03:44:52 +00:00
Sunil Mohan Adapa 6186be4421 Move xmpp module to python logging 2014-07-05 21:28:06 +02:00
Sunil Mohan Adapa eba3021765 Move users module to python logging 2014-07-05 21:28:00 +02:00
Sunil Mohan Adapa 588e3a62bd Move pagekite module to python logging 2014-07-05 21:27:53 +02:00
Sunil Mohan Adapa b4183618c1 Move firewall module to python logging 2014-07-05 21:27:46 +02:00
Sunil Mohan Adapa 8d477fceb7 Move config module to python logging 2014-07-05 21:27:34 +02:00
Sunil Mohan Adapa ae02192009 Remove unused filedict module 2014-06-28 13:23:32 +02:00
Sunil Mohan Adapa cff0f1bdf6 Use Django auth framework instead of custom one
- Store users using Django user/group/permission model
- Database is data/plinth.sqlite3 instead of data/user.sqlite3
- Use Django auth context processors in templates
2014-06-28 13:11:34 +02:00
Sunil Mohan Adapa fb2f91d4b4 Merge login_nav template with base template 2014-06-24 11:40:49 +02:00
Sunil Mohan Adapa f4fe85ae28 Refactor global code in configuration module 2014-06-23 12:22:46 +02:00
Sunil Mohan Adapa b76a74e684 Use Django messages module for showing messages 2014-06-22 11:49:39 +02:00
Sunil Mohan Adapa 58d13e3ed8 Use Django dispatcher instead of CherryPy dispatcher
This commit is big because anything small breaks the code.

- Django dispatcher is based on regular expressions and does not need a tree structure
- Reduces a lot of unnecessary dependencies among modules
- Use Django sessions middlewear instead of CherryPy sessions
- Introduce dependency based modules instead of numeric load order
- Remove PagePlugin and simply use Django views
- Eliminate page rendering wrappers in favor of Django context processors
- Use custom auth for now until replaced by Django auth middlewear
- Use Django templated 404 and 500 error pages
2014-06-12 23:33:25 +05:30
Sunil Mohan Adapa 26faa82fd4 Fix minor grammatic error in firewall status page 2014-06-12 23:18:51 +05:30
Sunil Mohan Adapa 1ec92ee346 Add Django urlpattern files for each module
This is in anticipation of the routing changes to come. The changes themselves do nothing.
2014-06-12 23:17:00 +05:30
Sunil Mohan Adapa 3e32715a55 Don't take unnecessary kwargs in exposed methods 2014-06-06 20:37:48 +05:30
Sunil Mohan Adapa ef493ae243 Use new-style classes everywhere 2014-06-06 18:21:54 +05:30
Sunil Mohan Adapa 37206f1e83 Move all modules from 'modules/installed' to 'modules' directory 2014-06-06 12:14:17 +05:30
Sunil Mohan Adapa 912c5022ca Module is a directory instead of file
- Move enabled module symlinks to 'modules/enabled' directory.
- Make all modules properly importable
- Import modules instead of their symlinks
2014-06-06 12:01:08 +05:30
Sunil Mohan Adapa 8d5e976b84 Move system/config to separate module 2014-06-03 19:51:21 +05:30
Sunil Mohan Adapa 58109eff5f Don't allow firstboot after completion of firstboot
Without this it would be possible to run firstboot at any time and create fresh
plinth accounts
2014-06-01 23:35:12 +05:30
Sunil Mohan Adapa 64fa4189a9 Redirect to /apps instead of /router after login and firstboot 2014-06-01 23:35:11 +05:30
Sunil Mohan Adapa ef01d89b0b Move users to separate module 2014-06-01 23:35:11 +05:30
Sunil Mohan Adapa 1aaa930a1f Move expert_mode to separate module
- Move one level up in menu
2014-06-01 23:35:11 +05:30
Sunil Mohan Adapa eb403b129b Move Packages to separate module 2014-06-01 23:35:11 +05:30
Sunil Mohan Adapa 889bd16f1e Move diagnostics to separate module 2014-06-01 23:35:11 +05:30
Sunil Mohan Adapa f0e710a3d8 Move PageKite to separate module and present in Apps
- Remove Router section
2014-06-01 23:35:11 +05:30
Sunil Mohan Adapa 034745e91f Move ownCloud to separate module 2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa 1b4364b045 Move firewall to separate module 2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa 2aec96d96c Move first_boot to separate module 2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa 11a3cecf0a Move XMPP to separate module and present under Apps
- Remove Services section
2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa 7c878ba1b4 Move Tor to separate module and present under Apps
- Remove Privacy section
2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa faf9cb937e Remove WAN stub 2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa cb26256bb3 Remove OpenID stub 2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa 57487ab2d3 Remove Router stubs 2014-06-01 23:35:10 +05:30
Sunil Mohan Adapa de250e5e63 Remove Privacy stubs 2014-06-01 23:35:10 +05:30