Esempio n. 1
0
 def post_process(self, obj_id, items):
     for blitem in items:
         # print blitem
         typex = blitem['t']
         if ControlType.is_url(typex):
             send_url(obj_id, blitem['v'])
         elif ControlType.is_twitter(typex):
             queue_twitter_resolution(obj_id, blitem['v'])
Esempio n. 2
0
def do_post_process(item):
    # print 'signal:' + str(item)
    # current_app.logger.info(str(item))
    object_id = str(item['_id'])
    items = item['i']
    for element in items:
        typex = element['t']
        if ControlType.is_url(typex):
            send_url(object_id, element['v'])
        elif ControlType.is_twitter(typex):
            queue_twitter_resolution(object_id, element['v'])