1550 Commits

Author SHA1 Message Date
Sunil Mohan Adapa
8dcafe3e0e
middleware: New middleware to check need for setup
- Call the setup helper to check if a installation or update of a module
  is required.

- Show installation and progress using the setup view.
2016-02-13 13:50:16 +05:30
Sunil Mohan Adapa
7a4a8fbc99
views: New view to show setup need and progress 2016-02-13 13:50:12 +05:30
Sunil Mohan Adapa
80d9f0d41e
module_loader: Add setup helper to every module
- During initialization add a setup helper to every module.  For use
  later.
2016-02-13 13:50:06 +05:30
Sunil Mohan Adapa
be6ccabec2
setup: New module to handle application setup
- There shall be a setup helper object in every module.  The setup
  process will simply call methods in helper.

- Helper is responsible for loading/storing/checking module setup
  versions.

- Methods help in showing progress of setup process automatically.
2016-02-13 13:49:59 +05:30
Sunil Mohan Adapa
2bba8b07fe
models: New model to store module setup versions 2016-02-13 13:49:54 +05:30
Sunil Mohan Adapa
716ba5f1a0
package: Expose starting install without thread 2016-02-13 13:49:45 +05:30
Sunil Mohan Adapa
20a97488d9
package: Proper string casting of PackageException 2016-02-13 13:49:37 +05:30
Sunil Mohan Adapa
1e8cc6f290
Cleanup final use of urls.patterns() method
- As deprecated in Django 1.9.
2016-02-13 13:49:30 +05:30
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
James Valleroy
3e2c84dba2
Merge branch 'dynamicdns-nonat' 2016-02-10 21:12:36 -05:00
Caly
de802f334d Translated using Weblate (Swedish)
Currently translated at 49.9% (284 of 569 strings)
2016-02-09 05:06:04 +01:00
Sunil Mohan Adapa
082c5ee1ce
networks: Minor trimming to tests
- To focus only on what is being tested.
2016-02-09 09:35:14 +05:30
James Valleroy
1851b15836
networks: Fix tests, move settings to a dict 2016-02-09 09:35:01 +05:30
Sunil Mohan Adapa
41db74d6cd
Translated using Transifex (Norwegian Bokmål) 2016-02-07 11:34:45 +05:30
James Valleroy
73c125f1ae
Remove Plinth.egg-info/ during clean. Fixes #335. 2016-02-07 11:34:34 +05:30
the29a
04c096972f Translated using Weblate (Russian)
Currently translated at 24.2% (138 of 568 strings)
2016-02-07 06:42:11 +01:00
Joel Valleroy
0177754201 Added packagekit to dependency list per issue-369 2016-02-06 16:25:05 +00:00
Dietmar
747728926e Translated using Weblate (German)
Currently translated at 100.0% (569 of 569 strings)
2016-02-06 10:19:02 +01:00
Sunil Mohan Adapa
9646274e0b
New locale file for Russian (ru) 2016-02-06 14:48:10 +05:30
Tong Hui
12b3abcd45 Translated using Weblate (Chinese (China))
Currently translated at 92.9% (529 of 569 strings)
2016-02-06 03:44:11 +01:00
Dietmar
0b1932765d Translated using Weblate (German)
Currently translated at 100.0% (569 of 569 strings)
2016-02-05 22:07:33 +01:00
ultrapeer
78588454aa Translated using Weblate (Turkish)
Currently translated at 100.0% (569 of 569 strings)
2016-02-04 21:45:18 +01:00
Tong Hui
e4c0e86c6a Translated using Weblate (Chinese (China))
Currently translated at 69.0% (393 of 569 strings)
2016-02-02 13:14:43 +01:00
Joel Valleroy
a23a40dede Removed default password warning. Fixes #386. 2016-02-02 00:12:07 +00:00
Sunil Mohan Adapa
83ec57414c
dynamicdns: Fix starting daemon for no NAT
Incase the machine is not behind NAT, fix the logic that decides to
start the daemon.
2016-02-01 11:03:54 +05:30
Sunil Mohan Adapa
51dd1bb000
dynamicdns: Fix an invalid syntax
'local' keyword can't be used outside a method.
2016-02-01 11:02:43 +05:30
Sunil Mohan Adapa
ea1e9b6e2a
dynamicdns: Fix writing configuration for no NAT
- When writing the configuration file for no NAT case, append then last
  part of the file instead of overwriting.

- Also 'echo' statements are missing leading to attempt to execute the
  config options instead of writing them to a file.
