def save_data_to_mongo(cid, cdat, caset, xbundle=None): ''' Save course axis data to mongo cid = course_id cdat = course axis data caset = list of course axis data in dict format xbundle = XML bundle of course (everything except static files) ''' import save_to_mongo save_to_mongo.do_save(cid, caset, xbundle)
def save_data_to_mongo(cid, caset, bundle=None): """ Save course axis data to mongo cid = course_id caset = list of course axis data in dict format bundle = XML bundle of course (everything except static files) """ try: import save_to_mongo except ImportError: raise ImportError("Unable to import axis2bigquery.") save_to_mongo.do_save(cid, caset, bundle)