Blame action/action.py

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