Ejemplo n.º 1
0
def create_abstract_comment(abstract, comment_data):
    comment = AbstractComment(user=session.user)
    comment.populate_from_dict(comment_data)
    comment.abstract = abstract
    db.session.flush()
    logger.info("Abstract %s received a comment from %s", abstract, session.user)
    abstract.log(EventLogRealm.reviewing, EventLogKind.positive, 'Abstracts',
                 'Abstract {} received a comment'.format(abstract.verbose_title), session.user)
Ejemplo n.º 2
0
def create_abstract_comment(abstract, comment_data):
    comment = AbstractComment(user=session.user)
    comment.populate_from_dict(comment_data)
    comment.abstract = abstract
    db.session.flush()
    logger.info("Abstract %s received a comment from %s", abstract, session.user)
    abstract.event.log(EventLogRealm.reviewing, EventLogKind.positive, 'Abstracts',
                       'Abstract {} received a comment'.format(abstract.verbose_title),
                       session.user)