def init_extraction(): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1
def push_new_data(): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1
def read_story (group_id, by_post = False): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1
def data_initializer (): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1
def init_extraction(): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1
def read_story(group_id, by_post=False): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1
def push_new_data(): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1
def data_initializer(): try: (conn, cursor) = openDb(True, True) except psycopg2.Error, e: print "Error %d: %s" % (e.pgcode, e.pgerror) return -1