File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,8 +318,23 @@ Download list of files on https://raw.githubusercontent.com/ server.<br>
318318</Method >
319319
320320<Method name =" GetNSList" >
321+ <Description >
322+ Returns comma-separated list of all local availible namespaces</Description >
321323<ClassMethod >1</ClassMethod >
322- <Implementation ><![CDATA[ do ##class(%CSP.Portal.Utils).%GetNamespaceList(.NspList)
324+ <Implementation ><![CDATA[
325+ set st=##class(%CSP.Portal.Utils).%GetNamespaceList(.nsarrary)
326+ return:$$$ISERR(st) st
327+ set namespace = $O(nsarrary(""))
328+ set nslist=""
329+ while namespace '= "" {
330+ set enabled = $lg(nsarrary(namespace),1)
331+ set remote = $lg(nsarrary(namespace),2)
332+ if ((enabled = 1) && (remote=0)) {
333+ set nslist=nslist _ namespace _ ","
334+ }
335+ set namespace = $O(nsarrary(namespace))
336+ }
337+ return $e(nslist,1,*-1)
323338]]> </Implementation >
324339</Method >
325340
You can’t perform that action at this time.
0 commit comments