Show More
@@ -2,6 +2,7 b' from __future__ import absolute_import' | |||||
2 |
|
2 | |||
3 | from .i18n import _ |
|
3 | from .i18n import _ | |
4 | from . import ( |
|
4 | from . import ( | |
|
5 | registrar, | |||
5 | templatekw, |
|
6 | templatekw, | |
6 | util, |
|
7 | util, | |
7 | ) |
|
8 | ) | |
@@ -87,11 +88,11 b' class namespaces(object):' | |||||
87 |
|
88 | |||
88 | # we only generate a template keyword if one does not already exist |
|
89 | # we only generate a template keyword if one does not already exist | |
89 | if namespace.name not in templatekw.keywords: |
|
90 | if namespace.name not in templatekw.keywords: | |
|
91 | templatekeyword = registrar.templatekeyword(templatekw.keywords) | |||
|
92 | @templatekeyword(namespace.name) | |||
90 | def generatekw(**args): |
|
93 | def generatekw(**args): | |
91 | return templatekw.shownames(namespace.name, **args) |
|
94 | return templatekw.shownames(namespace.name, **args) | |
92 |
|
95 | |||
93 | templatekw.keywords[namespace.name] = generatekw |
|
|||
94 |
|
||||
95 | def singlenode(self, repo, name): |
|
96 | def singlenode(self, repo, name): | |
96 | """ |
|
97 | """ | |
97 | Return the 'best' node for the given name. Best means the first node |
|
98 | Return the 'best' node for the given name. Best means the first node |
General Comments 0
You need to be logged in to leave comments.
Login now