Last change
on this file since 1 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
File size:
386 bytes
|
Rev | Line | |
---|
[1] | 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.