Sunil Mohan Adapa
7f4c5f7410
Make app names as module identifiers
...
- The last part of the module import path is the module name. This also
becomes the Django app name. Apps names have to be unique. Hence,
there is no scope for two different modules with same name but
different load path to exist in the project.
- Most uses of list of loaded modules are dealing with app names instead
of full module load path. This is due to the fact that Django deals
with app names and not module paths.
- It is also somewhat clumsy to access a loaded module as we are
re-importing every time to get access module.
- Simplify all of the above by using app names are module identifiers
and maintaing an ordered dictionary of app names to loadded modules.
- Remove unused imports.
- Minor styling fixes.
2016-02-13 13:49:23 +05:30
Caly
15312fe595
Update messages for simplicity/consistency/grammer
...
- Closes #375 and #380 .
- More use of configurable brand name.
2016-01-24 12:14:25 +05:30
Sunil Mohan Adapa
572e68dc36
Make remaining uses of brand name customizable
2016-01-24 00:50:14 +05:30
Ruben Lubbes
841439ba73
Punctuation errors changed after DE language check
...
Influences all translations, so do not use for 0.7.
2015-12-09 23:55:55 +05:30
Sunil Mohan Adapa
a69f419c3c
Make Django urlpatterns list of url()s
...
- Support for legacy pattern() mechanism will be removed in Django
1.10. Currently we see a warning for each Plinth module.
2015-12-05 09:33:23 -05:00
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
02cd89b60d
Internationalize strings in template files
2015-11-13 22:02:17 +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
Bob Girard
d64ce6cc01
Bundle tests with applications
...
- For each application, add ./tests directory and __init__.py file
within it.
- Modify test controllers (coverage.py, runtests.py) to find the new
test directories for testing and coverage analysis.
- Move existing application-specific test modules (test_pagekite.py) to
the newly created directories.
2015-06-26 12:05:48 +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
66a4083891
moved reconfiguration of dropdown display directly to the onchange function of the dropdown box as the code is not used elsewhere
2015-03-10 00:31:30 +01:00
Daniel Steglich
dfe35c9c97
improved helper text
2015-03-09 23:39:35 +01:00
Daniel Steglich
8269cfe97e
removed duplicate code and avoid deleting form field config on reload
2015-03-09 23:33:09 +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
9f8281f9dc
do not change values of dropdown element, but change selection
2015-03-09 22:35:51 +01:00
Daniel Steglich
6bb73467a6
improved helptext
2015-03-09 22:06:21 +01:00
Daniel Steglich
9f6d9487bd
use ssl for freedns
2015-03-09 21:57:34 +01:00
Daniel Steglich
4356a2cff3
fixed typo
2015-03-09 21:53:12 +01:00
Daniel Steglich
fa076edda4
fixed indention
2015-03-09 21:44:25 +01:00
Daniel Steglich
15a6c49922
only show fields according to dropdown menu when entering form first tim (after enable checkbox was selected)
2015-03-07 00:03:00 +01:00
Daniel Steglich
e5ddfe0906
added hint for free dns service
2015-03-06 23:41:30 +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
3b0a070283
configure the form according to last configured values when loading the formular
2015-03-06 23:10:36 +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
45960542bb
less than 80 characters per line
2015-03-05 22:03:55 +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
21f0aeef1c
fixed indention
2015-03-05 13:20:46 +01:00
Daniel Steglich
746b077557
fixed typo
2015-03-05 13:15:44 +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
f1c1d812e9
updated javascript disabled helper message
2015-03-03 23:05:34 +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
3e75e65fc5
added concrete URL's for noip and selfhost.bz
2015-03-03 21:59:10 +01:00
Daniel Steglich
3178405a6e
fixed javascript after field renaming
2015-03-03 21:46:33 +01:00
Daniel Steglich
df0d1304b7
made the latest changes pep8 compatible
2015-03-03 21:42:54 +01:00