[ibpy commit] r322 - trunk/ib/opt

1 view
Skip to first unread message

codesite...@google.com

unread,
Jul 18, 2008, 6:48:07 PM7/18/08
to ibpy-...@googlegroups.com
Author: troy.melhase
Date: Fri Jul 18 15:47:59 2008
New Revision: 322

Modified:
trunk/ib/opt/message.py

Log:
Added ib.opt.message.messageTypeNames() to easily generate a list of
names of the various message types.

Modified: trunk/ib/opt/message.py
==============================================================================
--- trunk/ib/opt/message.py (original)
+++ trunk/ib/opt/message.py Fri Jul 18 15:47:59 2008
@@ -147,3 +147,11 @@
# A (partial) method so other modules can use the same mappings we
# have.
wrapperMethods = partial(selectWrapperMethods, EWrapper)
+
+
+def messageTypeNames():
+ """ Builds set of message type names.
+
+ @return set of all message type names as strings
+ """
+ return set([t.typeName for t in registry.values()])

Reply all
Reply to author
Forward
0 new messages