def get_number_of_comments(recid):
    """
    Returns number of comments for given record.

    @param recid:

    @return: Number of comments
    """
    from invenio.webcommentadminlib import get_nb_comments
    if recid:
        return get_nb_comments(recid)
Example #2
0
def get_number_of_comments(recid):
    """
    Returns number of comments for given record.

    @param recid:

    @return: Number of comments
    """
    from invenio.webcommentadminlib import get_nb_comments
    if recid:
        return get_nb_comments(recid)
Example #3
0
 def cached():
     return get_nb_comments(self.recid, count_deleted)