'Handle receiving a publish item event.'

def _publish(self, msg):

    print ('Published    item    %s    to    %s:' % (msg['pubsub_event']['items']['item']['id'], msg['pubsub_event']['items']['node']))
    data = msg['pubsub_event']['items']['item']['payload']
    if (data is not None):
        print tostring(data)
    else:
        print 'No    item    content'
