3
0
Fork 0

Compare commits

..

2 commits

3 changed files with 9 additions and 3 deletions

View file

@ -5,6 +5,12 @@ All notable changes to WuttJamaican will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## v0.22.1 (2025-08-09)
### Fix
- delay import for orm, in case SA not installed
## v0.22.0 (2025-08-09) ## v0.22.0 (2025-08-09)
### Feat ### Feat

View file

@ -6,7 +6,7 @@ build-backend = "hatchling.build"
[project] [project]
name = "WuttJamaican" name = "WuttJamaican"
version = "0.22.0" version = "0.22.1"
description = "Base package for Wutta Framework" description = "Base package for Wutta Framework"
readme = "README.md" readme = "README.md"
authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}] authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}]

View file

@ -29,8 +29,6 @@ This defines the default :term:`auth handler`.
import secrets import secrets
import uuid as _uuid import uuid as _uuid
from sqlalchemy import orm
from wuttjamaican.app import GenericHandler from wuttjamaican.app import GenericHandler
@ -110,6 +108,8 @@ class AuthHandler(GenericHandler):
:returns: :class:`~wuttjamaican.db.model.auth.User` instance, :returns: :class:`~wuttjamaican.db.model.auth.User` instance,
or ``None``. or ``None``.
""" """
from sqlalchemy import orm
model = self.app.model model = self.app.model
try: try: