Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/g/o/Google2Piwik-HEAD/google2piwik.py   Google2Piwik(Download)
    while currentdate <= enddate:
        VERBOSE("Exporting %s" % currentdate)
        if sql.nb_visits_day(currentdate, config.ID_SITE) == 0:
            export_day(str(currentdate), fetcher)
        else:
    action_manager.export(config.SITE_BASE_URL, CURRENT_VERSION)
    VERBOSE("ACTION: Completed", 2)
    additional  = {"idsite" : config.ID_SITE, "visit_server_date" : day}
 
    simulator.finalize(additional)
                try:
                    sql.insert_log_visit_action((visit.idvisit, visit.get_final_value("idcookie"),
                                                 visit.get_final_value("visit_server_date"), config.ID_SITE,
                                                 real_action.id_action_url, real_action.id_action_url,
                                                 real_action.id_action_name, real_action.average))
            try:
                sql.insert_log_visit_action((visit.idvisit, visit.get_final_value("idcookie"),
                                             visit.get_final_value("visit_server_date"), config.ID_SITE,
                                             real_action.id_action_url, real_action.id_action_url,
                                             real_action.id_action_name, real_action.average))
        print "Checking site:",
        try:
            sql.check_site(config.ID_SITE)
            print "[OK]"
        except:

src/g/o/Google2Piwik-HEAD/google2piwikgui.py   Google2Piwik(Download)
    def run(self):
        try:
            sql.initialize(config.MYSQL_CREDENTIALS)
            sql.update_site_ts_created(config.ID_SITE, config.CONFIG_START)
            google2piwik.export_period(config.CONFIG_START, config.CONFIG_END)