1180 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
2b1b60fba5 Minor coding styling update in main.py 2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
eca538169e diagnostics: Revamp main diagnostics page
- Run diagnostics on each module separately.

- Run diagnostics in a separate thread.

- Show progressive update while running diagnostics.

- Store and show old diagnostics.

- Prevent CSRF on the expensive operation of running diagnostics.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
49c4c1dce6 diagnostics: Action helpers for modules
- Helper for checking whether a port is being listened on.

- Helper for checking whether a URL is accessible.

- Helper for checking whether a URL is accessible with all possible IPs
  and machine names.

- Helper for checking whether it is possible to connect to a port.
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
991f848c23 diagnostics: Template/styling helpers for modules 2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
36426b373c diagnostics: Refactor module results template
- For reuse elsewhere
2015-08-29 06:22:01 -04:00
Sunil Mohan Adapa
4bddc70ce0 diagnostics: Add external dependency on psutil 2015-08-29 06:22:01 -04:00
James Valleroy
ea64fa1c7a Merge remote-tracking branch 'sunil/tor-setup' 2015-08-26 19:18:18 -04:00
Sunil Mohan Adapa
be46e9588a shaarli: Minor comments updates 2015-08-23 17:27:34 +05:30
James Valleroy
4458a6537d Add Bookmarks (Shaarli) module. 2015-08-23 16:43:13 +05:30
Sunil Mohan Adapa
0b1e97d99c Treat entire input as password
Instead of just the first line.

PEP8 fixes.
2015-08-23 16:24:29 +05:30
Sean Alexandre
21b9a5b02a Passwords now sent over stdin instead of command line.
Fixes Issue #166:
Don't pass passwords on command line
https://github.com/freedombox/Plinth/issues/166

This issue was for 4 modules: Transmission, Pagekite, DynamicDNS, and Ikiwiki.
2015-08-23 15:20:08 +05:30
Sunil Mohan Adapa
ef156dab91 networks: Minor styling and comments update
- Add comment about PPP peers possibly not responding to echo requests.
2015-08-22 21:14:21 +05:30
Sunil Mohan Adapa
f93de11c6a networks: Handle unknown connections gracefully
When trying to edit connection of unknown type show an error and return
to connections list instead of trying to filling in some fields and
doing badly.
2015-08-22 21:14:21 +05:30
Sunil Mohan Adapa
2c23b0ecb4 networks: During activation raise device not found
When an interface assigned to a connection is not available in list of
devices, raise a proper error that device is not found.
2015-08-22 21:13:36 +05:30
Sunil Mohan Adapa
e7214b7586 networks: Refactor common settings updation
Since IPv4 address settings are not relavent for PPPoE and the command
settings take them, split the common setting updation into basic
settings and IPv4 settings.
2015-08-22 21:11:13 +05:30
Sunil Mohan Adapa
21ee2de998 networks: Don't re-add settings if they exist
- This is a probable reason why a phantom new connection show up
  sometimes.
2015-08-22 21:11:13 +05:30
Sunil Mohan Adapa
a66275bdf7 networks: Make types sorted during creation
- So that less frequently used 'PPPoE' connection is not shown as
  default.
2015-08-22 21:11:13 +05:30
Sunil Mohan Adapa
958c249dfb networks: Retrieve password while editing PPPoE
- Retrieve password using connection.get_secrets() instead of
  settings_pppoe.get_password().

- Make sure IPv4 settings are not accessed during PPPoE editing.
2015-08-22 21:10:56 +05:30
Sunil Mohan Adapa
5e6c54e600 Add network-manager, ppp, pppoe as dependencies
- Since freedombox-setup itself does not use ppp or pppoe, it is perhaps
  not right to add these two as dependencies to freedombox-setup.

- Add network-manager as dependency although it is already dependency of
  freedombox-setup.  This is so that one day Plinth can perhaps work
  independent of freedombox-setup.
2015-08-22 20:23:43 +05:30
Sunil Mohan Adapa
4f75f44769 networks: Fix showing password during PPPoE edit
- Javascript was missing for the template altogether.  Added one similar
  to create case.

- Minor refactoring to existing javascript.

- Consistent styling for display label and field id.
2015-08-22 20:22:08 +05:30
Sunil Mohan Adapa
1e10fb76fc networks: Add test case for PPPoE
- Update ethernet and Wi-Fi tests to make sure interface name is
  properly set.
