-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace direct Config references with Flask's current_app.config
This commit fixes the "Config is not defined" error by replacing direct references to the Config class with Flask's current_app.config in the entity.py file. This ensures proper access to configuration values through the Flask application context.
- Loading branch information
1 parent
38759f7
commit 0f75eca
Showing
7 changed files
with
31 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
""" | ||
Strategies for handling orphaned entities and proxy relationships. | ||
""" | ||
|
||
from enum import Enum | ||
|
||
|
||
class OrphanHandlingStrategy(Enum): | ||
"""Strategy for handling orphaned entities.""" | ||
|
||
DELETE = "delete" # Automatically delete orphaned entities | ||
ASK = "ask" # Ask the user before deleting orphaned entities | ||
KEEP = "keep" # Keep orphaned entities (do nothing) | ||
|
||
|
||
class ProxyHandlingStrategy(Enum): | ||
"""Strategy for handling proxy entities.""" | ||
|
||
DELETE = "delete" # Automatically delete proxy entities | ||
ASK = "ask" # Ask the user before deleting proxy entities | ||
KEEP = "keep" # Keep proxy entities (do nothing) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.