-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Make zapm compatible with both older and newer version of ZPM"
- Loading branch information
1 parent
6bdb3ce
commit d370c2c
Showing
4 changed files
with
22 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Class %ZAPM.ext.Lifecycle Extends %ZPM.PackageManager.Developer.Lifecycle.Module | ||
{ | ||
|
||
ClassMethod RunOnLoad() [ CodeMode = objectgenerator ] | ||
{ | ||
|
||
Set sc = $$$OK | ||
Try { | ||
if $Namespace'="%SYS" { | ||
$$$ThrowOnError($$$ERROR($$$GeneralError,"This application must be installed in the ""%SYS"" namespace ")) | ||
} | ||
;$$$ThrowOnError($$$ERROR($$$GeneralError,"some error")) | ||
} Catch e { | ||
Set sc = e.AsStatus() | ||
} | ||
Return sc | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters