mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Remove unused Message utility class
This commit is contained in:
parent
998b515fed
commit
a958798769
6
util.py
6
util.py
@ -55,12 +55,6 @@ def find_keys(dic, val):
|
|||||||
"""return the key of dictionary dic given the value"""
|
"""return the key of dictionary dic given the value"""
|
||||||
return [k for k, v in dic.iteritems() if v == val]
|
return [k for k, v in dic.iteritems() if v == val]
|
||||||
|
|
||||||
class Message():
|
|
||||||
def __init__(self, msg=''):
|
|
||||||
self.text = msg
|
|
||||||
def add(self, text):
|
|
||||||
self.text += "<br />%s" % text
|
|
||||||
|
|
||||||
|
|
||||||
def render_template(template='login_nav', **kwargs):
|
def render_template(template='login_nav', **kwargs):
|
||||||
for key in ['sidebar_left', 'sidebar_right', 'main', 'js', 'nav', 'css',
|
for key in ['sidebar_left', 'sidebar_right', 'main', 'js', 'nav', 'css',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user