Last change
on this file since 16589 was
4032,
checked in by Henrik Bettermann, 16 years ago
|
enhance security
|
-
Property svn:keywords set to
Id
|
File size:
572 bytes
|
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 4032 2009-03-27 07:05:02Z henrik $ |
---|
| 11 | """ |
---|
| 12 | """ |
---|
| 13 | try: |
---|
| 14 | from Products.zdb import set_trace |
---|
| 15 | except: |
---|
| 16 | def set_trace(): |
---|
| 17 | pass |
---|
[4032] | 18 | |
---|
| 19 | mtool = context.portal_membership |
---|
| 20 | |
---|
| 21 | if mtool.isAnonymousUser(): |
---|
| 22 | return None |
---|
| 23 | |
---|
[2335] | 24 | if path is None and traverse_subpath: |
---|
[2675] | 25 | traverse_subpath.insert(0,traverse_subpath[0][0]) |
---|
[2335] | 26 | path = "/".join(traverse_subpath) |
---|
[2696] | 27 | |
---|
| 28 | |
---|
[2114] | 29 | return context.waeup_tool.showFsPicture(path) |
---|
[2698] | 30 | |
---|
Note: See
TracBrowser for help on using the repository browser.