예제 #1
0
파일: report.py 프로젝트: jonaqp/mstrio-py
 def attr_elements(self):
     if not self._attr_elements:
         if self.parallel is True:
             # TODO: move the fallback inside the function to apply per-attribute, like with non-async version.
             self._attr_elements = fallback_on_timeout()(self.__get_attr_elements_async)(50000)[0]
         else:
             self._attr_elements = self.__get_attr_elements()
         self.__filter.attr_elem_selected = self._attr_elements
     return self._attr_elements
예제 #2
0
 def attr_elements(self) -> list:
     if not self.__definition_retrieved:
         self._get_definition()
     if not self._attr_elements and self._id:
         if self._parallel is True:
             # TODO: move the fallback inside the function to apply
             # per-attribute, like with non-async version.
             self._attr_elements = fallback_on_timeout()(
                 self.__get_attr_elements_async)(50000)[0]
         else:
             self._attr_elements = self.__get_attr_elements()
         self._filter._populate_attr_elements(self._attr_elements)
     return self._attr_elements