Commit 6f6feb0696be82594640c4faa812d13c57eb8ce7
1 parent
3b01c02a
change the plugin format by adding version and date as component of the type
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
web/plugin/plugin.anubis
| @@ -19,6 +19,8 @@ public type WEB_Plugin: | @@ -19,6 +19,8 @@ public type WEB_Plugin: | ||
| 19 | web_plugin( | 19 | web_plugin( |
| 20 | String app_name, //application name | 20 | String app_name, //application name |
| 21 | String space_name, //space name | 21 | String space_name, //space name |
| 22 | + String version, | ||
| 23 | + String date, | ||
| 22 | //version | 24 | //version |
| 23 | (SQLite3DataBase db, HK_Database hk_db, VTM _vtm, (LogLevel, String) -> One logger) -> List(WEB_Controller) get_controller, | 25 | (SQLite3DataBase db, HK_Database hk_db, VTM _vtm, (LogLevel, String) -> One logger) -> List(WEB_Controller) get_controller, |
| 24 | (SQLite3DataBase db, WEB_Session, String type) -> Maybe(HTML_Partial_Content) get_typed_content | 26 | (SQLite3DataBase db, WEB_Session, String type) -> Maybe(HTML_Partial_Content) get_typed_content |
| @@ -44,10 +46,8 @@ public define Maybe(WEB_Plugin) | @@ -44,10 +46,8 @@ public define Maybe(WEB_Plugin) | ||
| 44 | file_damaged then print("File '"+file_name+"' is damaged.\n\n");failure, | 46 | file_damaged then print("File '"+file_name+"' is damaged.\n\n");failure, |
| 45 | bad_version(expected,found) then print("Secondary module '"+file_name+"' doesn't have the same\n"+ | 47 | bad_version(expected,found) then print("Secondary module '"+file_name+"' doesn't have the same\n"+ |
| 46 | " version ("+found+") as primary module ("+expected+").\n\n");failure, | 48 | " version ("+found+") as primary module ("+expected+").\n\n");failure, |
| 47 | - wrong_type(expected,found) then print("Secondary module '"+file_name+"' has type:\n"+ | ||
| 48 | - found+" while primary module expected:\n"+ | ||
| 49 | - expected+"\n\n");failure, | ||
| 50 | - ok(ptah_plugin) then println("ptah plugin: APP ["+ptah_plugin.app_name+"] SPACE ["+ptah_plugin.space_name+"] loaded ");success(ptah_plugin) | 49 | + wrong_type(expected,found) then print("Secondary module '"+file_name+"' has different type as expected by primary module\n");failure, |
| 50 | + ok(ptah_plugin) then println("ptah plugin: APP ["+ptah_plugin.app_name+"] SPACE ["+ptah_plugin.space_name+"] version: "+ptah_plugin.version+" date: "+ptah_plugin.date+" loaded ");success(ptah_plugin) | ||
| 51 | }. | 51 | }. |
| 52 | 52 | ||
| 53 | public define List(WEB_Plugin) | 53 | public define List(WEB_Plugin) |