diff options
Diffstat (limited to 'modules/installed/privacy/privacy.py')
-rw-r--r-- | modules/installed/privacy/privacy.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/installed/privacy/privacy.py b/modules/installed/privacy/privacy.py new file mode 100644 index 0000000..b62ba5d --- /dev/null +++ b/modules/installed/privacy/privacy.py @@ -0,0 +1,41 @@ +import cherrypy +from gettext import gettext as _ +from plugin_mount import PagePlugin +from modules.auth import require +import cfg + +class Privacy(PagePlugin): + def __init__(self, *args, **kwargs): + PagePlugin.__init__(self, *args, **kwargs) + self.register_page("privacy") + self.menu = cfg.main_menu.add_item("Privacy Controls", "/privacy", 12) + self.menu.add_item("General Config", "/privacy/config", 10) + self.menu.add_item("Ad Blocking", "/privacy/adblock", 20) + self.menu.add_item("TOR", "/privacy/TOR", 30) + self.menu.add_item("HTTPS Everywhere", "/privacy/https_everywhere", 30) + + @cherrypy.expose + def index(self): + #raise cherrypy.InternalRedirect('/privacy/config') + return self.config() + + @cherrypy.expose + @require() + def config(self): + main=""" + <p>Privacy controls are not yet implemented. This page is a + placeholder and a promise: privacy is important enough that it + is a founding consideration, not an afterthought.</p> + """ + return self.fill_template(title=_("Privacy Control Panel"), main=main, +sidebar_right=_("""<h2>Statement of Principles</h2><p>When we say your +privacy is important, it's not just an empty pleasantry. We really +mean it. Your privacy control panel should give you fine-grained +control over exactly who can access your %s and the +information on it.</p> + +<p>Your personal information should not leave this box without your +knowledge and direction. And if companies or government wants this +information, they have to ask <b>you</b> for it. This gives you a +change to refuse and also tells you who wants your data.</p> +""") % cfg.product_name) |