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};
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;