Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5a6c89589e | ||
![]() |
785b32c5f0 | ||
![]() |
d1d181bb43 | ||
![]() |
253791134a |
|
@ -5,6 +5,13 @@ 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
|
||||
|
|
|
@ -6,7 +6,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "rattail-nationbuilder"
|
||||
version = "0.3.3"
|
||||
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]
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue