Commit Graph
451 Commits
Author SHA1 Message Date
Sunil Mohan Adapa c1383676d6 Convert privacy pages to templates 2014-05-08 11:09:27 +05:30
Sunil Mohan Adapa ef7da7527d Convert sharing pages to templates 2014-05-08 11:04:43 +05:30
Sunil Mohan Adapa 4e4ca43b40 Convert file explorer page to template 2014-05-08 10:55:48 +05:30
Sunil Mohan Adapa c50fe72587 Convert help pages to templates 2014-05-08 10:51:58 +05:30
Sunil Mohan Adapa 577dbb4fc5 Convert apps pages to templates 2014-05-08 10:44:53 +05:30
Sunil Mohan Adapa 25fe3c7ee8 Convert diagnostics pages to template 2014-05-08 10:13:38 +05:30
Sunil Mohan Adapa eff6306f7d Convert system page to template 2014-05-08 09:12:14 +05:30
Sunil Mohan Adapa 1c338e538a Convert firewall page to template 2014-05-08 09:05:50 +05:30
Sunil Mohan Adapa 76f49916a3 Convert add/edit user sidebars to templates 2014-05-05 23:58:47 +05:30
Sunil Mohan Adapa 8ddd98ade0 Convert OpenID sidebar to template 2014-05-05 23:58:14 +05:30
Sunil Mohan Adapa 6d83ad3c00 Convert right sidebar menus to templates 2014-05-05 23:10:51 +05:30
Sunil Mohan Adapa 8e8ac77661 Convert pagekite introduction page to templates 2014-05-05 23:10:39 +05:30
Sunil Mohan Adapa a54672ae01 Allow placing templates inside module directories 2014-05-05 00:29:41 +05:30
Sunil Mohan Adapa 4b44741c68 Remove unnecessary layer of abstraction over template rendering 2014-05-05 00:08:58 +05:30
Sunil Mohan Adapa 851536ffbe Update LICENSES file to reflect template changes 2014-05-04 16:12:12 +05:30
Sunil Mohan Adapa 9d9ed1b210 Update documentation on templates to reflect Django templates 2014-05-04 16:11:29 +05:30
Sunil Mohan Adapa ee77f107ea Remove cheetah as a dependency 2014-05-04 16:10:27 +05:30
Sunil Mohan Adapa 882392f104 Dont gitignore compiled template files 2014-05-04 16:09:35 +05:30
Sunil Mohan Adapa 7e16b74718 Remove steps for compiling templates 2014-05-04 16:07:48 +05:30
Sunil Mohan Adapa 9239d2c627 Migrate from Cheetah to Django template system
Compiled templates are an unnecessary pain in maintance and
packaging. If each module is to bring its own templates, compiling
them in the build process becomes unnecessarily more complex. The
current state of template mess can somewhat be attributed to this.

Cheetah only partially supports dynamic templates. It does not support
inheritence of dynamic templates. From its documentation: "There is no
support for extending from a class that is not imported; e.g., from a
template dynamically created from a string. Since the most practical
way to get a parent template into a module is to precompile it, all
parent templates essentially have to be precompiled."
2014-05-04 16:01:17 +05:30
Nick Daly d7a3235120 Merge pull request #76 from jvalleroy/update-jwchat-link
Update link to jwchat.
2014-05-03 18:20:32 +00:00
James Valleroy 064ea93f84 Update link to jwchat. 2014-05-01 19:38:28 -04:00
Nick Daly 9b3543c764 Allow services to be both internal and external again.
Reverting part of 887518ce on Sunil's advice:

    An assumption made for the sake of simple API is that all
    externally available services are also available internally. They
    are not mutually exclusive.

    Your change will enable a service only if it is not externally
    available. For example, HTTPS is externally available. It will no
    longer be made internally available. Which is not right.

    We should either revert this line or introduce a way to mark all
    the services as internal as well and write code handle that
    properly.
2014-04-28 22:50:45 -05:00
Nick Daly 0cf051bd69 Remove unused import. 2014-04-28 21:27:00 -05:00
Nick Daly 887518ce88 Be explicit about running commands as the superuser.
superuser=True is a surprising default.  Not happy-rainbow-surprising
but more dropping-a-large-rock-on-your-foot surprising.
2014-04-28 20:12:20 -05:00
Nick Daly bf3286b736 Merge: Sunil's firewall branch (follow up commits). 2014-04-28 19:59:06 -05:00
Sunil Mohan Adapa 51d1afbcb9 Setup network interfaces into external and internal zones
This replaces the /etc/init.d/(freedombox-)proxy script
that enables masquerading traffic from internal interface
using and external interface. It makes the same assumptions
about the nature of network interfaces as the proxy script.

