diff --git a/lib/hawat/base.py b/lib/hawat/base.py index eca6dee358cc734f388bc857d5a56addf9f5d1e8..d81f0577382e035cbaa37f79749310497f010aa8 100644 --- a/lib/hawat/base.py +++ b/lib/hawat/base.py @@ -35,7 +35,7 @@ Module contents * :py:class:`SimpleView` * :py:class:`SearchView` * :py:class:`ItemListView` - * :py:class:`HawatItemShowView` + * :py:class:`ItemShowView` * :py:class:`HawatItemActionView` * :py:class:`HawatItemCreateView` @@ -1426,7 +1426,7 @@ class ItemListView(RenderableView): # pylint: disable=locally-disabled,abstract return self.generate_response() -class HawatItemShowView(RenderableView): # pylint: disable=locally-disabled,abstract-method +class ItemShowView(RenderableView): # pylint: disable=locally-disabled,abstract-method """ Base class for item *show* views. These views expect unique item identifier as parameter and are supposed to display specific information about single diff --git a/lib/hawat/blueprints/changelogs/__init__.py b/lib/hawat/blueprints/changelogs/__init__.py index c40300b5721e5e0d1f1c8e73fe546ed6e89b916b..8e228d677dfb6d72483a50610ed52372ea9730ad 100644 --- a/lib/hawat/blueprints/changelogs/__init__.py +++ b/lib/hawat/blueprints/changelogs/__init__.py @@ -33,7 +33,7 @@ from mentat.datatype.sqldb import ItemChangeLogModel import hawat.acl from hawat.base import HTMLMixin, SQLAlchemyMixin, SearchView,\ - HawatItemShowView, HawatBlueprint + ItemShowView, HawatBlueprint from hawat.blueprints.changelogs.forms import ItemChangeLogSearchForm @@ -151,7 +151,7 @@ class SearchView(HTMLMixin, SQLAlchemyMixin, SearchView): return context_action_menu -class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): +class ShowView(HTMLMixin, SQLAlchemyMixin, ItemShowView): """ Detailed network record view. """ diff --git a/lib/hawat/blueprints/events/__init__.py b/lib/hawat/blueprints/events/__init__.py index c96dea68df3ff82a66624a3a5d62eaf953fd462e..f53e057dcc78563436d760302dfbdfe7c0c3fe65 100644 --- a/lib/hawat/blueprints/events/__init__.py +++ b/lib/hawat/blueprints/events/__init__.py @@ -541,7 +541,7 @@ import hawat.const import hawat.events import hawat.acl from hawat.base import HTMLMixin, PsycopgMixin, AJAXMixin, SQLAlchemyMixin,\ - BaseView, SearchView, HawatItemShowView, SimpleView, HawatBlueprint,\ + BaseView, SearchView, ItemShowView, SimpleView, HawatBlueprint,\ URLParamsBuilder from hawat.blueprints.events.forms import SimpleEventSearchForm, EventDashboardForm @@ -687,7 +687,7 @@ class APISearchView(AJAXMixin, AbstractSearchView): # pylint: disable=locally-d return 'apisearch' -class AbstractShowView(PsycopgMixin, HawatItemShowView): # pylint: disable=locally-disabled,abstract-method +class AbstractShowView(PsycopgMixin, ItemShowView): # pylint: disable=locally-disabled,abstract-method """ Base class responsible for fetching and presenting single `IDEA <https://idea.cesnet.cz/en/index>`__ message. diff --git a/lib/hawat/blueprints/filters/__init__.py b/lib/hawat/blueprints/filters/__init__.py index 5f2aaf1e3d9f10517b6cc8112f311d28b6dedbed..726ab5a9b2993a07e3ab18b6d9f3b5fa3f2074e1 100644 --- a/lib/hawat/blueprints/filters/__init__.py +++ b/lib/hawat/blueprints/filters/__init__.py @@ -56,7 +56,7 @@ import hawat.const import hawat.db import hawat.events from hawat.base import HTMLMixin, SQLAlchemyMixin, ItemListView,\ - HawatItemShowView, HawatItemCreateView, HawatItemCreateForView, HawatItemUpdateView,\ + ItemShowView, HawatItemCreateView, HawatItemCreateForView, HawatItemUpdateView,\ HawatItemEnableView, HawatItemDisableView, HawatItemDeleteView, RenderableView, HawatBlueprint from hawat.blueprints.filters.forms import BaseFilterForm, AdminFilterForm, PlaygroundFilterForm @@ -218,7 +218,7 @@ class ListView(HTMLMixin, SQLAlchemyMixin, ItemListView): return action_menu -class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): +class ShowView(HTMLMixin, SQLAlchemyMixin, ItemShowView): """ Detailed reporting filter view. """ diff --git a/lib/hawat/blueprints/groups/__init__.py b/lib/hawat/blueprints/groups/__init__.py index df1e5a437ec15ac417be531ef9ca8c90e81410b8..da2816f80497202b43a77a4021816352cca92532 100644 --- a/lib/hawat/blueprints/groups/__init__.py +++ b/lib/hawat/blueprints/groups/__init__.py @@ -50,7 +50,7 @@ import hawat.acl import hawat.db import hawat.menu from hawat.base import HTMLMixin, SQLAlchemyMixin, ItemListView,\ - HawatItemShowView, HawatItemCreateView, HawatItemUpdateView, HawatItemEnableView,\ + ItemShowView, HawatItemCreateView, HawatItemUpdateView, HawatItemEnableView,\ HawatItemDisableView, HawatItemDeleteView, HawatBlueprint, URLParamsBuilder from hawat.blueprints.groups.forms import CreateGroupForm, UpdateGroupForm,\ @@ -141,7 +141,7 @@ class ListView(HTMLMixin, SQLAlchemyMixin, ItemListView): return action_menu -class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): +class ShowView(HTMLMixin, SQLAlchemyMixin, ItemShowView): """ Detailed group view. """ @@ -335,7 +335,7 @@ class ShowByNameView(ShowView): # pylint: disable=locally-disabled,too-many-anc @property def search_by(self): """ - *Interface implementation* of :py:func:`hawat.base.HawatItemShowView.search_by`. + *Interface implementation* of :py:func:`hawat.base.ItemShowView.search_by`. """ return self.dbmodel.name diff --git a/lib/hawat/blueprints/networks/__init__.py b/lib/hawat/blueprints/networks/__init__.py index fb2f9c8e579005caf2355a656b9e3d2664bc53c1..0e127363dedce48b52d6b2cc496447f0b485b8ff 100644 --- a/lib/hawat/blueprints/networks/__init__.py +++ b/lib/hawat/blueprints/networks/__init__.py @@ -43,7 +43,7 @@ from mentat.datatype.sqldb import NetworkModel, GroupModel, ItemChangeLogModel import hawat.base import hawat.db from hawat.base import HTMLMixin, SQLAlchemyMixin, ItemListView,\ - HawatItemShowView, HawatItemCreateView, HawatItemCreateForView, HawatItemUpdateView,\ + ItemShowView, HawatItemCreateView, HawatItemCreateForView, HawatItemUpdateView,\ HawatItemDeleteView, HawatBlueprint from hawat.blueprints.networks.forms import BaseNetworkForm, AdminNetworkForm @@ -119,7 +119,7 @@ class ListView(HTMLMixin, SQLAlchemyMixin, ItemListView): return action_menu -class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): +class ShowView(HTMLMixin, SQLAlchemyMixin, ItemShowView): """ Detailed network record view. """ diff --git a/lib/hawat/blueprints/reports/__init__.py b/lib/hawat/blueprints/reports/__init__.py index 29880d59783dc2557e79ec068a93e06ff1e9617e..673bb41b9ca3fd860d87a2ebecc54664f72fb89c 100644 --- a/lib/hawat/blueprints/reports/__init__.py +++ b/lib/hawat/blueprints/reports/__init__.py @@ -43,7 +43,7 @@ from mentat.const import tr_ import hawat.menu import hawat.acl from hawat.base import HTMLMixin, SQLAlchemyMixin, SearchView,\ - HawatItemShowView, HawatItemDeleteView, FileIdView, HawatBlueprint,\ + ItemShowView, HawatItemDeleteView, FileIdView, HawatBlueprint,\ URLParamsBuilder from hawat.blueprints.reports.forms import EventReportSearchForm, ReportingDashboardForm @@ -172,7 +172,7 @@ class SearchView(HTMLMixin, SQLAlchemyMixin, SearchView): # pylint: disable=loc ) -class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): +class ShowView(HTMLMixin, SQLAlchemyMixin, ItemShowView): """ Detailed report view. """ @@ -213,7 +213,7 @@ class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): @classmethod def authorize_item_action(cls, item): """ - *Interface implementation* of :py:func:`hawat.base.HawatItemShowView.authorize_item_action`. + *Interface implementation* of :py:func:`hawat.base.ItemShowView.authorize_item_action`. """ permission_mm = flask_principal.Permission( hawat.acl.MembershipNeed(item.group.id), @@ -224,7 +224,7 @@ class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): @classmethod def get_breadcrumbs_menu(cls): # pylint: disable=locally-disabled,unused-argument """ - *Interface implementation* of :py:func:`hawat.base.HawatItemShowView.get_breadcrumbs_menu`. + *Interface implementation* of :py:func:`hawat.base.ItemShowView.get_breadcrumbs_menu`. """ action_menu = hawat.menu.HawatMenu() action_menu.add_entry( @@ -247,7 +247,7 @@ class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): @classmethod def get_action_menu(cls): """ - *Interface implementation* of :py:func:`hawat.base.HawatItemShowView.get_action_menu`. + *Interface implementation* of :py:func:`hawat.base.ItemShowView.get_action_menu`. """ action_menu = hawat.menu.HawatMenu() action_menu.add_entry( @@ -341,7 +341,7 @@ class UnauthShowView(ShowView): # pylint: disable=locally-disabled,too-many-anc @classmethod def authorize_item_action(cls, item): """ - *Interface implementation* of :py:func:`hawat.base.HawatItemShowView.authorize_item_action`. + *Interface implementation* of :py:func:`hawat.base.ItemShowView.authorize_item_action`. """ return True diff --git a/lib/hawat/blueprints/settings_reporting/__init__.py b/lib/hawat/blueprints/settings_reporting/__init__.py index a79d363daf1b8d180d617f4abbd3b2a54073dbf0..27d966dfe230719b93ea9b71d85abea09fa3166b 100644 --- a/lib/hawat/blueprints/settings_reporting/__init__.py +++ b/lib/hawat/blueprints/settings_reporting/__init__.py @@ -40,7 +40,7 @@ import mentat.reports.utils from mentat.datatype.sqldb import SettingsReportingModel, ItemChangeLogModel import hawat.db -from hawat.base import HTMLMixin, SQLAlchemyMixin, HawatItemShowView,\ +from hawat.base import HTMLMixin, SQLAlchemyMixin, ItemShowView,\ HawatItemCreateView, HawatItemUpdateView, HawatBlueprint from hawat.blueprints.settings_reporting.forms import CreateSettingsReportingForm,\ UpdateSettingsReportingForm @@ -50,7 +50,7 @@ BLUEPRINT_NAME = 'settings_reporting' """Name of the blueprint as module global constant.""" -class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): +class ShowView(HTMLMixin, SQLAlchemyMixin, ItemShowView): """ Detailed reporting settings view. """ diff --git a/lib/hawat/blueprints/users/__init__.py b/lib/hawat/blueprints/users/__init__.py index 2dc86d92a0810c21dfaf519b3e20d3f9b44f25de..56fb56a35b22b871b4893fdd1fdbac93b8993cf2 100644 --- a/lib/hawat/blueprints/users/__init__.py +++ b/lib/hawat/blueprints/users/__init__.py @@ -47,7 +47,7 @@ import hawat.const import hawat.db import hawat.acl from hawat.base import HTMLMixin, SQLAlchemyMixin, ItemListView,\ - HawatItemShowView, HawatItemCreateView, HawatItemUpdateView, HawatItemEnableView,\ + ItemShowView, HawatItemCreateView, HawatItemUpdateView, HawatItemEnableView,\ HawatItemDisableView, HawatItemDeleteView, HawatBlueprint from hawat.models.user import GuiUserModel from hawat.blueprints.users.forms import CreateUserAccountForm, UpdateUserAccountForm,\ @@ -137,7 +137,7 @@ class ListView(HTMLMixin, SQLAlchemyMixin, ItemListView): return action_menu -class ShowView(HTMLMixin, SQLAlchemyMixin, HawatItemShowView): +class ShowView(HTMLMixin, SQLAlchemyMixin, ItemShowView): """ Detailed user account view. """