788 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
a4be460538 Introduce framework for checking/installing packages
- Uses PackageKit dameon, Glib library wrapping packagekit DBUS API and
  Python bindings for the Glib library.

- Implement a decorator to wrap views requiring packages.

- Framework allows for parallel operations.  However, doing parallel
  operations hangs because of what appears to be PackageKit backend
  limitations.
2015-01-05 00:13:19 +05:30
James Valleroy
7680d398a6 Use FQDN instead of hostname when registering an account. 2015-01-03 14:43:51 +05:30
James Valleroy
3d7de0778b Allow user to change domain name, then determine the FQDN from it. 2015-01-03 14:43:51 +05:30
James Valleroy
87b860bff4 Add a configuration field to change FQDN. 2015-01-03 14:43:50 +05:30
James Valleroy
01bea7808c Don't change ejabberd hosts or jwchat sitename when changing hostname.
Update these only when the domain name is changed.
2015-01-03 14:43:50 +05:30
James Valleroy
b8a7007552 Remove unnecessary ejabberdctl call. 2015-01-03 14:43:50 +05:30
James Valleroy
8c96519e34 Use correct node names for ejabberd. 2015-01-03 14:43:50 +05:30
James Valleroy
126d466dc7 Use mnesia-change-nodename to update ejabberd backup database.
As Sunil suggested, rearrange commands so we can do this with only 1 ejabberd restart.
2015-01-03 14:43:50 +05:30
James Valleroy
90c9e3b9a8 Convert xmpp-pre-hostname-change to python, merge into xmpp action file. 2015-01-03 14:43:50 +05:30
James Valleroy
219b7ff862 Apply patch from Sunil to correctly set hostname in systemd environment. 2015-01-03 14:43:50 +05:30
James Valleroy
b98a9ad84d Don't delete the ejabberd backup database if it fails to load. 2015-01-03 14:43:50 +05:30
James Valleroy
5bee775bc8 Fix some issues with replacing hostname in xmpp config. 2015-01-03 14:43:50 +05:30
James Valleroy
079d774476 Use regexes to relax matches when updating xmpp hostname. 2015-01-03 14:43:50 +05:30
James Valleroy
6d3c39d166 Make sure new hostname will show up immediately. 2015-01-03 14:43:50 +05:30
James Valleroy
c12fbec30f Change hostname for some more fields that may appear in ejabberd backup database. 2015-01-03 14:43:50 +05:30
James Valleroy
588eb7250e Fix xmpp change-hostname options. 2015-01-03 14:43:50 +05:30
James Valleroy
7fd611a5c9 Only modify specified lines in ejabberd backup database when changing hostname. 2015-01-03 14:43:50 +05:30
James Valleroy
48b6ff3728 Store ejabberd backup in non-world-readable location. 2015-01-03 14:43:50 +05:30
James Valleroy
298938de73 Signal xmpp module before and after hostname is changed. 2015-01-03 14:43:50 +05:30
James Valleroy
10b234921b Track which section of ejabberd config we are in, and only edit the hosts section.
Check for jwchat config and ejabberd dumpfile before trying to modify them.
2015-01-03 14:43:50 +05:30
James Valleroy
6fc721a727 Convert xmpp-hostname-change to python, merge into xmpp action file. 2015-01-03 14:43:50 +05:30
James Valleroy
ff4fd4728c Don't use dpkg-reconfigure to modify configuration files.
It will fail if the files have been modified another way.
2015-01-03 14:43:50 +05:30
James Valleroy
20318b2f25 Use invoke-rc.d to avoid service mask error. Fixes #9. 2015-01-03 14:43:50 +05:30
fonfon
4010b81ecc fixed some flake8 errors 2014-12-15 16:02:56 +01:00
fonfon
ae83566653 removed unused 'title' from subsubmenus 2014-12-15 15:54:40 +01:00
Sunil Mohan Adapa
61fefcff01 Minor styling and doc updates related to module cleanup 2014-12-14 17:27:11 +05:30
Sunil Mohan Adapa
90203986f2 Remove modules 'expert_mode' and 'lib'.
The login/logout URLs are now in the 'users' module.
2014-12-14 17:26:05 +05:30
Sunil Mohan Adapa
3abc5e9212 Require logged-in user for user administration 2014-12-14 17:24:23 +05:30
Sunil Mohan Adapa
10496d89a5 Refactor templatetags and tests for styling 2014-12-14 08:51:13 +05:30
Sunil Mohan Adapa
d4b98b9e48 Sylting updates in user module for consistency 2014-12-14 00:32:22 +05:30
Sunil Mohan Adapa
c6a29a8915 Don't mark ContextMixin as abstract
- Django abstract bases seems to apply only for Models.

