old_contents: from lxxl.lib import router, output
  from lxxl.lib.app import Error, Controller
  from lxxl.model.activities import Activity, Factory
  
  
  class Activities(router.Root):
  
      def create(self, environ, params):
          try:
              req = Controller().getRequest()
              a = Activity(**req.json)
              Factory.new(a)
              output.success(a.toObject(), 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def fetch(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def list(self, environ, params):
          try:
              output.success('woooohooooo list', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def delete(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def publish(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def unpublish(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def save(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def report(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def seen(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
new_contents: from lxxl.lib import router, output
  from lxxl.lib.app import Error, Controller
  from lxxl.model.activities import Activity, Factory
  
  
  class Activities(router.Root):
  
      def create(self, environ, params):
          try:
              req = Controller().getRequest()
              a = Activity(**req.json)
              Factory.new(a)
              output.success(a.toObject(), 201)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def fetch(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def list(self, environ, params):
          try:
              output.success('woooohooooo list', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def delete(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def publish(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def unpublish(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def save(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def report(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
      def seen(self, environ, params):
          try:
              output.success('woooohooooo', 200)
          except Error:
              pass
  
          return Controller().getResponse(True)
  
subject: fix http code