(self)
Finds all removed modules, forms, and questions from the second app
Finds all removed modules, forms, and questions from the second app
Finds all removed modules forms and questions from the second app
def _mark_removed_items(self):
        """Finds all removed modules, forms, and questions from the second app
        """
        for module in self.first:
            if module['unique_id'] not in self._second_modules_by_id:
                self._mark_item_removed(module, 'module')
                continue

            for form in module['forms']:
                second_form = self._second_forms_by_id.get(form['unique_id'])
                if not second_form or form.module_uid != second_form.module_uid:
                    # Also show moved form as deleted and re-added.
                    self._mark_item_removed(form, 'form')
                    continue

                self._mark_removed_questions(form['unique_id'], form['questions'])
def _mark_removed_items ( self ) : for module in self . first : if module [ 'unique_id' ] not in self . _second_modules_by_id : self . _mark_item_removed ( module , 'module' ) continue for form in module [ 'forms' ] : second_form = self . _second_forms_by_id . get ( form [ 'unique_id' ] ) if not second_form or form . module_uid != second_form . module_uid : # Also show moved form as deleted and re-added. self . _mark_item_removed ( form , 'form' ) continue self . _mark_removed_questions ( form [ 'unique_id' ] , form [ 'questions' ] )