Compare commits

...

6 commits

Author SHA1 Message Date
Lance Edgar 5a6c89589e docs: update project links, kallithea -> forgejo 2024-09-14 12:10:25 -05:00
Lance Edgar 785b32c5f0 bump: version 0.3.3 → 0.3.4 2024-08-19 12:03:21 -05:00
Lance Edgar d1d181bb43 fix: avoid deprecated method in app provider 2024-08-19 09:55:54 -05:00
Lance Edgar 253791134a fix: avoid deprecated base class for config extension 2024-08-19 09:42:17 -05:00
Lance Edgar edbe306bdf bump: version 0.3.2 → 0.3.3 2024-08-19 09:38:45 -05:00
Lance Edgar dfe820455b fix: avoid deprecated import for parse_list() 2024-08-14 11:16:28 -05:00
5 changed files with 26 additions and 12 deletions

View file

@ -5,6 +5,19 @@ All notable changes to rattail-nationbuilder will be documented in this file.
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).
## v0.3.4 (2024-08-19)
### Fix
- avoid deprecated method in app provider
- avoid deprecated base class for config extension
## v0.3.3 (2024-08-19)
### Fix
- avoid deprecated import for `parse_list()`
## v0.3.2 (2024-08-13)
### Fix

View file

@ -6,7 +6,7 @@ build-backend = "hatchling.build"
[project]
name = "rattail-nationbuilder"
version = "0.3.2"
version = "0.3.4"
description = "Rattail integration package for NationBuilder"
readme = "README.md"
authors = [{name = "Lance Edgar", email = "lance@edbob.org"}]
@ -45,8 +45,8 @@ rattail_nationbuilder = "rattail_nationbuilder.app:NationBuilderProvider"
[project.urls]
Homepage = "https://rattailproject.org"
Repository = "https://kallithea.rattailproject.org/rattail-project/rattail-nationbuilder"
Changelog = "https://kallithea.rattailproject.org/rattail-project/rattail-nationbuilder/files/master/CHANGELOG.md"
Repository = "https://forgejo.wuttaproject.org/rattail/rattail-nationbuilder"
Changelog = "https://forgejo.wuttaproject.org/rattail/rattail-nationbuilder/src/branch/master/CHANGELOG.md"
[tool.commitizen]

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar
# Copyright © 2010-2024 Lance Edgar
#
# This file is part of Rattail.
#
@ -36,7 +36,7 @@ class NationBuilderProvider(RattailProvider):
if 'nationbuilder' not in self.handlers:
spec = self.config.get('rattail', 'nationbuilder.handler',
default='rattail_nationbuilder.app:NationBuilderHandler')
factory = self.load_object(spec)
factory = self.app.load_object(spec)
self.handlers['nationbuilder'] = factory(self.config, **kwargs)
return self.handlers['nationbuilder']

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar
# Copyright © 2010-2024 Lance Edgar
#
# This file is part of Rattail.
#
@ -24,10 +24,10 @@
Config Extension
"""
from rattail.config import ConfigExtension
from wuttjamaican.conf import WuttaConfigExtension
class RattailNationBuilderExtension(ConfigExtension):
class RattailNationBuilderExtension(WuttaConfigExtension):
"""
Config extension for rattail-nationbuilder
"""
@ -36,7 +36,7 @@ class RattailNationBuilderExtension(ConfigExtension):
def configure(self, config):
# rattail import-nationbuilder
config.setdefault('rattail.importing', 'to_rattail.from_nationbulder.import.default_handler',
config.setdefault('rattail.importing.to_rattail.from_nationbulder.import.default_handler',
'rattail_nationbuilder.importing.nationbuilder:FromNationBuilderToRattail')
config.setdefault('rattail.importing', 'to_rattail.from_nationbuilder.import.default_cmd',
config.setdefault('rattail.importing.to_rattail.from_nationbuilder.import.default_cmd',
'rattail import-nationbuilder')

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar
# Copyright © 2010-2024 Lance Edgar
#
# This file is part of Rattail.
#
@ -27,9 +27,10 @@ NationBuilder cache tables
import sqlalchemy as sa
from sqlalchemy import orm
from wuttjamaican.util import parse_list
from rattail.db import model
from rattail.db.util import normalize_full_name
from rattail.config import parse_list
class NationBuilderCachePerson(model.Base):