예제 #1
0
def getsleek():
    try:
        mod = _import("sleekxmpp")
    except:
        mod = _import("jsb.contrib.sleekxmpp")
    logging.info("sleek module is %s" % str(mod))
    return mod
예제 #2
0
def gettweepy():
    try:
        mod = _import("jsb.contrib.tweepy")
    except:
        mod = _import("jsb.contrib.tweepy")
    logging.info("tweepy module is %s" % str(mod))
    return mod
예제 #3
0
def getjson():
    try: mod = _import("json")
    except:
        try: mod = _import("simplejson")
        except: mod = _import("jsb.contrib.simplejson")
    logging.debug("json module is %s" % str(mod))
    return mod
예제 #4
0
def gettornado():
    try:
        mod = _import("tornado")
    except:
        mod = _import("jsb.contrib.tornado")
    logging.info("tornado module is %s" % str(mod))
    return mod
예제 #5
0
def getBeautifulSoup():
    try:
        mod = _import("BeautifulSoup")
    except:
        mod = _import("jsb.contrib.BeautifulSoup")
    logging.info("BeautifulSoup module is %s" % str(mod))
    return mod
예제 #6
0
def getoauth():
    try:
        mod = _import("oauth")
    except:
        mod = _import("jsb.contrib.oauth")
    logging.info("oauth module is %s" % str(mod))
    return mod
예제 #7
0
def getfeedparser():
    try:
        mod = _import("feedparser")
    except:
        mod = _import("jsb.contrib.feedparser")
    logging.info("feedparser module is %s" % str(mod))
    return mod
예제 #8
0
def getjson():
    try:
        mod = _import("json")
    except:
        try:
            mod = _import("simplejson")
        except:
            mod = _import("jsb.contrib.simplejson")
    logging.debug("json module is %s" % str(mod))
    return mod
예제 #9
0
def getrequests():
    try:
        mod = _import("requests")
    except:
        mod = None
    logging.info("requests module is %s" % str(mod))
    return mod
예제 #10
0
def getdns():
    try:
        mod = _import("dns")
    except:
        mod = None
    logging.debug("imports - dns module is %s" % str(mod))
    return mod
예제 #11
0
def getoauth():
    try: mod = _import("oauth")
    except:
        mod = _import("jsb.contrib.oauth")
    logging.info("oauth module is %s" % str(mod))
    return mod
예제 #12
0
def getfeedparser():
    try: mod = _import("feedparser")
    except: mod = _import("jsb.contrib.feedparser")
    logging.info("feedparser module is %s" % str(mod))
    return mod
예제 #13
0
def getwebapp2():
    try: mod = _import("webapp2")
    except: mod = _import("jsb.contrib.webapp2")
    logging.debug("webapp2 module is %s" % str(mod))
    return mod
예제 #14
0
def getdns():
    try: mod = _import("dns")
    except: mod = None
    logging.debug("imports - dns module is %s" % str(mod))
    return mod
예제 #15
0
def gettweepy():
    try: mod = _import("jsb.contrib.tweepy")
    except: mod = _import("jsb.contrib.tweepy")
    logging.info("tweepy module is %s" % str(mod))
    return mod
예제 #16
0
def getBeautifulSoup():
    try: mod = _import("BeautifulSoup")
    except: mod = _import("jsb.contrib.BeautifulSoup")
    logging.info("BeautifulSoup module is %s" % str(mod))
    return mod
예제 #17
0
def getrequests():
    try: mod = _import("requests")
    except: mod = None
    logging.info("requests module is %s" % str(mod))
    return mod
예제 #18
0
def gettornado():
    try: mod = _import("tornado")
    except: mod = _import("jsb.contrib.tornado")
    logging.info("tornado module is %s" % str(mod))
    return mod
예제 #19
0
파일: imports.py 프로젝트: code2u/jsb
def getrequests():
    try: mod = _import("requests")
    except:
        mod = _import("jsb.contrib.requests")
    logging.info("imports - requests module is %s" % str(mod))
    return mod
예제 #20
0
def getsleek():
    try: mod = _import("sleekxmpp")
    except: mod = _import("jsb.contrib.sleekxmpp")
    logging.info("sleek module is %s" % str(mod))
    return mod
예제 #21
0
파일: imports.py 프로젝트: code2u/jsb
def getdns():
    try:
        mod = _import("dns")
    except: mod = _import("jsb.contrib.dns")
    logging.debug("imports - dns module is %s" % str(mod))
    return mod