-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tethys Async Websocket Consumer with Permission Checks (#1012)
* initial consumerbase class * new TethysAsyncWebsocketConsumer class with stubbed methods for implementation also stubbed out other custom methods just in case they are needed in the future * added tests and stubbed out methods for future development * updated docs to use new method * linted code and ran black formatter * initial restructure of authenticated websocket consumer not uses the decorator for permissions added additional args for login_required and permissions_use_or * cleaned up code and moved functions * cleaned up manual copying of class methods * more small code changes * updated docs * removed old permissions property for the docs example * black formatted and linted code * updated tests * added another permission example to the consumer decorator * updated examples in the controller decorator docstring * mocked channels db for docs * cleaned and simplified update_decorated_websocket_consumer_class code * removed unused import
- Loading branch information
Showing
127 changed files
with
754 additions
and
28 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
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
Oops, something went wrong.