1 # Copyright (C) 2009 Software Institute, Nanjing University
11 """Handle the request and generate an appropriate str response."""
15 def find_handler(cmd
):
17 m
= __import__('tss4.ws.%s' % cmd
, {}, {}, ['ServiceHandler'])
18 for k
, v
in m
.__dict
__.items():
19 if inspect
.isclass(v
) and issubclass(v
, (ServiceHandler
,)) \
20 and k
<> 'ServiceHandler':
21 handler
= object.__new
__(v
)