'Return the url needed for the desired action.
problem_location: location of the problem on which we want some action
dispatch: the the action string that gets passed to the view as a kwarg
example: \'check_problem\' for having responses processed'

def modx_url(self, problem_location, dispatch):

    return reverse('xblock_handler', kwargs={'course_id': self.course.id.to_deprecated_string(), 'usage_id': quote_slashes(problem_location.to_deprecated_string()), 'handler': 'xmodule_handler', 'suffix': dispatch})
