From 2ddf90afef427580318fb32b52a835d38dafe847 Mon Sep 17 00:00:00 2001 From: totoro Date: Wed, 20 May 2020 16:27:53 +0900 Subject: [PATCH] add load_web_controller for L3 (Locale, Language, Library) --- web_controllers/language/load_web_controller.anubis | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+), 0 deletions(-) create mode 100644 web_controllers/language/load_web_controller.anubis diff --git a/web_controllers/language/load_web_controller.anubis b/web_controllers/language/load_web_controller.anubis new file mode 100644 index 0000000..20e3415 --- /dev/null +++ b/web_controllers/language/load_web_controller.anubis @@ -0,0 +1,39 @@ +/* + * Created by PyramIDE. + * User: フランスのトトロ aka (David RENÉ) + * Date: 19/04/2020 + * Time: 00:17 + * © David RENÉ + */ + +read xlib/web/types/controllers_web_site.anubis +read xlib/web/plugin/plugin.anubis +read tools/basis.anubis +read system/string.anubis +read system/logger.anubis + +read hayamiki_lib/model/types/hk_database.anubis +read hayamiki_lib/view/view_table_manager_types.anubis + +define String modules_directory = find_and_replace(my_anubis_directory, "\\", "/") + "/modules/". + + +public define List(WEB_Controller) + load_L3_web_controller + ( + String version, + SQLite3DataBase db, + HK_Database hk_db, + VTM _vtm, + (LogLevel, String) -> One logger + )= + if load_plugin(modules_directory+"lib_"+version+"/L3.lib") is + { + failure then + logger(logError, "Can't load '"+modules_directory+"lib_"+version+"/L3.lib'"); + [], + success(l3_plugin) then + logger(logInfo, "lib_"+version+"/L3.lib' loaded"); + l3_plugin.get_controller(db, hk_db, _vtm, logger) + } +. -- libgit2 0.21.4