def __get_wiki_review(email_cnt, idx):
    '''
    Review for wikis.
    '''
    recent_posts = MWiki.query_recent_edited(tools.timestamp() - TIME_LIMIT, kind='2')
    for recent_post in recent_posts:
        hist_rec = MWikiHist.get_last(recent_post.uid)
        if hist_rec:
            foo_str = '''
                    <tr><td>{0}</td><td>{1}</td><td class="diff_chg">Edit</td><td>{2}</td>
                    <td><a href="{3}">{3}</a></td></tr>
                    '''.format(idx, recent_post.user_name, recent_post.title,
                               os.path.join(SITE_CFG['site_url'], 'page', recent_post.uid))
            email_cnt = email_cnt + foo_str
        else:
            foo_str = '''
                    <tr><td>{0}</td><td>{1}</td><td class="diff_add">New </td><td>{2}</td>
                    <td><a href="{3}">{3}</a></td></tr>
                    '''.format(idx, recent_post.user_name, recent_post.title,
                               os.path.join(SITE_CFG['site_url'], 'page', recent_post.uid))
            email_cnt = email_cnt + foo_str
        idx = idx + 1
    email_cnt = email_cnt + '</table>'
    return email_cnt, idx
def __get_wiki_review ( email_cnt , idx ) : recent_posts = MWiki . query_recent_edited ( tools . timestamp ( ) - TIME_LIMIT , kind = '2' ) for recent_post in recent_posts : hist_rec = MWikiHist . get_last ( recent_post . uid ) if hist_rec : foo_str = '''
                    <tr><td>{0}</td><td>{1}</td><td class="diff_chg">Edit</td><td>{2}</td>
                    <td><a href="{3}">{3}</a></td></tr>
                    ''' . format ( idx , recent_post . user_name , recent_post . title , os . path . join ( SITE_CFG [ 'site_url' ] , 'page' , recent_post . uid ) ) email_cnt = email_cnt + foo_str else : foo_str = '''
                    <tr><td>{0}</td><td>{1}</td><td class="diff_add">New </td><td>{2}</td>
                    <td><a href="{3}">{3}</a></td></tr>
                    ''' . format ( idx , recent_post . user_name , recent_post . title , os . path . join ( SITE_CFG [ 'site_url' ] , 'page' , recent_post . uid ) ) email_cnt = email_cnt + foo_str idx = idx + 1 email_cnt = email_cnt + '</table>' return email_cnt , idx
Review for wikis.