mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Use new-style classes everywhere
This commit is contained in:
1 parent
a958798769
commit
ef493ae243
25 files changed
+117
-86
No files matched your search
@@ -4,16 +4,16 @@ from plugin_mount import PagePlugin
|
||||
import cfg
|
||||
import util
|
||||
|
||||
sys_dir = "modules/installed/sys"
|
||||
|
||||
|
||||
class Sys(PagePlugin):
|
||||
order = 10
|
||||
def __init__(self, *args, **kwargs):
|
||||
PagePlugin.__init__(self, *args, **kwargs)
|
||||
|
||||
def __init__(self):
|
||||
super(Sys, self).__init__()
|
||||
|
||||
self.register_page("sys")
|
||||
self.menu = cfg.main_menu.add_item(_("System"), "icon-cog", "/sys", 100)
|
||||
self.menu.add_item(_("Users and Groups"), "icon-user", "/sys/users", 15)
|
||||
self.menu.add_item(_("Users and Groups"), "icon-user", "/sys/users", 15)
|
||||
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
|
||||
Reference in new issue
Block a user