Show More
@@ -341,9 +341,7 b' class templatekeyword(_templateregistrar' | |||
|
341 | 341 | The first string argument is used also in online help. |
|
342 | 342 | |
|
343 | 343 | Optional argument 'requires' should be a collection of resource names |
|
344 |
which the template keyword depends on. |
|
|
345 | switch to the new API. If 'requires' is unspecified, all template | |
|
346 | keywords and resources are expanded to the function arguments. | |
|
344 | which the template keyword depends on. | |
|
347 | 345 | |
|
348 | 346 | 'templatekeyword' instance in example above can be used to |
|
349 | 347 | decorate multiple functions. |
@@ -355,7 +353,7 b' class templatekeyword(_templateregistrar' | |||
|
355 | 353 | Otherwise, explicit 'templatekw.loadkeyword()' is needed. |
|
356 | 354 | """ |
|
357 | 355 | |
|
358 |
def _extrasetup(self, name, func, requires= |
|
|
356 | def _extrasetup(self, name, func, requires=()): | |
|
359 | 357 | func._requires = requires |
|
360 | 358 | |
|
361 | 359 | class templatefilter(_templateregistrarbase): |
General Comments 0
You need to be logged in to leave comments.
Login now