예제 #1
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
     self._fixtures = None
     self._fixture_hierarchy = None
예제 #2
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
     self._fixtures = None
     self._fixture_hierarchy = None
from telopmessage import TelopMessage
from jsonloader import JSONLoader
import logging
import urllib
import re
import json
import traceback


CONFIG_DIR = "../conf/"
CONFIG_TWITTER = CONFIG_DIR + "twitter.conf"
CONFIG_HANDLE_MST = CONFIG_DIR + "handle_mst.conf"
CONFIG_AMQP = CONFIG_DIR + "amqp.conf"

print "load twitter conf"
twitter_conf = JSONLoader.load_json(CONFIG_TWITTER)

consumer_key = twitter_conf["consumer_key"]
consumer_secret = twitter_conf["consumer_secret"]
access_key = twitter_conf["access_key"]
access_secret = twitter_conf["access_secret"]
my_screen_name = twitter_conf["my_screen_name"]

print "load handle-mst conf"
handle_mst_conf = JSONLoader.load_json(CONFIG_HANDLE_MST)

level_tweet_mst = handle_mst_conf["level_tweet_mst"]
level_user_mst = handle_mst_conf["level_user_mst"]

print "load amqp conf"
amqp_conf = JSONLoader.load_json(CONFIG_AMQP)