1288 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
52bfb475e8 Return the process for async actions
So that the caller can manage and later look for return status.
2015-11-03 20:24:40 -05:00
Nick Daly
bcb26cc52c Added de, es, fr, it, pt langs. 2015-10-31 15:34:39 -05:00
Sunil Mohan Adapa
20d4d32153 firstboot: Show network diagram at the end
- Fix an issue with not showing message in state 1 (no messages to show
  as of now).

- Provide options to go to Applications or Network configuration page as
  discussed in first boot redesign.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
11bf585025 networks: Show network diagram
- As discussed in the first boot redesign proposal.

- Images are taken from Tango icon set, GNOME icons or created.

- Responsive, works for very small widths also.

- First cut, special cases of network connectivity are not handled.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
96b98fae9f networks: Handle unavailability of device 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
8228440319 first_boot: Allow accessing help during first boot 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
8fb6e31e9a first_boot: Remove login from account creation 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
26737293e4 first_boot: Reduce the width of administrator form 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
5cd1b7e4b3 first_boot: Remove sidebar in favor of help icon 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
f3a0c70d23 first_boot: Add separate greeting page 2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
23eb40fce8 first_boot: Require password confirmation
- Use existing UserCreationForm from auth module.

- Use cleaned data for login.
2015-10-28 20:02:56 -04:00
Sunil Mohan Adapa
62185a5960 first_boot: Don't ask for a new hostname
- Setting a new hostname is not one of the most buring issues to be take
  care of during the setup process.

- Also, most likely the user will access the FreedomBox machine using
  mDNS hostname such as freedombox.local.  Changing the hostname mid
  setup might have consequences that need to thought about properly.
2015-10-28 20:02:56 -04:00
fonfon
125cb88336 Removed cfg.product_name entry and tests
The name 'Plinth' (cfg.product_name) is not used anymore after my previous
commits.
Reason for the complete removal: I do not think that users should know or have
to care about the internal name of the web interface of the FreedomBox.
2015-10-28 19:52:14 -04:00
fonfon
c2bd038ef2 changed description texts in the main landing pages 2015-10-28 19:52:14 -04:00
fonfon
b934668dc5 renamed menu entry 'FreedomBox' to 'Applications' 2015-10-28 19:52:14 -04:00
fonfon
5591047df3 base template: added titles to the main menu 2015-10-28 19:52:14 -04:00
Sunil Mohan Adapa
c318ecd580 Update readme to links to wiki & manual
- Remove repeated links

- Flatten the headings

- Rewrap

- Add links to FreedomBox wiki and FreedomBox manual.
2015-10-23 13:22:58 +05:30
Rich Keyzor
4397c25550 fixes #263 2015-10-22 15:12:24 +01:00
Sunil Mohan Adapa
705084ef9d datetime: Fix triggering install callback 2015-10-17 21:41:54 -04:00
Sunil Mohan Adapa
2ef22ec1b4 Require library version for GObject introspection
Specify the version of a library before importing it using GObject
introspection.  Mainly to avoid warnings with recent version of
pygobject.  Closes #247.
2015-10-17 21:13:35 -04:00
Sunil Mohan Adapa
4ecc416f3a Remove references to removed TODO file (GH: #245) 2015-10-17 19:33:21 -04:00
fonfon
81e09a1280 networks: increased column size; added TODO 2015-10-14 12:54:21 +00:00
Sunil Mohan Adapa
7170d3db38 networks: Ability to enable/disable without JS
- Avoid using a drop down menu.

- Separate out the status indicator and activate/deactivate button.

- Closes #173.
2015-10-14 12:51:34 +00:00
fonfon
2ab99588ba Merge pull request #252 from SunilMohanAdapa/pagekite-speed
I tested the changes and confirm that everything works as before, only faster :)
2015-10-14 13:33:40 +02:00
Sunil Mohan Adapa
26e312b3f3 Require older version of coverage for Travis build
This patch installs coverage 3.7 instead of latest coverage 4.0 on
Travis before a build. Coverage 4.0 does not support Python 3.2.  Due to
need for system-installed, python-dependency packages and due to Travis
infrastructure using Ubuntu 12.04, we can only build on Python 3.2 in
Travis.
2015-10-13 20:23:46 +05:30
Sunil Mohan Adapa
5ccbd6f35c pagekite: Make Augeas loading narrower and faster 2015-10-12 22:26:14 +05:30
Sunil Mohan Adapa
670be77b9a pagekite: Fix issue with setting port
- When the current configuration does not contain a port and we try to
  set the port for the frontend server, it fails.  This patch fixes
  that.

- Minor styling and spelling fixes.

- Make sure that if port is not set for frontend, it will be set on
  saving the form.
2015-10-11 17:54:26 +05:30
fonfon
aad69deb6e Display correctly if service is PageKite is enabled 2015-10-11 17:19:35 +05:30
fonfon
96a272b3b0 Added explicit port setting to pagekite configuration 2015-10-11 17:19:35 +05:30
Sunil Mohan Adapa
fc19b0fd3d networks: Refactor code for showing connection
- Fix showing configured IP address in edit form.

- Combine the retrival functions and organize them according to where
  the information is being retrived from connection/device/active
  connection/access point.

- Add more fields to show such as ether speed, default ipv4/ipv6
  connection, wifi mode, etc.

- Re-format the page.  Separate ipv4/ipv6 sections. Separate device
  information and connection information sections.

