|
19 | 19 |
|
20 | 20 | from urlparse import urlsplit
|
21 | 21 |
|
22 |
| -from flask import current_app, Blueprint, render_template, request, redirect, \ |
23 |
| - flash, jsonify, url_for, g, abort |
24 |
| -from flask_login import login_required, current_user |
25 |
| -from sqlalchemy.event import listen |
| 22 | +from flask import Blueprint, abort, current_app, flash, g, jsonify, redirect, \ |
| 23 | + render_template, request, url_for |
| 24 | + |
| 25 | +from flask_login import current_user, login_required |
26 | 26 |
|
27 | 27 | from invenio.base.globals import cfg
|
28 | 28 | from invenio.base.i18n import _
|
29 | 29 | from invenio.modules.comments.models import CmtRECORDCOMMENT
|
30 | 30 | from invenio.modules.comments.views import blueprint as comments_blueprint
|
31 | 31 | from invenio.modules.records.views import request_record
|
32 | 32 |
|
| 33 | +from sqlalchemy.event import listen |
| 34 | + |
33 | 35 | from .api import add_annotation, get_annotations, get_count
|
34 | 36 | from .forms import WebPageAnnotationForm, WebPageAnnotationFormAttachments
|
35 |
| -from .noteutils import get_note_title, prepare_notes, note_is_collapsed, \ |
36 |
| - get_original_comment |
| 37 | +from .noteutils import get_note_title, get_original_comment, \ |
| 38 | + note_is_collapsed, prepare_notes |
| 39 | + |
37 | 40 | from .receivers import extract_notes
|
38 | 41 |
|
39 | 42 | blueprint = Blueprint('annotations',
|
|
0 commit comments