Commit 6f2ce5226c55ba46912b382727abd5ef749457cd
1 parent
82ad7c37
add load_hayamiki_web_controller for any application which need use Hayamiki
Showing
2 changed files
with
33 additions
and
2 deletions
Show diff stats
| 1 | +/* | ||
| 2 | + * Created by PyramIDE. | ||
| 3 | + * User: フランスのトトロ aka (David RENÉ) | ||
| 4 | + * Date: 17/04/2020 | ||
| 5 | + * Time: 08:50 | ||
| 6 | + * © David RENÉ | ||
| 7 | + */ | ||
| 8 | + | ||
| 9 | +read tools/basis.anubis | ||
| 10 | +read system/string.anubis | ||
| 11 | +read system/logger.anubis | ||
| 12 | + | ||
| 13 | +define String modules_directory = find_and_replace(my_anubis_directory, "\\", "/") + "/modules/". | ||
| 14 | + | ||
| 15 | + | ||
| 16 | +public define List(WEB_Controller) | ||
| 17 | + load_hayamiki_web_controller | ||
| 18 | + ( | ||
| 19 | + String version, | ||
| 20 | + SQLite3DataBase db, | ||
| 21 | + HK_Database hk_db, | ||
| 22 | + VTM _vtm, | ||
| 23 | + (LogLevel, String) -> One logger | ||
| 24 | + )= | ||
| 25 | + if load_plugin(modules_directory+"lib_"+version+"/hayamiki.lib") is | ||
| 26 | + { | ||
| 27 | + failure then logger(lorError, "Can't load '"+modules_directory+"lib_"+version+"/hayamiki.lib'"), | ||
| 28 | + success(hk_plugin) then hk_plugin.get_controller(db, hk_db, _vtm, logger) | ||
| 29 | + | ||
| 30 | + } | ||
| 31 | +. |
view/view_rows_import.anubis
| @@ -23,8 +23,8 @@ read xlib/web/widgets/icons_set.anubis | @@ -23,8 +23,8 @@ read xlib/web/widgets/icons_set.anubis | ||
| 23 | read hayamiki_lib/view/web_action.anubis | 23 | read hayamiki_lib/view/web_action.anubis |
| 24 | 24 | ||
| 25 | read web_pages/desktop.anubis | 25 | read web_pages/desktop.anubis |
| 26 | -read app/app_constants.anubis | ||
| 27 | -read version.anubis | 26 | +//read app/app_constants.anubis |
| 27 | +//read version.anubis | ||
| 28 | 28 | ||
| 29 | public define List((List(CoreAttrs), WebArgValue, String)) | 29 | public define List((List(CoreAttrs), WebArgValue, String)) |
| 30 | csv_delimiter_combo | 30 | csv_delimiter_combo |