572 Commits

Author SHA1 Message Date
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
Nick Daly
af08066caf Merge pull request #81 from jvalleroy/firewalld-services-cleanup
Remove firewalld services, since they are part of firewalld now.
2014-06-19 03:47:37 +00:00
Nick Daly
4d0fa9c4f9 Merged Sunil's stub cleanup. 2014-06-18 22:39:24 -05:00
Sunil Mohan Adapa
db3b0ab9e6 Remove unused template rendering wrapper 2014-06-12 23:34:00 +05:30
Sunil Mohan Adapa
59c285bf65 Remove unused PagePlugin 2014-06-12 23:33:39 +05:30
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
657bb11bbc Add Django custom error handling pages for 404 and 500 errors 2014-06-12 23:20:49 +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
4e318ff434 Add a menu method to find menu items by URL 2014-06-12 23:17:53 +05:30