#
# <one line to give the program's name and a brief idea of what it does.>
# Copyright (C) 2020  gothic <email>
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

from webob import Request, Response
from Core.ErrExcept import ErrExcept

class App:
	
	'''def __call__(self, environ, start_response):
		request = Request(environ)
		response = self.handle_request(request)
		return response(environ, start_response)
	
	def handle_request(self, request):
		#user_agent = request.environ.get("SERVER_NAME", "No User Agent Found")
		user_agent = request.environ
		response = Response()
		response.text = f"Hello, my friend with this user agent: {user_agent}"
		return response'''
	
	def __call__(self, environ, start_response):
		try:
			print("Hello")
		except SyntaxError as synErr:
			error=ErrExcept(synErr)
