[CMF-checkins] CVS: CMF - aboveInThread.py:1.1 aboveInThread.dtml:NONE

Jens Vagelpohl jens@digicool.com
Mon, 18 Jun 2001 17:41:45 -0400 (EDT)


Update of /cvs-repository/CMF/CMFDefault/skins/content
In directory korak.digicool.com:/tmp/cvs-serv21438

Added Files:
	aboveInThread.py 
Removed Files:
	aboveInThread.dtml 
Log Message:
Last form handler from the content skin that begged to become a python script



--- Added File aboveInThread.py in package CMF ---
## Script (Python) "aboveInThread"
##parameters=
##title=Discussion parent breadcrumbs

breadcrumbs = ''
parents = context.parentsInThread()

if parents:
    breadcrumbs = 'Above in thread: '
    for parent in parents:
        p_str = '<a href="%s">%s</a>' % (parent.absolute_url(), parent.Title())
        breadcrumbs = breadcrumbs + p_str + ':'

    breadcrumbs = breadcrumbs[:-1] + '<p>'
        
return breadcrumbs


--- Removed file aboveInThread.dtml from package CMF --