|
Last change
on this file since 1152 was
126,
checked in by fenix, 20 years ago
|
|
add docstring to all classes and functions
|
|
File size:
371 bytes
|
| Line | |
|---|
| 1 | ## Script (Python) "getAudioFiles" |
|---|
| 2 | ##bind container=container |
|---|
| 3 | ##bind context=context |
|---|
| 4 | ##bind namespace= |
|---|
| 5 | ##bind script=script |
|---|
| 6 | ##bind subpath=traverse_subpath |
|---|
| 7 | ##parameters=etype |
|---|
| 8 | ##title= |
|---|
| 9 | ## |
|---|
| 10 | |
|---|
| 11 | template_id = etype.lower()+'_item' |
|---|
| 12 | template = getattr(context, template_id, None) |
|---|
| 13 | if template: |
|---|
| 14 | return template.macros['item'] |
|---|
| 15 | else: |
|---|
| 16 | return context.default_item.macros['item'] |
|---|
Note: See
TracBrowser
for help on using the repository browser.