Created
April 9, 2012 09:50
-
-
Save cwalther/2342599 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff -r b6d0dd27bc1d Python/xKI.py | |
--- a/Python/xKI.py Mon Apr 09 10:27:12 2012 +0200 | |
+++ b/Python/xKI.py Mon Apr 09 11:47:59 2012 +0200 | |
@@ -2288,6 +2288,30 @@ | |
sname = "Upload=%s" % (BKPlayerSelected.name) | |
notify.addVarNumber(sname, sendElement.getID()) | |
notify.send() | |
+ | |
+ testingnotify = ptNotify(self.key) | |
+ testingnotify.clearReceivers() | |
+ testingnotify.addReceiver(self.ImagerMap[BKPlayerSelected.name]) | |
+ testingnotify.netPropagate(1) | |
+ testingnotify.netForce(1) | |
+ testingnotify.setActivate(1.0) | |
+ testingnotify.addVarNumber("testing number none") | |
+ testingnotify.addVarNumber("testing number explicit none", None) | |
+ testingnotify.addVarNumber("testing number int", 5) | |
+ testingnotify.addVarNumber("testing number small long", 7L) | |
+ testingnotify.addVarNumber("testing number big long", 10000000000L) | |
+ testingnotify.addVarNumber("testing number float", 3.141) | |
+ testingnotify.addVarFloat("testing float", 1.414) | |
+ testingnotify.addVarFloat("testing float int", 2) | |
+ testingnotify.addVarInt("testing int", 3) | |
+ testingnotify.addVarInt("testing int long", 42L) | |
+ testingnotify.addVarInt("testing int float", 7.5) | |
+ testingnotify.addVarNull("testing null") | |
+ testingnotify.addVarKey("testing key", self.key) | |
+ PtAddEvent(testingnotify, [kVariableEvent, "testing PtAddEvent float", kVarNumberType, 0.99]) | |
+ PtAddEvent(testingnotify, [kVariableEvent, "testing PtAddEvent int", PtNotifyDataType.kInt, 15]) | |
+ PtAddEvent(testingnotify, [kVariableEvent, "testing PtAddEvent null", PtNotifyDataType.kNull, "dummy"]) | |
+ testingnotify.send() | |
toplayerbtn.hide() | |
elif isinstance(BKPlayerSelected,ptVaultNode): | |
diff -r b6d0dd27bc1d Python/xSimpleImager.py | |
--- a/Python/xSimpleImager.py Mon Apr 09 10:27:12 2012 +0200 | |
+++ b/Python/xSimpleImager.py Mon Apr 09 11:47:59 2012 +0200 | |
@@ -309,6 +309,8 @@ | |
if (RegionMembers == 0): | |
ImagerButtonResp.run(self.key,state='buttonOff') | |
+ elif len(events) > 0 and events[0][1].startswith("testing"): | |
+ PtDebugPrint("Notify testing events: " + repr(events), level=kWarningLevel) | |
else: | |
# else it must be a notification back to ourselves... | |
# ...telling us to display a certain element | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment