From 891e24cfc2eca3152e2cf33c5963979d963b7bae Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 2 Apr 2017 19:53:38 +0200 Subject: [PATCH] get_Bool from web_arg_utils return true or false according of the value. --- web/CXM_making_a_web_site.anubis | 8 ++++---- web/CXM_web_arg_utils.anubis | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/CXM_making_a_web_site.anubis b/web/CXM_making_a_web_site.anubis index ea9c5a6..861df62 100644 --- a/web/CXM_making_a_web_site.anubis +++ b/web/CXM_making_a_web_site.anubis @@ -412,10 +412,10 @@ define Previous_Session with session_name = value(cookie), with file_path = session_directory+"/"+session_name, //unserialize the stored session and his timeout value - println("retrieve session ["+session_name+"]"); + //println("retrieve session ["+session_name+"]"); if (RetrieveResult((Int, WEB_Session_No_Var)))retrieve(file_path) is ok(d) then ( - println("retrieve session OK ["+session_name+"]"); + //println("retrieve session OK ["+session_name+"]"); since d is (time_stamp, s_no_var), with s = to_WEB_Session(s_no_var), if time_stamp < now then @@ -3222,8 +3222,8 @@ public define Web_Site List(Web_arg) _lwa, Bool is_https) |-> //(Printable_tree) - println("host_name "+host_name); - println(dump_http_info(http_info)); + //println("host_name "+host_name); + //println(dump_http_info(http_info)); println(dump_web_arg_values(_lwa)); diff --git a/web/CXM_web_arg_utils.anubis b/web/CXM_web_arg_utils.anubis index 832b813..8bdacaa 100644 --- a/web/CXM_web_arg_utils.anubis +++ b/web/CXM_web_arg_utils.anubis @@ -150,7 +150,7 @@ public define Bool if web_arg_value(lwa, arg_name) is { not_found then false, - found(value) then true + found(value) then to_Bool(value) }. public define Bool -- libgit2 0.21.4