2016-02-01 11:00:46 +05:30
Sunil Mohan Adapa
aa5efd4984
dynamicdns: Fix computing update times
Currenly uptime is being taken as measure to decide whether update must
run.  Uptime is the number of seconds since machine has booted.  If a
machine has run for 30 hours, and rebooted, then update will not be done
until the machine has run for 30 hours + desinated time.  Using seconds
since epoch fixes this.
2016-02-01 10:57:33 +05:30
Sunil Mohan Adapa
2a030f91fe
dynamicdns: Fix reading configuration file
- The current code to parse the configuration file does not work proper
  if there is an '=' in the password.  Fix it.

- Also if predesignated keyword like 'server' occurs in the password,
  configuration can't be read properly.  Fix it.
2016-02-01 10:53:26 +05:30
Caly
dd65cb7835 Translated using Weblate (Swedish)
Currently translated at 37.0% (211 of 569 strings)
2016-02-01 06:20:17 +01:00
Tong Hui
ffbe1f0ce5 Translated using Weblate (Chinese (China))
Currently translated at 4.9% (28 of 569 strings)
2016-02-01 06:20:17 +01:00
Daniel Steglich
a90039889d
dynamicdns: Fix passing password via stdin
* Add an option to pass the password via cmdline (optional, not used by
  plinth) if called manually.

* Fix: If -p option was not the last given option, everything after -p
  was lost.  Closes #310.
2016-02-01 10:46:48 +05:30
Sunil Mohan Adapa
2197da54aa
Merge remote-tracking branch 'weblate/master' 2016-01-31 22:51:48 +05:30
Caly
a5584fb700 Translated using Weblate (Swedish)
Currently translated at 43.7% (246 of 562 strings)
2016-01-31 18:17:02 +01:00
Sunil Mohan Adapa
506d34f397
Merge remote-tracking branch 'weblate/master' 2016-01-31 22:46:20 +05:30
Caly
aa71221ddd Translated using Weblate (Swedish)
Currently translated at 41.9% (236 of 562 strings)
2016-01-31 17:56:30 +01:00
Sunil Mohan Adapa
bb7d912ed8
Update all translations with latest messages 2016-01-31 22:25:18 +05:30
Sunil Mohan Adapa
65a1985cc0
tor: Minor fixes and styling
- Add note about resetarting firewalld.

- Refactor checking for running configuration process.

- Fix error message being show as info message.

- Minor indentation fixes.
2016-01-30 19:41:13 +05:30
James Valleroy
e401a5a028
tor: Get fresh status after config completes 2016-01-30 18:08:56 +05:30
James Valleroy
1e67fcb61a
tor: After enabling hidden service, wait for info 2016-01-30 18:08:47 +05:30
James Valleroy
07130b6007
tor: Run configuration update as background task
- Closes: #294.
2016-01-30 18:08:40 +05:30
James Valleroy
a22595af77
tor: Avoid unneeded service restarts
- Fix an import error.
2016-01-30 18:08:33 +05:30
James Valleroy
0844151244
tor: Combine all configuration actions 2016-01-30 18:07:42 +05:30
James Valleroy
a3845e2b28
tor: Add service for bridge relay ports 2016-01-30 18:07:34 +05:30
James Valleroy
315c7f1e93
tor: Notify firewall about socks service status 2016-01-30 18:07:04 +05:30
James Valleroy
376b5c6feb
tor: Refactor into separate files for forms/views 2016-01-30 18:06:33 +05:30
Sunil Mohan Adapa
506bff5c7b
users: Multiple SSH keys and better home creation
- Allow setting multiple SSH keys one per line (which is already
  allowed, but advertise it better).

- Use mkhomedir_helper to create the user's home directory.  Avoid
  security and accuracy complexities of creating a home directory.

- Allow homes that don't exist in /home.
2016-01-30 15:30:52 +05:30
James Valleroy
ad7d6db968
users: Add field to set user's SSH key. 2016-01-30 15:30:32 +05:30
Sunil Mohan Adapa
81b3f959fe
Create locale zh_CN 2016-01-28 08:14:27 +05:30
Sunil Mohan Adapa
57fd2a2ea2
repro: Minor styling and message changes
- Indentation for HTML template consistent with other templates.

- Style 'repro' like the upstream project does in all small case.

- Better describe the functions of a SIP server and organize the actions
  to be done by the user.

- Set the menu weight so that it does not clash with an existing module.

- Name the application 'SIP Server' instead of 'SIP Proxy' as that
  better describes the capabilities of the repro and is simpler for
  users to understand.
2016-01-27 17:49:41 +05:30