- Take the action buttons to the top.

- Make the activate/deactivate button work with new POST only CSRF
  requirement.

- Update Firewall zone description messages.

- Show all IP addresses of the device.
2015-10-11 16:28:55 +05:30
Sunil Mohan Adapa
682e5d7c2d networks: Prefill proper Wi-Fi device in add form
Add access points found on a particular Wi-Fi device only to that device
as it is not gauranteed that other Wi-Fi devices will be able to find
them.  For example, an access point operating in 5 GHz frequency will
only be found and used by Wi-Fi devices capable for 5 GHz communication.
2015-10-11 16:28:55 +05:30
Daniel Steglich
408aa8910a wi-fi network connection: Fixed error message when entering the form
- When selecting an existing WiFi on the "scan" page, the user will be redirected to the "WiFi add" form.
  This form did not contain a WiFi capable Interface as default selection, for this reason the user get a
  invalid form message when entering the form.
2015-10-11 16:28:55 +05:30
Daniel Steglich
3c47dfb6ef Minor coding styleguide fix
- fixed a pep8 error (line too long)
2015-10-11 16:28:55 +05:30
Daniel Steglich
f49def2d39 Add network connection: Show current IP address when editing a connection
- Added some generic network helper functions to global network helper class
  to get some information from a device by it's name. This is used when editing
  a connection (no ip was shown before).

- ToDo:
  This is only a workaround because we want to get the information from the connection but not from the device
  which belongs to the connection. If multiple connections are setup on the same device, this workaround will not
  work anymore.
2015-10-11 16:28:55 +05:30
Daniel Steglich
c3e5753b52 Network Status pages: added status pages
- implemented network status page which supports:
 * show IP address and netmask
 * show MAC address
 * show device name
 * show firewall zone name
 * show DNS server information
 * show default gateway
 * show wifi information
 * shows if connection is shared or not and if connection is the default connection

- when clicking on a cennection on the overview page go to the status page, not to the
  editing page

- ToDo: if connection is disabled and re-enabled again, no information are visible anymore (Bug)
2015-10-11 16:28:55 +05:30
James Valleroy
2050a503c7 Release 0.6 v0.6 2015-10-07 18:07:36 -04:00
Sunil Mohan Adapa
94cdd19070 avahi: Minor fixes
- PEP8 fixes.

- Don't need to disable .socket and .service.  Disabling .service will
  take care of disabling both.

- Update the introduction message.

- Add prefix to form so that it can potentially be mixed with other
  forms.
2015-10-07 01:11:19 +05:30
Sean Alexandre
e6f7e6020f Adds Service Discovery module
Resolves issue https://github.com/freedombox/Plinth/issues/231
"Option to disable avahi-daemon"
2015-10-07 01:10:53 +05:30
James Valleroy
dda0f311b2 xmpp: Disable TLS on http-bind port (Closes: #239). 2015-10-04 18:57:40 -04:00
Sean Alexandre
1f183bf997 Changes Apache conf files to use new mod_authz_host syntax instead of Allow/Deny
Resolves Issue https://github.com/freedombox/Plinth/issues/171
"Update Apache auth config directives"
2015-09-29 19:28:50 -04:00
Sunil Mohan Adapa
45fd4f2a53 Cleanup casting from values in cfg 2015-09-29 22:50:02 +05:30
Sunil Mohan Adapa
b63ec9bffc Update the main config file too for danube_edition 2015-09-29 22:38:25 +05:30
fonfon
a94dc0f57d firstboot: remove deprecated CSS 2015-09-29 09:15:37 +05:30
fonfon
91b85f68ec pagekite: Remove redundent augeas dependency
- Plinth itself has depedency on augeas-tools and python3-augeas.
2015-09-29 09:14:25 +05:30
fonfon
3d87c3eb3b Data types for cfg.py; add danube_edition entry
- Explicitly state datatype in config_items to handle them more
  generically

- Handle boolean values correctly.  Before this fix we got the string
  'False' which evaluated to True (this affected the entry
  'use_x_forwarded_host').

- Add the config entry 'danube_edition'. Activating it shows a voucher
  input field for pagekite accounts on freedombox.me during the
  firstboot process. Other vouchers (i.e. for VPN services) might
  follow.  Add description and test for 'danube_edition' setting.
2015-09-29 09:11:18 +05:30
Sunil Mohan Adapa
4a9d877724 owncloud: Perform setup synchronously
Earlier, installation of the ownCloud package was performed as part of
setup process.  It took time and hence the action was done
asynchronously.  Now, however, package manager takes care of this.  To
avoid any potential race conditions with the user accessing ownCloud
before it is setup, perform the setup synchronously.
2015-09-27 23:02:46 +05:30
Sunil Mohan Adapa
0e111d833c Minor global variable naming fix
- For Python coding standards compliance
2015-09-27 23:02:46 +05:30
Sean Alexandre
d0bc2be3a3 owncloud: Adds on_install handler to enable after install.
Fixes https://github.com/freedombox/Plinth/issues/224
"Enable ownCloud after install"
2015-09-27 23:02:46 +05:30
Sean Alexandre
95e81b0906 Adds missing calls to service.notify_enabled() from on_install handlers.
Fixes https://github.com/freedombox/Plinth/issues/175
"Many services do not show as enabled in Firewall after install"
2015-09-27 21:39:33 +05:30
James Valleroy
a7735eeb80 fetch latest manual 2015-09-27 09:55:44 -04:00