Last change
on this file since 7657 was
4032,
checked in by Henrik Bettermann, 16 years ago
|
enhance security
|
-
Property svn:keywords set to
Id
|
File size:
572 bytes
|
Line | |
---|
1 | ## Script (Python) "viewimage" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters=path=None |
---|
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 |
---|
18 | |
---|
19 | mtool = context.portal_membership |
---|
20 | |
---|
21 | if mtool.isAnonymousUser(): |
---|
22 | return None |
---|
23 | |
---|
24 | if path is None and traverse_subpath: |
---|
25 | traverse_subpath.insert(0,traverse_subpath[0][0]) |
---|
26 | path = "/".join(traverse_subpath) |
---|
27 | |
---|
28 | |
---|
29 | return context.waeup_tool.showFsPicture(path) |
---|
30 | |
---|
Note: See
TracBrowser for help on using the repository browser.