Skip to content

Commit 8fab3b3

Browse files
Installer fixes
1 parent 074e64a commit 8fab3b3

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

export/WebTerminal/Installer.xml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2015.1.1 (Build 505U)" ts="2016-02-19 21:03:21">
2+
<Export generator="Cache" version="25" zv="Cache for Windows (x86-64) 2016.2 (Build 590U)" ts="2016-03-01 12:49:46">
33
<Class name="WebTerminal.Installer">
44
<Description>
55
Importing this class will install Cache WEB Terminal properly.</Description>
66
<Super>%Projection.AbstractProjection</Super>
7-
<TimeChanged>63967,75756.360549</TimeChanged>
7+
<TimeChanged>63978,45153.996987</TimeChanged>
88
<TimeCreated>63890,71053.144208</TimeCreated>
99
<DependsOn>Common,Engine,Router,StaticContent,Autocomplete,Trace</DependsOn>
1010

@@ -92,12 +92,7 @@ This method is invoked when a class is compiled.</Description>
9292
set st = ..RegisterWebApplication("/terminalsocket", .cspProperties)
9393
quit:$$$ISERR(st) st
9494
95-
set st = ..CreateAllNamespace()
96-
if ($$$ISERR(st)) {
97-
do $System.Status.DisplayError(st)
98-
} else {
99-
write !, "%All namespace is created."
100-
}
95+
do ..CreateAllNamespace()
10196
10297
write !, "Mapping %WebTerminal package into all namespaces:"
10398
set st = ..Map(ns)
@@ -122,8 +117,8 @@ This method is invoked when a class is 'uncompiled'.</Description>
122117
123118
set ns = $get(^WebTerminal("HomeNamespace"))
124119
set msg = "Please, set ^WebTerminal(""HomeNamespace"") global equal to " _
125-
"the namespace WebTerminal was installed to before uninstalling." _ $Namespace
126-
quit:'ns $$$ERROR($$$GeneralError, msg)
120+
"the namespace WebTerminal was installed to before uninstalling. " _ ns
121+
quit:(ns="") $$$ERROR($$$GeneralError, msg)
127122
write !, "Uninstalling WebTerminal application from "
128123
zn "%SYS"
129124
do ..RemoveWebApplication("/terminal")
@@ -179,6 +174,11 @@ This method is invoked when a class is 'uncompiled'.</Description>
179174
set Properties("SysRoutines") = "CACHESYS"
180175
set Properties("TempGlobals") = "CACHETEMP"
181176
set st = ##Class(Config.Namespaces).Create(ns, .Properties)
177+
if ($$$ISERR(st)) {
178+
do $System.Status.DisplayError(st)
179+
} else {
180+
write !, "%All namespace is created."
181+
}
182182
}
183183
return st
184184
]]></Implementation>
@@ -190,7 +190,7 @@ This method is invoked when a class is 'uncompiled'.</Description>
190190
<ReturnType>%Status</ReturnType>
191191
<Implementation><![CDATA[
192192
new $Namespace
193-
set $Namespace = "%SYS"
193+
set $Namespace = "%SYS"
194194
set st = $$$OK
195195
196196
set mapTo = $LISTBUILD("%All", "SAMPLES", "DOCBOOK")
@@ -214,6 +214,7 @@ This method is invoked when a class is 'uncompiled'.</Description>
214214

215215
<Method name="UnMap">
216216
<ClassMethod>1</ClassMethod>
217+
<FormalSpec>fromNS:%String</FormalSpec>
217218
<ReturnType>%Status</ReturnType>
218219
<Implementation><![CDATA[
219220
new $Namespace
@@ -223,6 +224,7 @@ This method is invoked when a class is 'uncompiled'.</Description>
223224
set mapTo = $LISTBUILD("%All", "SAMPLES", "DOCBOOK")
224225
set ptr = 0
225226
while $LISTNEXT(mapTo, ptr, namespace) {
227+
continue:(fromNS = namespace)
226228
write " ", namespace
227229
if (##Class(Config.MapPackages).Exists(namespace, "WebTerminal")) {
228230
set st1 = ##Class(Config.MapPackages).Delete(namespace, "WebTerminal", .Properties)

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.2.5",
6+
"version": "3.2.7",
77
"releaseNumber": 22,
88
"repository": {
99
"type": "git",

0 commit comments

Comments
 (0)