Skip to content

Commit bbb02b4

Browse files
%All mapping draft
1 parent 0a545e4 commit bbb02b4

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

export/template.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,6 +1105,7 @@ New connection established: require auth key, login and start client loop.</Desc
11051105
<Class name="%WebTerminal.Installer">
11061106
<Description>
11071107
Importing this class will install Cache WEB Terminal properly.</Description>
1108+
<CompileAfter>Engine,Router,StaticContent</CompileAfter>
11081109
<Super>%Projection.AbstractProjection</Super>
11091110
<TimeCreated>63890,71053.144208</TimeCreated>
11101111

@@ -1147,6 +1148,35 @@ This method is invoked when a class is compiled.</Description>
11471148
w !, "WEB application ""/terminal"" already exists, so it is ready to use."
11481149
}
11491150
}
1151+
w !, "Mapping %WebTerminal package to %All namespace..."
1152+
set status = ##Class(Config.Namespaces).Get("%All")
1153+
if ($$$ISERR(status)) { // no namespace %All
1154+
w !, "Creating %All namespace..."
1155+
set Properties("Globals") = "CACHETEMP"
1156+
set Properties("Library") = "CACHELIB"
1157+
set Properties("Routines") = "CACHETEMP"
1158+
set Properties("SysGlobals") = "CACHESYS"
1159+
set Properties("SysRoutines") = "CACHESYS"
1160+
set Properties("TempGlobals") = "CACHETEMP"
1161+
set status = ##Class(Config.Namespaces).Create("%All", .Properties)
1162+
if ($$$ISERR(status)) {
1163+
do $SYSTEM.Status.DisplayError(status)
1164+
quit status
1165+
} else {
1166+
w !, "%All namespace created."
1167+
}
1168+
}
1169+
set Properties("Database") = "CACHETEMP"
1170+
set status=##Class(Config.MapPackages).Create("%All", "%WebTerminal", .Properties)
1171+
if ($$$ISERR(status)) {
1172+
do $SYSTEM.Status.DisplayError(status)
1173+
}
1174+
set Properties("Database") = "CACHELIB"
1175+
set status=##Class(Config.MapPackages).Create("%SYS", "%WebTerminal", .Properties)
1176+
if ($$$ISERR(status)) {
1177+
do $SYSTEM.Status.DisplayError(status)
1178+
}
1179+
w !, "%WebTerminal package successfully mapped into %All namespace."
11501180
zn:ns'="%SYS" ns
11511181
quit $$$OK
11521182
]]></Implementation>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Cache WEB Terminal",
44
"description": "Web-based terminal emulator for Caché administering.",
55
"author": "ZitRo",
6-
"version": "3.0.0-alpha.6",
6+
"version": "3.0.1",
77
"releaseNumber": 12,
88
"repository": {
99
"type": "git",

0 commit comments

Comments
 (0)