Skip to content

Commit

Permalink
Updated code to fit PEP8 standards
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoveda committed Nov 23, 2019
1 parent fb2d2e7 commit 9ca1ef3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
9 changes: 5 additions & 4 deletions artellapipe/tools/tagger/core/tagger.py
Expand Up @@ -13,8 +13,7 @@
__email__ = "tpovedatd@gmail.com"

import logging
import inspect
import importlib
import inspect
from functools import partial

from Qt.QtCore import *
Expand Down Expand Up @@ -348,9 +347,11 @@ def _fill_new_tag_data_node(self, tag_data_node, current_selection):

if current_selection:
if not tp.Dcc.attribute_exists(
node=current_selection, attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME):
node=current_selection,
attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME):
tp.Dcc.add_message_attribute(
node=current_selection, attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME)
node=current_selection,
attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME)
tp.Dcc.unlock_attribute(
node=current_selection, attribute_name=artellapipe.TagsMgr().TagDefinitions.TAG_DATA_ATTRIBUTE_NAME)
tp.Dcc.unlock_attribute(
Expand Down
3 changes: 2 additions & 1 deletion artellapipe/tools/tagger/editors/descriptioneditor.py
Expand Up @@ -83,5 +83,6 @@ def fill_tag_node(self, tag_data_node, *args, **kwargs):
tp.Dcc.add_string_attribute(node=tag_data_node, attribute_name='description')

tp.Dcc.unlock_attribute(node=tag_data_node, attribute_name='description')
tp.Dcc.set_string_attribute_value(node=tag_data_node, attribute_name='description', attribute_value=self._description_text.toPlainText())
tp.Dcc.set_string_attribute_value(
node=tag_data_node, attribute_name='description', attribute_value=self._description_text.toPlainText())
tp.Dcc.lock_attribute(node=tag_data_node, attribute_name='description')
3 changes: 2 additions & 1 deletion artellapipe/tools/tagger/editors/nameeditor.py
Expand Up @@ -85,5 +85,6 @@ def fill_tag_node(self, tag_data_node, *args, **kwargs):
tp.Dcc.add_string_attribute(node=tag_data_node, attribute_name='name')

tp.Dcc.unlock_attribute(node=tag_data_node, attribute_name='name')
tp.Dcc.set_string_attribute_value(node=tag_data_node, attribute_name='name', attribute_value=self._name_line.text())
tp.Dcc.set_string_attribute_value(
node=tag_data_node, attribute_name='name', attribute_value=self._name_line.text())
tp.Dcc.lock_attribute(node=tag_data_node, attribute_name='name')
3 changes: 2 additions & 1 deletion artellapipe/tools/tagger/widgets/taggereditor.py
Expand Up @@ -57,7 +57,8 @@ def update_tag_buttons_state(self, sel=None):
:param sel: list(str)
"""

raise NotImplementedError('update_tag_buttons_state() function not implemented in {}'.format(self.__class__.__name__))
raise NotImplementedError(
'update_tag_buttons_state() function not implemented in {}'.format(self.__class__.__name__))

@decorators.abstractmethod
def fill_tag_node(self, tag_data_node, *args, **kwargs):
Expand Down

0 comments on commit 9ca1ef3

Please sign in to comment.