Show More
@@ -341,9 +341,7 b' class templatekeyword(_templateregistrar' | |||||
341 | The first string argument is used also in online help. |
|
341 | The first string argument is used also in online help. | |
342 |
|
342 | |||
343 | Optional argument 'requires' should be a collection of resource names |
|
343 | Optional argument 'requires' should be a collection of resource names | |
344 |
which the template keyword depends on. |
|
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. |
|
|||
347 |
|
345 | |||
348 | 'templatekeyword' instance in example above can be used to |
|
346 | 'templatekeyword' instance in example above can be used to | |
349 | decorate multiple functions. |
|
347 | decorate multiple functions. | |
@@ -355,7 +353,7 b' class templatekeyword(_templateregistrar' | |||||
355 | Otherwise, explicit 'templatekw.loadkeyword()' is needed. |
|
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 | func._requires = requires |
|
357 | func._requires = requires | |
360 |
|
358 | |||
361 | class templatefilter(_templateregistrarbase): |
|
359 | class templatefilter(_templateregistrarbase): |
General Comments 0
You need to be logged in to leave comments.
Login now