Skip to content

Comments

Move ZCONST into zconst to make it importable#314

Merged
sveinse merged 3 commits intocustom-components:masterfrom
sveinse:feature-move-zconst
Aug 31, 2025
Merged

Move ZCONST into zconst to make it importable#314
sveinse merged 3 commits intocustom-components:masterfrom
sveinse:feature-move-zconst

Conversation

@sveinse
Copy link
Collaborator

@sveinse sveinse commented Aug 31, 2025

  • Move ZCONST initialization from api to zconst
  • Use ZCONST in Redactor instead of class argument

By moving ZCONST initialization from api.py to const.py, it will be easier to use ZCONST from anywhere in the code. One example is what's included in the PR: The redact.py can now use ZCONST directly and doesn't need to get the data passed on via the class instance initialization.

* Move ZCONST initialization from api to const
* Use ZCONST in Redactor instead of class argument
@sveinse sveinse added this to the v0.8.3 milestone Aug 31, 2025
@sveinse sveinse changed the title Move ZCONST into const to make it importable Move ZCONST into zconst to make it importable Aug 31, 2025
@sveinse sveinse merged commit d2fb87f into custom-components:master Aug 31, 2025
4 checks passed
@sveinse sveinse deleted the feature-move-zconst branch August 31, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants