mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
move away from importing all of util
This commit is contained in:
parent
79de884549
commit
46c45f4e21
@ -2,6 +2,7 @@ import cherrypy
|
||||
from modules.auth import require
|
||||
import cfg
|
||||
from util import *
|
||||
import util as u
|
||||
|
||||
class PluginMount(type):
|
||||
"""See http://martyalchin.com/2008/jan/10/simple-plugin-framework/ for documentation"""
|
||||
@ -72,7 +73,7 @@ class PagePlugin:
|
||||
cfg.log.info("Registering page: %s" % url)
|
||||
exec "cfg.html_root.%s = self" % (url)
|
||||
def fill_template(self, *args, **kwargs):
|
||||
return page_template(*args, **kwargs)
|
||||
return u.page_template(*args, **kwargs)
|
||||
|
||||
def forms(self, url, *args, **kwargs):
|
||||
for form in cfg.forms:
|
||||
@ -152,7 +153,7 @@ class FormPlugin():
|
||||
except AttributeError:
|
||||
pass
|
||||
cfg.log("%%%%%%%%%%% %s" % kwargs)
|
||||
return page_template(*args, **kwargs)
|
||||
return u.page_template(*args, **kwargs)
|
||||
|
||||
class UserStoreModule:
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user