Blob Blame Raw


import exception

class Action:
  def __init__(self):
    self.readonly = False
  
  def process(self, request):
    assert False
    
  def propagate_exception(self, e):
    if type(e) is exception.ModelWrongData:
      raise exception.ActionError(e.messages)
    if type(e) is exception.ModelDeny:
      raise exception.HttpForbidden()
    raise e