12 lines
335 B
Python
12 lines
335 B
Python
from __future__ import unicode_literals
|
|
|
|
tools = {}
|
|
|
|
|
|
def register_maintenance_links(links, title=None, namespace=None):
|
|
namespace_dict = tools.get(namespace, {'title': None, 'links': []})
|
|
namespace_dict['title'] = title
|
|
for link in links:
|
|
namespace_dict['links'].append(link)
|
|
tools[namespace] = namespace_dict
|