2015-08-22 20:18:51 +05:30
Daniel Steglich
58a10cdbca refactored connection activation
rafactoring of activate_connection function:
as we now know the interface name of a connection we can pick the connection
by this value and activate the connection.
2015-08-22 13:03:00 +05:30
Daniel Steglich
5eda78a318 Fixed regression on editing Ethernet connections
During implementation of PPPoE based connections I added Username and
Password fields. This fileds are only required when editing a PPPoE
connection.
2015-08-22 13:03:00 +05:30
Daniel Steglich
d79437d2a2 show / hide password box
Added a selectbox to change the input box type from password to text.
2015-08-22 13:03:00 +05:30
Daniel Steglich
286caf8917 Added a new network connection type to handle PPPoE connections
* Added a new choice to main selectbox for adding Network Connections (network.py)
* Added a new form which asks for name, interface, firewall zone, username and password (forms.py, urls.py)
* Added new helper functions to create PPPoE based connection object (network.py)
2015-08-22 13:03:00 +05:30
Sunil Mohan Adapa
13655f05bc tor: Configure for IPv6 also 2015-08-21 19:24:07 +05:30
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
b4c487f520 package: Fix showing error during pre/post install
When an ActionError is raised during pre_install or on_install action,
the error is not being shown.  Instead an error is being raised.  This
fixes that.
2015-08-18 21:23:02 +05:30
James Valleroy
2879c9cedb Merge remote-tracking branch 'sunil/diagnostics' 2015-08-10 18:02:33 -04:00
James Valleroy
cdf908b0bf Release 0.5 v0.5 2015-08-01 06:45:14 -04:00
James Valleroy
565703270e Merge remote-tracking branch 'sunil/polish' 2015-07-30 18:53:23 -04:00
James Valleroy
e060960fed Also add IPv4 manual address test for wifi. 2015-07-29 22:29:01 -04:00
James Valleroy
110d50d7e2 Make separate network test for IPv4 manual address. 2015-07-29 21:56:24 -04:00
James Valleroy
6c06799320 Specify interfaces for network tests where needed. 2015-07-29 21:38:20 -04:00
Sunil Mohan Adapa
2ca130b154 users: Implement diagnostics 2015-07-28 21:58:17 +05:30
Sunil Mohan Adapa
fc00cb6bd9 diagnostics: Individual module check framework
Each module will implement its own diagnostics.  The diagnostics module
will provide a common, standardized mechanism for running these
diagnostics.
2015-07-28 21:57:58 +05:30
Sunil Mohan Adapa
eae507d456 Minor pylint fixes 2015-07-28 20:01:39 +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
05ef2921db package: Remove package module
- It does not work on all the modules available.

- It does not reload Plinth after changes.

- As of now, there is not strong case for disabling modules in Plinth
  making it unnecessary UI complication.

- Split into multiple small Debian packages is not yet implemented for
  Plinth.  The module expects to work on the Debian modules.  When
  smaller Debian packages are available perhaps we should consider using
  packages.py library instead.
2015-07-28 16:51:19 +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
36adc84b5d pagekite: Remove unused import 2015-07-28 16:38:13 +05:30
Sunil Mohan Adapa
fc6bc09c9e help: Move additional info from sidebar to main 2015-07-28 12:39:02 +05:30
Sunil Mohan Adapa
04d0e3a550 owncloud: Move introduction from sidebar to main 2015-07-28 12:38:39 +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
1c5f4c04ec owncloud: Update menu item with generic name 2015-07-28 12:04:04 +05:30
Sunil Mohan Adapa
b331ba979d tor: Update menu item with generic name 2015-07-28 11:55:19 +05:30
Sunil Mohan Adapa
acf3a919f6 networks: Improvements to interface binding
- Fetch network interfaces list at the time of form creation instead of
  during definition.

- Add help text to interfaces list choice field.

- Don't write an explict check for requiring interface
  selection. required=True, which is default, takes care of that.

- Internationalize the empty selection text.

- Update the empty selection text.

- Re-order interface parameter in the same order of priority/appearance.
2015-07-27 22:03:02 +05:30
Daniel Steglich
378d6b8d84 networks: Always bind connections to a device 2015-07-27 22:03:02 +05:30