示例#1
0
 def is_displayed(self):
     return (self.in_explorer and self.datastore.is_opened
             and (f'Editing Automate Method "{self.context["object"].name}"'
                  in self.title.text) and check_tree_path(
                      self.datastore.tree.currently_selected,
                      self.context["object"].tree_path,
                      partial=True,
                  ))
示例#2
0
 def is_displayed(self):
     return (
         self.in_explorer and
         self.datastore.is_opened and
         self.title.text == 'Adding a new Automate Method' and
         check_tree_path(
             self.datastore.tree.currently_selected,
             self.context['object'].tree_path))
示例#3
0
 def is_displayed(self):
     return (self.in_explorer and self.datastore.is_opened
             and 'Editing Automate Method "{}"'.format(
                 self.context['object'].name) in self.title.text
             and (BZ(1704439).blocks
                  or check_tree_path(self.datastore.tree.currently_selected,
                                     self.context['object'].tree_path,
                                     partial=True)))
示例#4
0
 def is_displayed(self):
     return (self.in_explorer and self.title.text.startswith(
         'Automate Instance [{}'.format(self.context['object'].display_name
                                        or self.context['object'].name))
             and self.datastore.is_opened
             and (BZ(1704439).blocks
                  or check_tree_path(self.datastore.tree.currently_selected,
                                     self.context["object"].tree_path)))
示例#5
0
 def is_displayed(self):
     return (
         self.in_explorer and
         self.title.text == 'Copy Automate Instance' and
         self.datastore.is_opened and
         check_tree_path(
             self.datastore.tree.currently_selected,
             self.context['object'].tree_path))
示例#6
0
 def is_displayed(self):
     return (
         self.in_explorer and
         self.datastore.is_opened and
         check_tree_path(
             self.datastore.tree.currently_selected,
             self.context['object'].tree_path) and
         self.title.text == 'Editing Automate Namespace "{}"'
                            .format(self.context['object'].name)
     )
示例#7
0
 def is_displayed(self):
     return (self.in_explorer
             and self.title.text == 'Automate Class "{}"'.format(
                 self.context['object'].display_name
                 or self.context['object'].name)
             and self.datastore.is_opened
             and (BZ(1704439).blocks or check_tree_path(
                 self.datastore.tree.currently_selected,
                 self.context["object"].tree_path,
                 partial=True,
             )))