def command_dispatch(request):
 command = request.POST.get('command')
 if command:
  response = handle_command(request, command)
  if response:
   return response
 raise Problem(('Unknown command: %r' % command))

def command_dispatch ( request ) : command = request . POST . get ( 'command' ) if command : response = handle_command ( request , command ) if response : return response raise Problem ( ( 'Unknown command: %r' % command ) )
xtheme command dispatch view .