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)
def cached(): return get_nb_comments(self.recid, count_deleted)