46 Commits

Author SHA1 Message Date
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
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
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
fonfon
824a9091c1 use django-stronghold for authentication handling (instead of @login_required) 2015-07-01 00:01:02 +05:30
Sunil Mohan Adapa
b62f6746f4 Handle arguments to actions properly
- Don't allow strings to be sent as arguments.  The mixup with
  lists/tuples could be dangerous.

- Don't escape arguments.  subprocess.Popen takes care that arguments
  are passed on nicely to the actions.

- Update tests.
2015-05-01 18:52:17 +05:30
James Valleroy
d4ac0c3b46 Update dynamicdns views to use new required package list format. 2015-04-04 13:14:57 -04:00
Daniel Steglich
8af4ee423a removed dictionary because string values can be used in dropdown menu directly 2015-03-13 14:09:58 +01:00
Daniel Steglich
337fa56b15 refactoring, made the code more readable, use consistent indentions, whitespaces and linebreaks next to brackets 2015-03-12 17:07:21 +01:00
Daniel Steglich
e94c85c357 improved help texts 2015-03-10 09:00:56 +01:00
Daniel Steglich
dfe35c9c97 improved helper text 2015-03-09 23:39:35 +01:00
Daniel Steglich
2782406cae improved form validation (only request domain/user/pass if gnudip is selected to allow empty params on update URL), and stripped single qoutes from empty values to avoid showing them when form is loaded 2015-03-09 23:32:13 +01:00
Daniel Steglich
1a3d7a3d00 only validate form fileds if the form is enabled at all 2015-03-09 22:36:21 +01:00
Daniel Steglich
4356a2cff3 fixed typo 2015-03-09 21:53:12 +01:00
Daniel Steglich
808062da11 added some comments 2015-03-06 23:30:24 +01:00
Daniel Steglich
ce057ebd22 need to remove unused parameters according to dropdown box selection 2015-03-06 23:27:45 +01:00
Daniel Steglich
21c4326a1d do not clear server and URL values when changing dropdown menu but check if one of them is filled when validate the form 2015-03-06 23:18:50 +01:00
Daniel Steglich
379815d92b fixed dropdown box based deletion of unused params 2015-03-06 23:06:17 +01:00
Daniel Steglich
a57f86315e added freedns provider 2015-03-06 22:04:42 +01:00
Daniel Steglich
7d44f0c4e4 do not delete GnuDIP Server address if dropdown box changes and check/uncheck HTTP Basic auth according to update URL provider template 2015-03-06 21:21:19 +01:00
Daniel Steglich
94991b9bb6 changed form manipulation from plain javascript to jquerry and removed javascript from python file 2015-03-05 21:48:30 +01:00
Daniel Steglich
e42b8e5015 covered empty server arguments and made parameter comparsion more easy 2015-03-05 14:03:11 +01:00
Daniel Steglich
a615cbe243 fixed form validation: at least dynamicdns_server or dynamicdns_update_url needs to be configured 2015-03-04 22:40:50 +01:00
Daniel Steglich
2c63aaeb06 moved helper texts to variables 2015-03-04 22:35:03 +01:00
Daniel Steglich
b6d5e4286b started adding help text variables 2015-03-03 22:44:14 +01:00
Daniel Steglich
e6ee17cfbd fixed variables 2015-03-03 22:36:02 +01:00
Daniel Steglich
bc7ed8dec9 changed syntax of variables 2015-03-03 22:01:00 +01:00
Daniel Steglich
df0d1304b7 made the latest changes pep8 compatible 2015-03-03 21:42:54 +01:00
Daniel Steglich
a2e8a0ec8a prepared update URL functionality (implemented new parameters) 2015-03-02 23:39:28 +01:00
Daniel Steglich
7e218b06ed added dynamic form fields and fixed support for users without javascript support 2015-03-02 20:57:50 +01:00
Daniel Steglich
874d0bea18 first version of java script based dynamic provider selection 2015-02-28 23:18:05 +01:00
Daniel Steglich
f35ab6a3b4 added a checkbox to make the password visible 2015-02-28 15:30:10 +01:00
Daniel Steglich
76f9d087c9 removed second password field from configure form and validate the form completly within clean function of configure form 2015-02-24 08:16:02 +00:00
Daniel Steglich
2dbdc0c685 do form validation within clean function of the ConfigureForm class and not when applying the changes 2015-02-23 13:38:58 +00:00
Daniel Steglich
7ea9e1cf94 use different UI logo than XMPP 2015-02-23 12:51:41 +00:00
Daniel Steglich
17ffdd6fee made code more readable 2015-02-23 12:42:10 +00:00
Daniel Steglich
81c405cfa3 fixed typo within error message 2015-02-23 12:23:18 +00:00
Daniel Steglich
4ca76b9c76 some helptext adjustments 2015-01-15 19:33:11 +00:00
Daniel Steglich
9fbe9754f6 refactored configuration action to avoid multiple start/stop calls of the action script when the configuration changes 2015-01-05 17:29:12 +00:00
Daniel Steglich
c0f4b8205e fixed pep8 errors reported by flake8 2015-01-05 16:12:24 +00:00
Daniel Steglich
ae4bdc0970 pep8 guideline adaption 2015-01-05 13:54:13 +01:00
Daniel Steglich
c31161a056 Merge branch 'dynamicdns' of https://github.com/steglicd/Plinth into dynamicdns
use package framework for installing ez-ipupdate
2015-01-05 11:22:13 +00:00
Daniel Steglich
4978c64bb3 use package framework for installing ez-ipupdate 2015-01-05 11:22:07 +00:00
Daniel Steglich
4306e4c770 changed menu entry name to a more fancy string 2015-01-05 00:29:03 +01:00
Daniel Steglich
69bb4f1b36 fixed file permissions 2015-01-04 19:58:07 +01:00
Daniel Steglich
0f66b22a4a refactored naming from dynamicDNS to lowercase dynamicdns 2015-01-04 18:53:39 +00:00