aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-16 21:09:26 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-16 21:09:26 -0500
commit0af38d1882291523d0d290a638e88be793f27678 (patch)
tree4214354fed30368857aa2462287792caa2f5f11f /util
parent0d828da2a9df1c84e1899185e21067104dd5515b (diff)
a couple more behavior additions
Diffstat (limited to 'util')
-rw-r--r--util/ComponentRegistry.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/ComponentRegistry.py b/util/ComponentRegistry.py
index 43c4795..776cd17 100644
--- a/util/ComponentRegistry.py
+++ b/util/ComponentRegistry.py
@@ -31,6 +31,9 @@ def registerComponent(component, cid=None):
globals()['Registry'][cid] = component
return cid
+def verifyUniqueId(cid):
+ return not cid in globals()['Registry']
+
def removeComponent(cid):
globals()['Registry'].pop(cid)