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
b77c97e088
Don't use os.path.join() to concatenate URL parts
...
This could lead to "\" being used on Windows. Although, we won't be
supporting Windows, this is a conceptual problem.
2014-08-17 19:32:30 +05:30
Sunil Mohan Adapa
418f5ff397
Rename the context processor
2014-08-17 19:30:44 +05:30
Sunil Mohan Adapa
65cdcb1bc3
Re-introduce Django CSRF middleware
...
It is a security issue not to include the Django CSRF middle. Also, since we
don't have a reason to alter the Django middleware list and order, we should
use the same list.
2014-08-17 19:29:31 +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
Sunil Mohan Adapa
f0739a18e6
Add a default value for actions_dir
2014-08-17 19:06:15 +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
809dc4130a
also raise url-import and init-errors in debug mode
2014-07-10 20:24:08 +03:00
fonfon
19f36f67d9
moved firstboot handling to a firstboot middleware
2014-07-10 19:49:41 +03:00
fonfon
cf03ee160a
raise module exceptions in DEBUG mode
2014-07-10 18:35:28 +03:00
fonfon
0d5636a900
refactored actions to use exceptions instead of return-values
2014-07-10 18:27:49 +03:00
fonfon
a40d42eb60
made actions.py more pep8 compliant; added one more check to verify that an action is within the actions directory; moved actions directory path into the settings instead of hard-coding it
2014-07-10 06:02:33 +00:00
fonfon
aa65205403
Merge remote-tracking branch 'fbxat/master'
2014-07-10 04:35:30 +00:00
fonfon
8ebb88fd68
Merge pull request #1 from fonfon/master
...
Update to include several django-changes by Sunil and some url-changes by fonfon
2014-07-14 13:15:21 +02: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
fonfon
32872cea12
fixed broken links in main/sidemenu when using server_dir '/'
2014-07-09 03:15:39 +00:00
fonfon
d4d6948eb9
when running plinth with default server_dir '/' some static files and redirects were wrong -- fixed that;
2014-07-09 00:58:20 +00:00
Nick Daly
a8ed02b723
Merge pull request #86 from SunilMohanAdapa/python-logging
...
Python logging
2014-07-07 00:37:36 +00:00
Nick Daly
9b1f2c6f0d
Merge pull request #85 from SunilMohanAdapa/django-auth
...
Django auth
2014-07-07 00:37:28 +00:00
Nick Daly
29d60fb106
Merge pull request #84 from SunilMohanAdapa/misc2
...
Add option to run Plinth in non-daemon mode
2014-07-07 00:37:22 +00:00
Nick Daly
e656e3ee47
Merge pull request #82 from SunilMohanAdapa/django-routing
...
Use Django dispatcher instead of CherryPy dispatcher
2014-07-07 00:37:02 +00:00
Sunil Mohan Adapa
f88737b913
Configure python logging via Django and remove custom logger
2014-07-05 21:30:30 +02:00
Sunil Mohan Adapa
f4a2181762
Move main module to python logging
2014-07-05 21:29:40 +02:00
Sunil Mohan Adapa
431a585636
Move views to python logging
2014-07-05 21:28:43 +02:00
Sunil Mohan Adapa
1e4deb7bb9
Move module loader to python logging
2014-07-05 21:28:19 +02: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
b1406f59d3
Remove unused templates err.html and two_col.html
2014-06-24 11:47:10 +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
d9bebe67f5
Remove unused misc utility methods
2014-06-23 00:07:00 +02:00
Sunil Mohan Adapa
b76a74e684
Use Django messages module for showing messages
2014-06-22 11:49:39 +02:00
Sunil Mohan Adapa
fc37293ac6
Update .gitignore
2014-06-21 11:44:43 +02:00
Sunil Mohan Adapa
78406f16e8
Refactor global code from plinth.py
2014-06-21 11:44:21 +02:00
Sunil Mohan Adapa
ab80dc34d6
Add option to run as non-daemon mode
...
- Pass on debug option with Django
- Cleanup option parsing
2014-06-19 17:50:41 +02:00