Rev | Line | |
---|
[2114] | 1 | ## Script (Python) "viewimage" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
[2335] | 7 | ##parameters=path=None |
---|
[2114] | 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | # $Id: viewimage.py 2696 2007-11-17 18:25:29Z henrik $ |
---|
| 11 | """ |
---|
| 12 | """ |
---|
| 13 | try: |
---|
| 14 | from Products.zdb import set_trace |
---|
| 15 | except: |
---|
| 16 | def set_trace(): |
---|
| 17 | pass |
---|
[2696] | 18 | set_trace() |
---|
[2335] | 19 | if path is None and traverse_subpath: |
---|
[2675] | 20 | traverse_subpath.insert(0,traverse_subpath[0][0]) |
---|
[2335] | 21 | path = "/".join(traverse_subpath) |
---|
[2696] | 22 | |
---|
| 23 | |
---|
[2114] | 24 | return context.waeup_tool.showFsPicture(path) |
---|
| 25 | #import logging |
---|
| 26 | #logger = logging.getLogger('Skins.viewimage') |
---|
Note: See
TracBrowser for help on using the repository browser.