559 Commits

Author SHA1 Message Date
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
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
James Valleroy
946b92502d Remove firewalld services, since they are part of firewalld now. 2014-06-11 20:11:52 -04:00
Sunil Mohan Adapa
4aeea83e46 Set title to 'FreedomBox' instead of 'FreedomBox Dashboard' 2014-06-06 20:44:34 +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
a958798769 Remove unused Message utility class 2014-06-06 17:56:35 +05:30
Sunil Mohan Adapa
998b515fed Update LICENSE files for module reorganization 2014-06-06 12:50:05 +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