old_contents: # Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file>
  # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
  # Created By: miha@reciprocitylabs.com
  # Maintained By: miha@reciprocitylabs.com
  
  """Handlers for request specific columns."""
  
  from ggrc.converters.handlers import handlers
  from ggrc.converters import errors
  
  
  class RequestStatusColumnHandler(handlers.StatusColumnHandler):
    """Handler for request status."""
  
    def parse_item(self):
      """Parse raw_value into a valid request status if possible."""
      value = handlers.StatusColumnHandler.parse_item(self)
      if value in {"Final", "Verified"}:
        value = "In Progress"
        self.add_warning(errors.REQUEST_INVALID_STATE)
      return value
  
new_contents: # Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file>
  # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
  # Created By: miha@reciprocitylabs.com
  # Maintained By: miha@reciprocitylabs.com
  
  """Handlers for request specific columns."""
  
  from ggrc.converters.handlers import handlers
  from ggrc.converters import errors
  from ggrc import models
  
  
  class RequestStatusColumnHandler(handlers.StatusColumnHandler):
    """Handler for request status."""
  
    def parse_item(self):
      """Parse raw_value into a valid request status if possible."""
      value = handlers.StatusColumnHandler.parse_item(self)
      if value in models.Request.END_STATES:
        value = models.Request.PROGRESS_STATE
        self.add_warning(errors.REQUEST_INVALID_STATE)
      return value
  
subject: Update Request object import to use statusable attributes