Back to index

plone3  3.1.7
Functions | Variables
getReplyReplies Namespace Reference

Functions

def getRs

Variables

list replies = []
 Script (Python) "getReplyReplies" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=obj title=gets the replies to an object.
 pd = container.portal_discussion

Function Documentation

def getReplyReplies.getRs (   obj,
  replies,
  counter 
)

Definition at line 22 of file getReplyReplies.py.

00022 
00023 def getRs(obj, replies, counter):
00024     rs = pd.getDiscussionFor(obj).getReplies()
00025     if len(rs) > 0:
00026         rs = container.sort_modified_ascending(rs)
00027         for r in rs:
00028             replies.append({'depth':counter, 'object':r})
00029             getRs(r, replies, counter=counter + 1)
00030 
getRs(obj, replies, 0)

Here is the caller graph for this function:


Variable Documentation

getReplyReplies.pd = container.portal_discussion

Definition at line 12 of file getReplyReplies.py.

Script (Python) "getReplyReplies" bind container=container bind context=context bind namespace= bind script=script bind subpath=traverse_subpath parameters=obj title=gets the replies to an object.

Definition at line 11 of file getReplyReplies.py.