Here are the examples of the python api web.webapi.internalerror taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
Example 1
Project: socorro Source File: servers.py
def __init__(self, config, services_list):
self.config = config
urls = []
for each in services_list:
if hasattr(each, 'uri'):
# this service has a hard coded uri embedded within
uri, cls = each.uri, each
config.logger.debug(
'embedded uri class %s %s',
cls.__name__,
uri
)
else:
# this is a uri, service pair
uri, cls = each
config.logger.debug(
'service pair uri class %s %s',
cls.__name__,
uri
)
if isinstance(uri, basestring):
uri = (uri, )
for a_uri in uri:
urls.append(a_uri)
if hasattr(cls, 'wrapped_partial'):
config.logger.debug(
"appending already wrapped %s",
cls.__name__
)
urls.append(cls)
else:
config.logger.debug(
"wrapping %s",
cls.__name__
)
urls.append(class_with_partial_init(cls, config))
self.urls = tuple(urls)
web.webapi.internalerror = web.debugerror
web.config.debug = False
self._identify()
self._wsgi_func = web.application(self.urls, globals()).wsgifunc()