예제 #1
0
def get_user_info(req):
  #req.register_cleanup(_cleanup)
  user = _get_username(req);
  info = xmclib.get_user_info(user);
  #_release_db_conn()
  _cleanup()
  return {'user': info};
예제 #2
0
def get_create_user_info(req):
  #req.register_cleanup(_cleanup)
  user = _get_username(req);
  info = xmclib.get_user_info(user);
  allocvms = xmclib.get_unused_vms(user);
  all_info = {'user': info, 'allocvms': allocvms}
  #_release_db_conn()
  _cleanup()
  return all_info;