841 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
d8ba09eb74 owncloud: Minor cleanup in action file 2015-03-08 13:23:36 +05:30
Sunil Mohan Adapa
57094d9820 owncloud: Check for database configuration to treat as enabled
- Newer version of owncloud package enable the Apache2 owncloud configuration
  by default.  This happens eventhough database configuraiton is not available.
  Plinth only checks for Apache2 owncloud configuration as enabled to determine
  if owncloud is enabled and hence falsely shows the owncloud is enabled.

- Newer version of owncloud also create a /etc/owncloud/config.php with simple
  instance identifier set.  So merely checking if the files exists is not of
  much use.

- This patch checks if the dbtype variable is configured in config.php or
  autoconfig.php along with Apache2 owncloud configuration to determine if
  owncloud is enabled.

- The same logic is used to determine if autoconfig.php must be generated.
2015-03-08 13:22:35 +05:30
fonfon
855755263d Merge pull request #105 from SunilMohanAdapa/owncloud-apache-reload
owncloud: Do Apache reload instead of restart
2015-02-23 14:39:12 +01:00
fonfon
16fb4c2f3c Merge pull request #86 from BobGirard/unit-tests-1
Updated: Unit tests (#1)
2015-02-23 14:32:41 +01:00
Sunil Mohan Adapa
c3ac49e676 upgrades: Change menu item to 'Software Upgrades'
- This will be more familiar to the user due to similar messages on the
  desktops and mobiles.
2015-02-22 17:48:35 -05:00
Sunil Mohan Adapa
1f43be95a0 upgrades: Handle action errors using error codes
- This is more reliable than string parsing in the output.

- We will be using pythonic try/catches instead of if conditions.
2015-02-22 17:48:35 -05:00
Sunil Mohan Adapa
82fbbe1fec upgrades: Handle upgrade interval other than 1 day properly
- We must assume that apart from Plinth there will be user or user-agent
  changes to the configuration files.  In this case the value may be set
  something other than '1' day.
2015-02-22 17:48:35 -05:00
Sunil Mohan Adapa
d33e60c74a upgrades: Minor styling fixes
- Remove emacs mode line as emacs automatically detect Python files
  based on the #! line.

- End comments with a '.'.

- Use single quotes instead of double quotes for string for consistensy.

- Update message to say that it take more than a minute to finish
  upgrades.  Some times it takes a lot more than that.
2015-02-22 17:48:34 -05:00
Sunil Mohan Adapa
a5473ae7f2 upgrades: Require CSRF token for starting upgrade process 2015-02-22 17:48:34 -05:00
Bob Girard
15161e10b1 Eliminate renaming plinth.config file for tests
- Instead of renaming plinth.config, make a copy and run all feasible
  tests on the copy, then delete the copy.
2015-02-13 11:33:35 -07:00
Sunil Mohan Adapa
771581a75f owncloud: Do Apache reload instead of restart
Restarting Apache breaks existing connections.  This includes the connection
on which the Plinth's user has made the ownCloud enable/disable request.  This
leads to an almost certain 'Connection Interupted' message to the client when
changes to ownCloud are submitted.

On the other hand, 'reload' is sufficient and 'restart' is not required.  It is
also faster and recommended by 'a2enconf' and 'a2disconf' commands.
2015-02-11 10:48:41 +05:30
Sunil Mohan Adapa
9ab948012e copying: Reflow text 2015-02-11 10:28:29 +05:30
fonfon
38ec7666ed Display Plinth version in Documentation / About
Users should see which Plinth version they use to make it easier to report
and reproduce bugs
2015-02-11 10:28:29 +05:30
fonfon
ef2bf32668 Made owncloud submit button more straightforward
As octogen pointed out on irc that's easy to miss that it's necessary
to click the submit button (and not just tick/untick the checkbox)
2015-02-11 10:28:29 +05:30
fonfon
980405470d Added 2015 to copyright note 2015-02-11 10:28:29 +05:30
fonfon
a8cde77d5f system configuration: make domain optional 2015-02-11 10:28:29 +05:30
Sunil Mohan Adapa
e69b500247 Add to context processor and menu test cases
- Minor style updates to other tests
2015-01-30 18:11:37 +05:30
Bob Girard
f184c23c31 Add unit tests (#1)
* Add unit tests for cfg.py, context_processors.py, and menu.py
* Add new plinth/tests/data directory for miscellaneous test data
* In cfg.py, add an explicit check to verify the existence of the secondary
  (non-default) plinth.config file
* In cfg.py, replace deprecated configparser.SafeConfigParser with
  configparser.ConfigParser
2015-01-30 18:11:36 +05:30
fonfon
836ddd4a59 More user-friendly output of an upgrade run 2015-01-28 21:23:25 +00:00
fonfon
4a19dcc807 Minor improvement of auto-update check
Instead of relying on /etc/apt/apt.conf.d/20auto-upgrades having the
according entries we now verify the auto-upgrade entries via apt-config
2015-01-28 19:50:27 +00:00
James Valleroy
cd057994d3 Include { in Origins-Pattern regex pattern. 2015-01-28 19:50:27 +00:00
James Valleroy
6292b47e54 Use regexs to match more valid configs for unattended-upgrades. 2015-01-28 19:50:27 +00:00
James Valleroy
5939292c86 fix typo 2015-01-28 19:50:27 +00:00
James Valleroy
304e2aea62 Add form for enabling automatic upgrades. 2015-01-28 19:50:26 +00:00
James Valleroy
80eff7fd6e Add upgrades module that can run unattended-upgrades. 2015-01-28 19:50:26 +00:00
Bob Girard
c72c03890c Add detailed test coverage console report
* Add a detailed console report to the 'test_coverage' command output
* Expand the precision of all coverage percentages to two decimal places
* Print the location of the HTML coverage report at the end of the console report
2015-01-25 10:52:44 +05:30
Sunil Mohan Adapa
da9faa5e02 Don't load Debian backup files as module configuration
When modules were removed, Debian packaging also had to remove them to
avoid errors.  When Debian guidelines are following and correspoding deb
helper is used, it creates .dpkg-* files in the module configuration
directory.  Plinth tries to load these which causes problems.  We should
consider loading files with a known extension in future.
2015-01-25 01:50:31 +05:30
Sunil Mohan Adapa
3fcbb36a21 Serve /usr/share/javscript on /javascript
Since the links to javascript libraries have been removed in favor of
using javscript-common, it is no longer possible to run Plinth stand
alone without a reverse proxy that also serves /javscript.  This patch
fixes that.  Now /javascirpt is also available when Plinth is running
stand alone.
2015-01-25 01:50:31 +05:30
Sunil Mohan Adapa
2b85416aa2 users: Use deluser instead userdel for deleting POSIX users 2015-01-25 01:45:51 +05:30
Sunil Mohan Adapa
c2b806cf0d users: Rename a POSIX user when Plinth user is renamed 2015-01-25 01:45:51 +05:30
Sunil Mohan Adapa
a3de3ae277 users: Handle errors better during POSIX user operations
- If during an action, user does not exist ignore.

- If during an action, return a non-zero exist status.

- Catch an errors during actions as exceptions.

- Display a message that corresponding POSIX operation failed.
2015-01-25 01:45:51 +05:30
Sunil Mohan Adapa
d27cd02193 users: Add posix user messages to other user management forms
- Slightly modify the message in user update form
2015-01-25 01:45:43 +05:30
Sunil Mohan Adapa
baa9205852 Fix issue with styling of error messages with bootstrap3 2015-01-25 01:17:58 +05:30
James Valleroy
2da8619248 Show if user is also a POSIX user in edit user form. 2015-01-20 12:37:16 +05:30
James Valleroy
45b5ce8de9 When enabling/disabling Django user, also enable/disable the corresponding POSIX user. 2015-01-20 12:37:04 +05:30
James Valleroy
eeced1c213 When updating a user's password, also update the POSIX user's password, when needed. 2015-01-20 12:36:50 +05:30
James Valleroy
46dd2225f7 Delete posix user when deleting plinth user. 2015-01-20 12:36:02 +05:30
James Valleroy
f3ea867e07 Add option when adding a new user, to also create a POSIX user.
Conflicts:
	plinth/modules/users/views.py
2015-01-20 12:35:15 +05:30
James Valleroy
1a081bfab0 Create POSIX user during firstboot. Closes #31. 2015-01-20 12:28:53 +05:30
Sunil Mohan Adapa
4581785519 Release 0.4.4 v0.4.4 2015-01-13 13:07:30 +05:30
Sunil Mohan Adapa
f6b2d1e44b Don't generate TODO list from build/ and debian/ dirs 2015-01-13 13:00:40 +05:30
Sunil Mohan Adapa
b179331f49 Remove empty header and footer documentation files
These cause lintain warning during Debian package building.  They
currently don't serve any purpose as they are empty.  They can be
re-added when they have some content.
2015-01-13 12:25:26 +05:30
Sunil Mohan Adapa
76717a6f08 Remove style.css to avoid unsafe links
Documentation shown inside Plinth is not effected by this as it includes
its own styling.  Documentation that is opened by user directly from
/usr/share/doc/plinth is effected.
2015-01-13 12:25:26 +05:30
Sunil Mohan Adapa
b5bfb388e9 Remove symlinks to javascript libraries 2015-01-13 12:25:17 +05:30
Sunil Mohan Adapa
fca04b2673 Release 0.4.3 v0.4.3 2015-01-05 20:46:24 +05:30
fonfon
0cbdd5cf51 bugfix: changing user password didn't work
We manually have to call the form.save() method in form_valid().
Plus tiny cleanups like using SetPasswordForm instead of
AdminPasswordChangeForm.
Note: this allows any logged-in user to change all other user passwords.
2015-01-04 23:32:32 +01:00
Sunil Mohan Adapa
2015b52798 Release 0.4.2 v0.4.2 2015-01-05 02:38:48 +05:30
fonfon
e905d1a8f2 packagekit: use TemplateView instead of FormView
For the installation procedure a TemplateView is sufficient, and the user
won't be able to edit any form-data on the client-side.
2015-01-05 00:27:45 +05:30
Sunil Mohan Adapa
b3e8e53c73 Use package framework for installing ejabberd and jwchat 2015-01-05 00:27:45 +05:30
Sunil Mohan Adapa
c7f27e493e Use package framework for installing tor 2015-01-05 00:13:20 +05:30