- Django itself does not use abtract marking for its own generic view
  mixins.
2014-12-14 00:32:22 +05:30
Sunil Mohan Adapa
a625d67152 Show active status in user list, increase delete button size
- Separate out styling details
2014-12-14 00:32:22 +05:30
Sunil Mohan Adapa
82c2785272 Auto-generate model form for user updation
- Remove the custom UserForm
2014-12-14 00:32:14 +05:30
Sunil Mohan Adapa
6612fffdb5 Update user module URLS
- It is more restish to have /user/1/delete rather than /user/delete/1.
- End all URLs with a slash.
2014-12-14 00:19:45 +05:30
Sunil Mohan Adapa
20e03c700a Update UI strings in user module
- Fixed an i18n issue.
- Marked more messages for i18n.
2014-12-14 00:18:33 +05:30
Sunil Mohan Adapa
6dc463ff6e Remove confusing sidebar message during user creation 2014-12-14 00:07:53 +05:30
fonfon
0d2b454b6e os.path.commonprefix is suitable for any strings 2014-12-09 23:38:16 +01:00
fonfon
97fe5714e2 Fix subsubmenu highlighting bug and add tests 2014-12-09 23:32:06 +01:00
fonfon
4b3b3c666a Refactored 'users' module
- allows editing users (currently the groups and username)
- allows any logged-in user to change the passwords of any other users
- improved url highlighting of subsubmenu
2014-12-09 20:49:13 +01:00
Sunil Mohan Adapa
733a4fd139 Minor styling fixes for test coverage script 2014-12-07 11:39:38 +05:30
Sunil Mohan Adapa
5016087d5c Move coverage to test dependency and install it properly
- Coverage should only be required if running tests

- When running test_coverage command all the install dependencies and
  test dependencies should be installed.
2014-12-07 11:38:33 +05:30
Sunil Mohan Adapa
a0cd525b96 Add explicit license from test coverage script
The license on the blog post is GPLv3+.  The derived work can't be of
any other license but GPLv3+.
2014-12-07 11:33:10 +05:30
Sunil Mohan Adapa
3444d5e314 Don't fail setup.py when without coverage module 2014-12-07 11:10:37 +05:30
fonfon
ff36dd1010 print coverage at the end of the test; minor pep8 fixes 2014-12-07 10:40:51 +05:30
Bob Girard
a502da63d5 Add test coverage measurement and reporting
- Implement coverage functionality as a setuptools Command subclass
  (in plinth/tests/coverage/test_coverage.py)
- Register the new 'test_coverage' command in setup.py
- Modify the INSTALL file to specify python3-coverage as a new dependency
- Modify the HACKING file to document the new 'test_coverage' command
- Have git (via .gitignore) ignore the '.coverage' output data file and
  the contents of the 'plinth/tests/coverage/report' directory
2014-12-06 18:14:42 +05:30
Sunil Mohan Adapa
95bf621c08 Update link to wiki during first boot 2014-12-06 17:15:30 +05:30
Sunil Mohan Adapa
f4f594c41a Remove references to editing of users
- We can add that when we have the functionality implemented.

- Our current effort is not have stubs and references unavailable
  features.
2014-12-06 17:08:38 +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
4b249be175 Reduce pagekite configuration button size 2014-12-06 17:08:38 +05:30
Sunil Mohan Adapa
2d33b0338e Add missing <p> tags 2014-12-06 17:08:38 +05:30