Question about Message Bus Source Code

Asked by jdm100

I read through the message_bus.py source code and just wanted to know how you are determining the __MAX_NUMBER_OF_MESSAGE_TYPES.
Based on some of the other code, It seems as though it is the constants you have defined in the MessageTypes class.
If so:
__MAX_NUMBER_OF_MESSAGE_TYPES = len([k for k,v in vars(MessageType).items() if type(v) is int])
works, although it does not seem like good code to me(I'm new to python, maybe thats why).

Also, is there some sort of forum that is specific for discussing development. What you have done so far is very nice and I would like to contribute.

Question information

Language:
English Edit question
Status:
Answered
For:
Entertainer Media Center Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Lauri Taimila (lauri-deactivatedaccount) said :
#1

Thanks! This worked great and gives a little performance boost to messagebus. This isn't probably the most beautiful solution, but it works and with some comments it's good enough.

At the moment there is no forum, but I'm thinking about setting one up.

Revision history for this message
Matt Layman (mblayman) said :
#2

jdm100,

Since Lauri responded to your question, some "infrastructure" has been set up to help developers contribute. The two best ways to get involved with Entertainer are to get in touch with the developers on IRC at irc.freenode.net in the #entertainer channel. Or subscribe to the development email list at <entertainer-dev (at) lists (dot) ironlionsoftware (dot) com>. We also use launchpad heavily to track bugs and branches (using bazaar).

Thanks for your interest in Entertainer.

Can you help with this problem?

Provide an answer of your own, or ask jdm100 for more information if necessary.

To post a message you must log in.