rename the "queues" configuration section to "topic", to indicate it is only relevant for topic exchanges

This commit is contained in:
Mike Bonnet 2010-01-04 18:30:58 -05:00
parent 91e6572e89
commit bca4ad5e76
2 changed files with 3 additions and 2 deletions

View file

@ -56,7 +56,8 @@ def get_session():
def get_routing_key(cbtype, *args, **kws):
global config
key = [config.get('queues', 'prefix'), cbtype]
key = [config.get('topic', 'prefix'), cbtype]
if cbtype in ('prePackageListChange', 'postPackageListChange'):
key.append(kws['tag']['name'])
key.append(kws['package']['name'])