Sunil Mohan Adapa
7f24e3ce2b
Remove hard coded list of timezones in favor system time zones
...
- Setting the system to a timezone that does not exist in system is bad
- The timezone list will get outdated frequently
- Duplicating a large list that already maintained elsewhere
2014-05-13 13:15:54 +05:30
Sunil Mohan Adapa
defcb43883
Use json instead of simplejson library to avoid extra depedency
...
Simplejson is an externally mainainted version of json library available in
Python 2.6 and up. It supports Python 2.5 which were are not targetting.
It also boasts better speed which is not at all a factor for us.
2014-05-13 12:28:39 +05:30
Sunil Mohan Adapa
391d6298c4
Update firewall page styling
2014-05-12 23:28:15 +05:30
Sunil Mohan Adapa
18464c963d
Fix issue with packages form when submitting unchecked options
2014-05-12 12:59:18 +05:30
Sunil Mohan Adapa
18908f72ea
Make form messages dismissable
2014-05-12 12:56:42 +05:30
Sunil Mohan Adapa
a7e0a5284d
Add license headers to the newly added template files
2014-05-11 21:33:18 +05:30
Sunil Mohan Adapa
b50a99b1e4
Convert firstboot pages to Django forms
2014-05-11 21:24:36 +05:30
Sunil Mohan Adapa
2500e37e89
Convert packages page to Django forms
2014-05-11 18:53:14 +05:30
Sunil Mohan Adapa
e5d43a87a2
Convert user pages to Django forms
2014-05-11 18:03:33 +05:30
Sunil Mohan Adapa
6ebfe23c4b
Convert config page to Django form
2014-05-11 16:26:52 +05:30
Sunil Mohan Adapa
ed26274d38
Convert wan page to Django forms
2014-05-11 12:32:59 +05:30
Sunil Mohan Adapa
c05c3ba3c8
Convert expert mode page into Django form
...
Also make expert mode a separate page rather than part of a mixture
of forms in configure page.
2014-05-11 12:10:27 +05:30
Sunil Mohan Adapa
a2efd8268d
Add license headers to all new template files
2014-05-09 19:34:05 +05:30
Sunil Mohan Adapa
25fe3c7ee8
Convert diagnostics pages to template
2014-05-08 10:13:38 +05:30
Sunil Mohan Adapa
eff6306f7d
Convert system page to template
2014-05-08 09:12:14 +05:30
Sunil Mohan Adapa
1c338e538a
Convert firewall page to template
2014-05-08 09:05:50 +05:30
Sunil Mohan Adapa
76f49916a3
Convert add/edit user sidebars to templates
2014-05-05 23:58:47 +05:30
Sunil Mohan Adapa
6d83ad3c00
Convert right sidebar menus to templates
2014-05-05 23:10:51 +05:30
Sunil Mohan Adapa
4b44741c68
Remove unnecessary layer of abstraction over template rendering
2014-05-05 00:08:58 +05:30
Nick Daly
9b3543c764
Allow services to be both internal and external again.
...
Reverting part of 887518ce on Sunil's advice:
An assumption made for the sake of simple API is that all
externally available services are also available internally. They
are not mutually exclusive.
Your change will enable a service only if it is not externally
available. For example, HTTPS is externally available. It will no
longer be made internally available. Which is not right.
We should either revert this line or introduce a way to mark all
the services as internal as well and write code handle that
properly.
2014-04-28 22:50:45 -05:00
Nick Daly
887518ce88
Be explicit about running commands as the superuser.
...
superuser=True is a surprising default. Not happy-rainbow-surprising
but more dropping-a-large-rock-on-your-foot surprising.
2014-04-28 20:12:20 -05:00
Nick Daly
bf3286b736
Merge: Sunil's firewall branch (follow up commits).
2014-04-28 19:59:06 -05:00
Sunil Mohan Adapa
3ef1ed83ce
Add support for zones in firewall service
2014-04-27 18:16:32 +05:30
Nick Daly
9350052e59
Merge: Sunil's firewall branch.
2014-04-23 19:26:57 -05:00
Nick Daly
3c2a5be9af
Merge: Sunil's exec commits.
2014-04-23 19:21:52 -05:00
Sunil Mohan Adapa
32144e96ef
Basic firewall sevice based on FirewallD
...
- Ports are allowed in default zone as soon as a service is enabled
- Ports are disabled when all services depending on the port are disabled
- Shows current enabled state of services and their each of thier ports
2014-04-18 12:53:27 +05:30
Sunil Mohan Adapa
c0ea7ee298
Dont use exec() in system/wan module
...
Also make the form submission actually work by adding hidden form
value and '/' at the end of form submission URL.
2014-04-05 15:38:19 +09:00
Sunil Mohan Adapa
afe345d01b
Cleanup system configuration module
...
- Add license header
- Fix pylint, pep8 and pyflakes warnings and errors
- Fix incorrect use of gettext._()
- Don't store hostname and timezone in Plinth storage. Instead use
values from probing the system
- Don't use exec()
- Other minor refactorings
2014-04-05 14:42:18 +09:00
James Valleroy
974a0146f2
When changing hostname, also update ejabberd and jwchat.
2014-03-26 18:50:55 -04:00
James Valleroy
67a5280073
Add license information and description for diagnostics module.
2014-03-24 20:46:51 -04:00
James Valleroy
c349d875a6
Add diagnostic test which runs the freedombox testsuite and displays its result.
2014-03-24 20:17:28 -04:00
James Valleroy
c9d58ee73d
Combined module management actions into a single file, so it should be easier to add new optional modules.
2014-01-31 21:44:32 -05:00
James Valleroy
411785eb3f
Make module manager work for any available modules.
2014-01-31 19:48:40 -05:00
James Valleroy
7c6f1e72fa
simple form for enabling/disabling owncloud module
2014-01-27 22:42:06 -05:00
Nick Daly
0ec794aaa7
Merge pull request #56 from jvalleroy/remove_old_user_db
...
Remove old user stuff
2013-11-24 20:43:35 -08:00
Nick Daly
6567dc1758
Renamed privilegedactions to actions.
2013-11-24 18:29:27 -06:00
James Valleroy
2eb4f8bf1a
Fix add/edit links in users module.
2013-11-20 21:37:03 -05:00
Nick Daly
22cce897bc
Made security.mdwn a little more explicit wrt bcrypt.
2013-11-12 21:13:02 -06:00
James Valleroy
25974bad85
Modify firstboot and user_add forms to use add_user function.
2013-11-11 07:34:27 -06:00
James Valleroy
c4b2fb1a60
Use bcrypt to hash passwords for new users in firstboot and user_add forms. Removed references to md5 hashing which was already non-functional.
2013-11-11 07:31:53 -06:00
Nick Daly
95fbf9527f
Merge pull request #50 from jvalleroy/fix-redirects
...
Fix redirects
2013-11-10 19:34:34 -08:00
Nick Daly
13d8514634
Merge pull request #49 from jvalleroy/fix-hostname-change
...
Fix parameter for hostname-change
2013-11-10 13:12:46 -08:00
James Valleroy
7536b7387b
Remove references to deleted md5.js file.
2013-11-02 17:34:17 +00:00
James Valleroy
60ea9f43cd
Prepend server_dir to form actions that use absolute paths.
2013-11-02 11:40:18 +00:00
James Valleroy
a5adb1c292
Convert unicode (but otherwise valid) hostname to ASCII. Pass hostname option to hostname-change as a string rather than a list.
2013-11-02 02:20:02 +00:00
Nick Daly
3a30660c25
Revert 4d529b75857597dedd181045ba1bf97b99c66b3e.
...
Turns out, that was a terrible idea.
Putting privilegedactions in actions/ meant that we tried to interpret
it during startup (along with other similarly silly bugs). The
fastest way to fix this issue is to merely revert it.
2013-10-30 21:45:43 -05:00
Nick Daly
0296a1a99c
Removed unused import.
2013-10-27 17:47:18 -05:00
Nick Daly
9e276c3ffb
Undo this change, bad idea.
...
English letters do not always sort as expected in non-en locales.
2013-10-27 17:41:19 -05:00
Nick Daly
5e9f221ef5
Simplified hostname name matching test.
...
The first character must be a letter, and [A-z] is easier to manage
than 52 individual letters.
2013-10-27 10:49:53 -05:00
Nick Daly
4d529b7585
Moved privilegedactions to the actions directory.
2013-10-27 10:26:06 -05:00