-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Relaxing Dependency Constraints * Several dependencies in Pipfile.lock have been updated to their latest versions. * Update version and refactor authorization checks The project version is updated to 0.6.1. In addition, updates in authorization checks are made across different Django ledger classes with a focus on enhancing control flow and efficiency. This refactor removes direct superuser checks embedded in business logic with a dedicated `get_superuser_authorization` method, streamlines permission checks, and ensures that special case handling (such as ledger lock, unlock, post and unpost) upholds the principle of early return for easier code maintenance. * Rename 'io_digest' module to 'io_context' and enhance DigestContextMixIn class Renamed the 'io_digest' module to 'io_context' for better clarity and improved the DigestContextMixIn class. The 'IO_DIGEST' and 'IO_DIGEST_EQUITY' attributes have been replaced with 'IO_DIGEST_UNBOUNDED' and 'IO_DIGEST_BOUNDED'. Correspondingly, new context names for these attributes have been created. Also added two properties 'from_datetime' and 'to_datetime' to the class 'IODigestContextManager' in the 'io_context' module. The imports have been updated to reflect the module name change. * Pipfile Update * Update version and refactor authorization checks The project version is updated to 0.6.1. In addition, updates in authorization checks are made across different Django ledger classes with a focus on enhancing control flow and efficiency. This refactor removes direct superuser checks embedded in business logic with a dedicated `get_superuser_authorization` method, streamlines permission checks, and ensures that special case handling (such as ledger lock, unlock, post and unpost) upholds the principle of early return for easier code maintenance. * Rename 'io_digest' module to 'io_context' and enhance DigestContextMixIn class Renamed the 'io_digest' module to 'io_context' for better clarity and improved the DigestContextMixIn class. The 'IO_DIGEST' and 'IO_DIGEST_EQUITY' attributes have been replaced with 'IO_DIGEST_UNBOUNDED' and 'IO_DIGEST_BOUNDED'. Correspondingly, new context names for these attributes have been created. Also added two properties 'from_datetime' and 'to_datetime' to the class 'IODigestContextManager' in the 'io_context' module. The imports have been updated to reflect the module name change.
- Loading branch information
Showing
12 changed files
with
220 additions
and
237 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,9 +6,7 @@ | |
Miguel Sanda <[email protected]> | ||
""" | ||
|
||
from django_ledger.io.io_digest import * | ||
from django_ledger.io.io_context import * | ||
from django_ledger.io.io_middleware import * | ||
from django_ledger.io.ratios import * | ||
from django_ledger.io.roles import * | ||
# due to circular import | ||
# from django_ledger.io.io_library import IOLibrary |
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
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
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