From: <mag...@us...> - 2003-02-21 11:52:28
|
Update of /cvsroot/plone/CMFPlone/skins/plone_scripts In directory sc8-pr-cvs1:/tmp/cvs-serv27633/skins/plone_scripts Modified Files: setup_talkback_tree.py Log Message: DOS ^M Index: setup_talkback_tree.py =================================================================== RCS file: /cvsroot/plone/CMFPlone/skins/plone_scripts/setup_talkback_tree.py,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** setup_talkback_tree.py 21 Feb 2002 16:09:33 -0000 1.1.1.1 --- setup_talkback_tree.py 21 Feb 2003 11:52:22 -0000 1.2 *************** *** 1,19 **** ! ## Script (Python) "setup_talkback_tree" ! ##bind container=container ! ##bind context=context ! ##bind namespace= ! ##bind script=script ! ##bind subpath=traverse_subpath ! ##parameters=tree_root ! ##title=Standard Tree ! ## ! from ZTUtils import SimpleTreeMaker ! ! tm = SimpleTreeMaker('tb_tree') ! def getKids(object): ! return object.talkback.getReplies() ! tm.setChildAccess(function=getKids) ! ! tree, rows = tm.cookieTree(tree_root) ! rows.pop(0) ! return {'root': tree, 'rows': rows} --- 1,19 ---- ! ## Script (Python) "setup_talkback_tree" ! ##bind container=container ! ##bind context=context ! ##bind namespace= ! ##bind script=script ! ##bind subpath=traverse_subpath ! ##parameters=tree_root ! ##title=Standard Tree ! ## ! from ZTUtils import SimpleTreeMaker ! ! tm = SimpleTreeMaker('tb_tree') ! def getKids(object): ! return object.talkback.getReplies() ! tm.setChildAccess(function=getKids) ! ! tree, rows = tm.cookieTree(tree_root) ! rows.pop(0) ! return {'root': tree, 'rows': rows} |