Renamed the "accounting.utils.next_url" module to "accounting.utils.next_uri".

This commit is contained in:
依瑪貓 2023-02-20 08:19:10 +08:00
parent 330a71ebf2
commit a73e3204b9
5 changed files with 6 additions and 6 deletions

View File

@ -73,7 +73,7 @@ def init_app(app: Flask, user_utils: AbstractUserUtils,
from . import currency
currency.init_app(app, bp)
from .utils import next_url
next_url.init_app(bp)
from .utils import next_uri
next_uri.init_app(bp)
app.register_blueprint(bp)

View File

@ -26,7 +26,7 @@ from werkzeug.datastructures import ImmutableMultiDict
from accounting import db
from accounting.locale import lazy_gettext
from accounting.models import Account, BaseAccount
from accounting.utils.next_url import inherit_next, or_next
from accounting.utils.next_uri import inherit_next, or_next
from accounting.utils.pagination import Pagination
from accounting.utils.permission import can_view, has_permission, can_edit
from .forms import AccountForm, sort_accounts_in, AccountReorderForm

View File

@ -26,7 +26,7 @@ from werkzeug.datastructures import ImmutableMultiDict
from accounting import db
from accounting.locale import lazy_gettext
from accounting.models import Currency
from accounting.utils.next_url import inherit_next, or_next
from accounting.utils.next_uri import inherit_next, or_next
from accounting.utils.pagination import Pagination
from accounting.utils.permission import has_permission, can_view, can_edit
from .forms import CurrencyForm

View File

@ -14,7 +14,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The utilities to handle the next URL.
"""The utilities to handle the next URI.
This module should not import any other module from the application.

View File

@ -23,7 +23,7 @@ from urllib.parse import quote_plus
import httpx
from flask import Flask, request
from accounting.utils.next_url import append_next, inherit_next, or_next
from accounting.utils.next_uri import append_next, inherit_next, or_next
from accounting.utils.pagination import Pagination, DEFAULT_PAGE_SIZE
from accounting.utils.query import parse_query_keywords
from test_site import create_app, csrf