Sunil Mohan Adapa
a69f419c3c
Make Django urlpatterns list of url()s
...
- Support for legacy pattern() mechanism will be removed in Django
1.10. Currently we see a warning for each Plinth module.
2015-12-05 09:33:23 -05:00
Sunil Mohan Adapa
7100429342
tor: Minor fixes
...
- Be a little bit more strict about Tor tests by requiring the module to
be importable even when not running as root.
2015-12-04 10:14:47 +05:30
James Valleroy
90a1c334fe
Skip tor tests unless root.
2015-12-04 09:16:06 +05:30
James Valleroy
66625c35a3
Handle error where /etc/tor/torrc does not exist when checking hidden service config.
...
Handle error where tor state file does not exist when getting list of ports.
Add test for checking if apt-transport-tor is enabled.
2015-12-04 09:16:06 +05:30
James Valleroy
e0bfd1401f
Name Services module
2015-11-25 15:22:27 +01:00
Sunil Mohan Adapa
01d50c7ae8
Fix i18n of template expressions
2015-11-14 11:42:32 +05:30
Sunil Mohan Adapa
3df1a88824
Switch to Django i18n for code strings
...
Django i18n layer is on top of gettext and provide may crucial features
such as per-request locales, lazy translations etc.
2015-11-13 22:08:43 +05:30
Sunil Mohan Adapa
02cd89b60d
Internationalize strings in template files
2015-11-13 22:02:17 +05:30
Sunil Mohan Adapa
bff8dd5a5c
tor: Fixes for APT transport setup
...
- When Deb822 formatted source files are present, error out and don't
show as enabled.
- When /etc/apt/sources.list.d/*.sources files are present, error out
and don't show as enabled.
- Handle files /etc/apt/sources.list.d/*.list.
- Workaround Augeas lens not understanding '[options]' in sources.list.
2015-09-04 15:38:16 +05:30
Sunil Mohan Adapa
266a7cd15e
tor: Show action errors properly in UI
2015-09-04 15:38:16 +05:30
Sunil Mohan Adapa
aa88b09d69
tor: Update APT transport help text
2015-09-04 15:38:16 +05:30
James Valleroy
787fc22d04
tor: Enable apt-transport-tor upon install.
2015-09-04 15:38:16 +05:30
James Valleroy
f25ce0216f
tor: Add control to enable/disable apt-transport-tor ( Closes : #78 ).
2015-09-04 15:38:15 +05:30
James Valleroy
d8828ee877
tor: remove unused import
2015-08-29 07:50:47 -04:00
James Valleroy
9a25e6b21d
tor: Add torsocks as required package, needed for diagnostics.
...
Display error for diagnostic if command is missing.
2015-08-29 07:48:06 -04:00
James Valleroy
dee7474b5e
tor: minor comment updates
2015-08-29 07:04:22 -04:00
Sunil Mohan Adapa
8fd4f69bfd
tor: Implement diagnostics
...
- Mostly moved from freedombox-setup.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
ee521e098f
tor: Move Tor setup from freedombox-setup
...
We are still overwriting the entire configuration file instead of
modifying it.
2015-08-18 21:25:01 +05:30
Sunil Mohan Adapa
09e8a75930
tor: Implement enabling/disabling
...
- Reorganize hidden service information
2015-07-28 18:10:03 +05:30
Sunil Mohan Adapa
f002336050
tor: Update styling for service/port table
2015-07-28 16:41:17 +05:30
Sunil Mohan Adapa
3d5f68381d
tor: Reimplement getting ports in Python
2015-07-28 16:40:51 +05:30
Sunil Mohan Adapa
85fa868da0
tor: Move introduction from sidebard to main
...
- For consistency with other apps and in preparation for frontpage.
2015-07-28 12:22:07 +05:30
Sunil Mohan Adapa
5ffe3dab70
Reorder all app menu items alphabetically
...
- Alphabetical order is best for users to find the necessary items
quickly and precitably.
- Currently there is no particular order.
2015-07-28 12:15:35 +05:30
Sunil Mohan Adapa
b331ba979d
tor: Update menu item with generic name
2015-07-28 11:55:19 +05:30
Sunil Mohan Adapa
07e2c0ce14
Don't use actions to check if service is running
...
- To check whether a service is running does not require root
privileges. This can directly be done from a module without any
action.
- Since actions are allowed to be run using sudo, introducing
unnecessary sub-commands increases attack surface.
- Simple functions calls are unnecessarily being converted to command
line invocations and involve parsing response.
- There is a lot of repeated code because of this that can be
eliminated.
- To generalize this, we need to make all non-root system operations
directly from module instead of delegating to action commands.
2015-07-19 19:54:13 -04:00
fonfon
824a9091c1
use django-stronghold for authentication handling (instead of @login_required)
2015-07-01 00:01:02 +05:30
Bob Girard
d64ce6cc01
Bundle tests with applications
...
- For each application, add ./tests directory and __init__.py file
within it.
- Modify test controllers (coverage.py, runtests.py) to find the new
test directories for testing and coverage analysis.
- Move existing application-specific test modules (test_pagekite.py) to
the newly created directories.
2015-06-26 12:05:48 +05:30
Sunil Mohan Adapa
53b0f5aca8
Don't use wells for placing all the content
2015-05-01 21:14:04 -04:00
Sunil Mohan Adapa
be838a30c1
package: Add ability to receive notification on install
...
- Fix issue with Mumble firewall enabling after a fresh install.
2015-03-28 16:02:39 -04:00
Sunil Mohan Adapa
c7f27e493e
Use package framework for installing tor
2015-01-05 00:13:20 +05:30
Sunil Mohan Adapa
100533bee1
Add missing titles to tor and diagnostics pages
2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa
522ece851c
Minor indentation fixes in templates
2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa
057d1063f3
Use <code> tag for commands
2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa
e6b5bed1f3
Use margins or <p> instead of <br />
2014-12-06 17:08:37 +05:30
fonfon
96a14e3d0d
moved 'in-app menu' from the sidebar to the top of the content; some template block renaming
2014-12-06 17:08:37 +05:30
Sunil Mohan Adapa
205d3bb8c0
Use bootstap styles for non-full-width tables
2014-11-23 14:19:02 +05:30
Sunil Mohan Adapa
e15966a772
Add missing paragraph closing tag in tor template
2014-11-23 14:16:10 +05:30
Sunil Mohan Adapa
6a1f96d7c2
Bootstrap change .btn-primary -> .btn .btn-primary
...
Only then the full intended style will apply. This is a change from
Bootstrap 2 to Bootstrap 3.
2014-11-23 14:08:13 +05:30
fonfon
2945c03a79
adapted tor html table size and added minor validation fixes
2014-11-11 19:31:29 +01:00
fonfon
f0582e7a94
replaced bootstrap2 by bootstrap3
2014-11-11 19:06:47 +01:00
Sunil Mohan Adapa
9a88174ab4
Don't show configuration error when Tor HS is not available
...
When we configure a Tor hidden service and haven't yet run Tor at least
once, then Tor hidden service hostname and private key are not
available. This situation requires running Tor atleast once and is not
a configuration error. When Tor runs, it see the hidden service
configuration and creates the Hidden service information.
2014-11-11 21:56:29 +05:30
James Valleroy
a7afba8583
Show info about installing Tor if it is not already installed.
2014-11-10 22:17:49 -05:00
James Valleroy
28cc7f14c7
Handle errors with Tor HS configuration.
2014-11-10 21:42:40 -05:00
Sunil Mohan Adapa
71b27be720
Minor updates to Tor service
2014-10-20 00:22:19 +05:30
James Valleroy
4e493c1ac5
Add Tor form to enable/disable hidden service.
2014-10-20 00:20:32 +05:30
James Valleroy
cf52bf5029
Display Tor hidden service configuration on Tor page.
...
Currently assumes that there is no more than 1 hidden service.
2014-10-20 00:19:42 +05:30
James Valleroy
bc08be681e
Reorganize Tor module template.
2014-10-20 00:19:31 +05:30
James Valleroy
25c4e292a6
Move basic Tor info to sidebar.
2014-10-20 00:19:17 +05:30
fonfon
7794893947
added tor actions: is-running, start, stop; display tor status at tor app page (enabling/disabling will be integrated later)
2014-10-20 00:14:35 +05:30
Sunil Mohan Adapa
cc549fff61
Load modules using explict paths instead of config file name
2014-10-04 13:41:27 +05:30