Home Information - Your home, your data, organized.
Python
Rename ViewType.VIDEO_STREAM to ENTITY_VIDEO_STREAM for clarity
Tony Cassandra7cceec23da35
diff --git a/src/hi/apps/console/views.py b/src/hi/apps/console/views.pyindex ee189218..9d2b2dd9 100644--- a/src/hi/apps/console/views.py+++ b/src/hi/apps/console/views.py@@ -39,7 +39,7 @@ class EntityVideoStreamView( HiGridView ):if not entity.has_video_stream:raise BadRequest( 'Video stream is not currently available.' )- request.view_parameters.view_type = ViewType.VIDEO_STREAM+ request.view_parameters.view_type = ViewType.ENTITY_VIDEO_STREAMrequest.view_parameters.to_session( request )return {'entity': entity,diff --git a/src/hi/enums.py b/src/hi/enums.pyindex 30df5ecc..b65a1ffe 100644--- a/src/hi/enums.py+++ b/src/hi/enums.py@@ -10,7 +10,7 @@ class ViewType(LabeledEnum):LOCATION_VIEW = ('Location View', '' )COLLECTION = ('Collection', '' )CONFIGURATION = ('Configuration', '' )- VIDEO_STREAM = ('Video Stream', '' )+ ENTITY_VIDEO_STREAM = ('Entity Video Stream', '' )@propertydef is_location_view(self):@@ -26,7 +26,7 @@ class ViewType(LabeledEnum):@propertydef is_video_stream(self):- return bool( self == ViewType.VIDEO_STREAM )+ return bool( self == ViewType.ENTITY_VIDEO_STREAM )@propertydef allows_edit_mode(self):