Skip to content

Commit

Permalink
GH-88: Rename child plugin Sysmon to SystemMonitor
Browse files Browse the repository at this point in the history
This prepares for the rename that occurs in task/GH-89.
  • Loading branch information
wesleyboar committed Aug 16, 2021
1 parent 732b99c commit 2b3a1d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taccsite_cms/contrib/taccsite_system_specs/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_render_template(self, context, instance, placeholder):
text_enabled = False
allow_children = True
child_classes = [
'TaccsiteSysmonPlugin',
'TaccsiteSystemMonitorPlugin',
'PicturePlugin',
'Bootstrap4PicturePlugin',
'TaccsiteDataListPlugin',
Expand Down Expand Up @@ -106,7 +106,7 @@ def render(self, context, instance, placeholder):
# To identify child plugins
for plugin_instance in instance.child_plugin_instances:
print(type(plugin_instance).__name__)
if (type(plugin_instance).__name__ == 'TaccsiteSysmon'):
if (type(plugin_instance).__name__ == 'TaccsiteSystemMonitorPlugin'):
context.update({ 'sysmon_plugin': plugin_instance })
if (type(plugin_instance).__name__ == 'Picture' or
type(plugin_instance).__name__ == 'Bootstrap4Picture'):
Expand Down

0 comments on commit 2b3a1d3

Please sign in to comment.