Back to index

plone3  3.1.7
Functions | Variables
setup_talkback_tree Namespace Reference

Functions

def getKids

Variables

tuple mtool = getToolByName(script, 'portal_membership')
tuple utool = getToolByName(script, 'portal_url')
tuple portal_url = utool()
tuple tm = SimpleTreeMaker('tb_tree')
tuple is_delete_allowed = mtool.checkPermission(ManagePortal, context)
list items = []
tuple branch = row.branch()
 item = row.object
tuple item_icon = item.getIcon(1)
tuple item_url = item.absolute_url()

Function Documentation

def setup_talkback_tree.getKids (   object)

Definition at line 14 of file setup_talkback_tree.py.

00014 
00015 def getKids(object):
00016     return object.talkback.getReplies()
00017 tm.setChildAccess(function=getKids)
00018 
00019 tree, rows = tm.cookieTree(tree_root)
00020 rows.pop(0)


Variable Documentation

tuple setup_talkback_tree.branch = row.branch()

Definition at line 25 of file setup_talkback_tree.py.

tuple setup_talkback_tree.is_delete_allowed = mtool.checkPermission(ManagePortal, context)

Definition at line 21 of file setup_talkback_tree.py.

Definition at line 26 of file setup_talkback_tree.py.

tuple setup_talkback_tree.item_icon = item.getIcon(1)

Definition at line 27 of file setup_talkback_tree.py.

tuple setup_talkback_tree.item_url = item.absolute_url()

Definition at line 28 of file setup_talkback_tree.py.

Definition at line 23 of file setup_talkback_tree.py.

tuple setup_talkback_tree.mtool = getToolByName(script, 'portal_membership')

Definition at line 9 of file setup_talkback_tree.py.

Definition at line 11 of file setup_talkback_tree.py.

tuple setup_talkback_tree.tm = SimpleTreeMaker('tb_tree')

Definition at line 13 of file setup_talkback_tree.py.

tuple setup_talkback_tree.utool = getToolByName(script, 'portal_url')

Definition at line 10 of file setup_talkback_tree.py.