code: def format(self, method, data):
          ''' Calls format on list or detail '''
          if data is None:
              if method == 'GET':
                  raise NotFound()
              return ''
  
          return self._meta.formatter.format(dataf format(self, method, data):
          ''' Calls format on list or detail '''
          if data is None:
              if method == 'GET':
                  raise NotFound()
              return ''
  
          return self._meta.formatter.format(data)
docs: Calls format on list or detail