Skip to content

Commit bd47c2f

Browse files
committed
Revert to the old way of creating %All namespace.
Now works with Ensemble (additional Ensemble=0 parameter provided).
1 parent 1359dc2 commit bd47c2f

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

MDX2JSON/Installer.cls.xml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ todo add optional parameter WEBAPP to Alter web app name if it needs to have ano
4343
4444
<If Condition='(##class(Config.Namespaces).Exists("%All")=0)'>
4545
<Log Text="Creating namespace %All" Level="0"/>
46-
<RunInstall Class="MDX2JSON.Installer" Method="CreateAllNamespace"/>
46+
<Namespace Name="%All" Create="yes" Code="CACHETEMP" Data="CACHETEMP" Ensemble="0">
47+
<Configuration/>
48+
</Namespace>
4749
</If>
4850
4951
<Log Text="Mapping MDX2JSON package to %All namespace" Level="0"/>
@@ -147,20 +149,6 @@ do ##class(MDX2JSON.Installer).createuser(.pVars)</Description>
147149
]]></Implementation>
148150
</Method>
149151

150-
<Method name="CreateAllNamespace">
151-
<ClassMethod>1</ClassMethod>
152-
<FormalSpec>pVars,pLogLevel,tInstaller</FormalSpec>
153-
<ReturnType>%Status</ReturnType>
154-
<Implementation><![CDATA[
155-
Do tInstaller.PushNS("%SYS")
156-
Do tInstaller.CreateNamespace("%All","CACHETEMP","CACHETEMP")
157-
Set tSC = (##class(Config.Namespaces).Exists("%All")=1)
158-
Do tInstaller.PopNS()
159-
Quit:tSC $$$OK
160-
Quit $$$ERROR($$$GeneralError,"Error creating %All Namespace")
161-
]]></Implementation>
162-
</Method>
163-
164152
<Method name="DeleteNamespace">
165153
<ClassMethod>1</ClassMethod>
166154
<FormalSpec>Namespace=$Namespace</FormalSpec>

0 commit comments

Comments
 (0)