127 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
cc181c79c3 Minor styling fixes for domain name validator 2015-11-16 22:00:25 +05:30
Joel Valleroy
e7fb549349 Updated domain name validation and unit tests 2015-11-16 22:00:25 +05:30
Sunil Mohan Adapa
c985fdae56 Update config form for hostnames and domainnames
- Make minimum length 1 for the fields.

- Write tests.

- Update description to reflect the new conditions.
2015-11-15 10:59:27 +05:30
Joel Valleroy
45fff7057b Allow hyphens in hostname and domainname. Fixes #275. 2015-11-14 17:23:06 -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
91eaf3301d datetime: Move time zone to date time module
- It is more appropriate to have the time zone setting in date time
  module.
2015-09-04 19:53:46 +05:30
Sunil Mohan Adapa
da3e92312c config: Handle miscellaneous time zones also
- In appears that in Debian it is possible to set the timezones from one
  of the listed items in zonetab.info or addtitional timezones from the
  directory /usr/share/zoneinfo/Etc/.  Add these too.

- By default all FreedomBox images have Etc/UTC as time zone.  This is
  now properly listed.
2015-09-04 19:27:16 +05:30
Sunil Mohan Adapa
cc365fb2eb config: Hide time zone not-set option normally
- After a time zone is set, don't show the option 'No time zone set' any
  more.

- Change the label to 'no time zone set'

- Update the help text to 'time zone' instead of 'timezone'.
2015-07-23 08:58:30 +05:30
Bharath Chava
d93fbba51f Issue 88: When no timezone is set, Plinth shows first one in list. 2015-07-22 22:56:28 +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
fonfon
a8cde77d5f system configuration: make domain optional 2015-02-11 10:28:29 +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
298938de73 Signal xmpp module before and after hostname is changed. 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
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
fonfon
96a14e3d0d moved 'in-app menu' from the sidebar to the top of the content; some template block renaming 2014-12-06 17:08:37 +05:30
Sunil Mohan Adapa
6a1f96d7c2 Bootstrap change .btn-primary -> .btn .btn-primary
Only then the full intended style will apply.  This is a change from
Bootstrap 2 to Bootstrap 3.
2014-11-23 14:08:13 +05:30
fonfon
f0582e7a94 replaced bootstrap2 by bootstrap3 2014-11-11 19:06:47 +01:00
Sunil Mohan Adapa
cc549fff61 Load modules using explict paths instead of config file name 2014-10-04 13:41:27 +05:30
fonfon
e1440a5ee5 formatting strings: %s automatically applies the str() method 2014-09-03 04:56:31 +02:00
Sunil Mohan Adapa
06a50c6985 Use open().read() instead of slurp() 2014-08-30 22:17:07 +05:30
Sunil Mohan Adapa
65fa648d9f Reorganize python sources into 'plinth' package 2014-08-29 12:57:27 +05:30