Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(page is not None)
aeidon.util.affirm(page.project.subtitles)
aeidon.util.affirm(selected_rows)
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(page is not None)
row, col = page.view.get_focus()
aeidon.util.affirm(not None in (row, col))
column = page.view.get_column(col)
renderer = column.get_cells()[0]
aeidon.util.affirm(renderer.props.mode ==
Gtk.CellRendererMode.EDITABLE)
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(aeidon.SpellChecker.available())
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(page is not None)
def _affirm_doable(self, application, page, selected_rows):
"""Raise :exc:`aeidon.AffirmationError` if action cannot be done."""
aeidon.util.affirm(page is not None)
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(page is not None)
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(application.player is not None)
aeidon.util.affirm(application.player.ready)
def _affirm_doable(self, application, page, selected_rows):
"""Raise :exc:`aeidon.AffirmationError` if action cannot be done."""
aeidon.util.affirm(page is not None)
aeidon.util.affirm(selected_rows)
col = page.view.get_focus()[1]
aeidon.util.affirm(col is not None)
aeidon.util.affirm(page.view.is_text_column(col))
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(page is not None)
index = application.pages.index(page) + 1
aeidon.util.affirm(index in range(len(application.pages)))
def _affirm_doable(self, application, page, selected_rows):
aeidon.util.affirm(page is not None)
aeidon.util.affirm(page.project.can_undo())