Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 86
    • Issues 86
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • aurweb
  • Issues
  • #23
Closed
Open
Issue created May 14, 2021 by Kevin Morris@kevrContributor

[FastAPI] Jinja contextfilter renamed to pass_context

aurweb/util.py:88
  /builds/kevr/aurweb/aurweb/util.py:88: DeprecationWarning: 'contextfilter' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    def account_url(context, user):
aurweb/captcha.py:45
  /builds/kevr/aurweb/aurweb/captcha.py:45: DeprecationWarning: 'contextfilter' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    def captcha_salt_filter(context):
aurweb/captcha.py:52
  /builds/kevr/aurweb/aurweb/captcha.py:52: DeprecationWarning: 'contextfilter' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    def captcha_cmdline_filter(context, salt):
aurweb/l10n.py:92
  /builds/kevr/aurweb/aurweb/l10n.py:92: DeprecationWarning: 'contextfilter' is renamed to 'pass_context', the old name will be removed in Jinja 3.1.
    def tr(context: typing.Any, value: str):
-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================= 134 passed, 4 warnings in 58.68s =======================

This warning specifically talks about the decorator we use to create context-aware filters, like tr. We need to replace all instances of @contextfilter with @pass_context, as far as I can tell.

Edited May 14, 2021 by Kevin Morris
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking