## Script (Python) "viewimage" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=path=None ##title= ## # $Id: viewimage.py 4032 2009-03-27 07:05:02Z henrik $ """ """ try: from Products.zdb import set_trace except: def set_trace(): pass mtool = context.portal_membership if mtool.isAnonymousUser(): return None if path is None and traverse_subpath: traverse_subpath.insert(0,traverse_subpath[0][0]) path = "/".join(traverse_subpath) return context.waeup_tool.showFsPicture(path)