Ejemplo n.º 1
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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
 def cached():
     return get_nb_comments(self.recid, count_deleted)