FirewallD automatcially takes care of loading masquerading
modules, enabling kernel parameter for forwarding and
allowing masquerading using external interfaces.
2014-04-27 20:25:33 +05:30
Sunil Mohan Adapa 3ef1ed83ce Add support for zones in firewall service 2014-04-27 18:16:32 +05:30
Sunil Mohan Adapa 428d5e6aa3 Add more firewalld service and fix typo in one 2014-04-27 17:49:24 +05:30
Nick Daly 9350052e59 Merge: Sunil's firewall branch. v0.3.2 2014-04-23 19:26:57 -05:00
Nick Daly 3c2a5be9af Merge: Sunil's exec commits. 2014-04-23 19:21:52 -05:00
Sunil Mohan Adapa 3984559fda Add a first-run script to be run by freedombox-setup to setup initial state of firewall 2014-04-22 22:17:18 +05:30
Nick Daly 66d0114d8f Merge pull request #72 from petterreinholdtsen/owncloud-autoconfig
Merged: Pere's add code to enable owncloud by default using PostgreSQL.
2014-04-20 20:38:44 +00:00
Sunil Mohan Adapa f77ceedc94 Make XMPP work with service framework
- This allows firewall to manage ports automatically
2014-04-18 12:55:32 +05:30
Sunil Mohan Adapa f7dd63c0a6 Make ownCloud work with service framework
- This allows firewall to manage ports automatically
2014-04-18 12:54:42 +05:30
Sunil Mohan Adapa 32144e96ef Basic firewall sevice based on FirewallD
- Ports are allowed in default zone as soon as a service is enabled
- Ports are disabled when all services depending on the port are disabled
- Shows current enabled state of services and their each of thier ports
2014-04-18 12:53:27 +05:30
Sunil Mohan Adapa 0f8050d031 Add a framework for working with services
- Basic information about each service is available for consumers
- Information about whether service is enabled or disabled is available
- Interested parties may listen to enabling/disabling of a service
- Information about some core services are made available
2014-04-18 12:50:14 +05:30
Nick Daly bd5f5c390a Merge pull request #66 from jvalleroy/xmpp-hostname
Update XMPP and mDNS when changing hostname
2014-04-18 01:28:21 +00:00
Nick Daly c75f3efc90 Merge pull request #70 from SunilMohanAdapa/remove-contract
Remove dependency on improperly used and unmaintained contract module
2014-04-13 23:03:58 +00:00
James Valleroy fe6803eb98 Don't need 2nd restart. 2014-04-12 17:26:43 -04:00
James Valleroy 415e89c02a When changing XMPP hostname, make sure user accounts get copied to new database. We are back to 2 ejabberd restarts though. 2014-04-12 15:47:15 -04:00
Sunil Mohan Adapa 3fe40c223c Minor i18n fixes for pagekite 2014-04-10 10:33:21 +05:30
Sunil Mohan Adapa 5a5ff04f8e Dont use exec() in router module 2014-04-10 10:26:52 +05:30
Petter Reinholdtsen d71d94f2d7 Add code to enable owncloud by default using PostgreSQL. Only need to specify the admin username and password to get going. 2014-04-05 21:39:05 +02:00
Sunil Mohan Adapa 2d39638020 Dont use exec() in plugin system 2014-04-05 16:08:41 +09:00
Sunil Mohan Adapa c0ea7ee298 Dont use exec() in system/wan module
Also make the form submission actually work by adding hidden form
value and '/' at the end of form submission URL.
2014-04-05 15:38:19 +09:00
Sunil Mohan Adapa 2079b3639a Dont use exec for importing templates 2014-04-05 14:52:51 +09:00
Sunil Mohan Adapa afe345d01b Cleanup system configuration module
- Add license header
- Fix pylint, pep8 and pyflakes warnings and errors
- Fix incorrect use of gettext._()
- Don't store hostname and timezone in Plinth storage. Instead use
  values from probing the system
- Don't use exec()
- Other minor refactorings
2014-04-05 14:42:18 +09:00
Sunil Mohan Adapa c3a8f3cb61 Ignore .py.bak files created when compiling templates 2014-04-05 14:22:28 +09:00
Sunil Mohan Adapa 77ac199348 Remove dependency on improperly used and unmaintained contract module
- contract module has not see a release since 2010
- Corresponding PEP has been deferred
- python-contract module in Debian is orphaned
- We are only using contract module in one method of one module
- That can be replaced with one line of check instead of depending on an
  entire module
- The code using contract module does not work
- There is already replacement one line code that is actually working
2014-04-05 10:10:22 +05:30