def storeSTR(str,lang,txt): str = base64.b64encode(str) txt = base64.b64encode(txt) Hypertable=HypertableConnection() Hypertable.insert('TRANSLATIONS', str, "txt:"+lang, txt)
def storeGeoip(ip,country): if country is not None: Hypertable=HypertableConnection() Hypertable.insert('TEMP', ip, "G", country)