scripts/get_traffic.py
def write_to_file(self, referrers_file_path='', views_file_path='',
        clones_file_path='', date=(datetime.date.today()), organization='llnl',
        views_row_count=0, clones_row_count=0):
        """
        Writes all traffic data to file.
        """
        self.write_referrers_to_file(file_path=referrers_file_path)
        self.write_data_to_file(file_path=views_file_path,
            dict_to_write=self.views, name='views',
            row_count=views_row_count)
        self.write_data_to_file(file_path=clones_file_path,
            dict_to_write=self.clones, name='clones',
            row_count=clones_row_count)
def write_to_file(self, referrers_file_path='', views_file_path='',
        clones_file_path='', date=(datetime.date.today()), organization='llnl',
        views_row_count=0, clones_row_count=0):
        self.write_referrers_to_file(file_path=referrers_file_path)
        self.write_data_to_file(file_path=views_file_path,
            dict_to_write=self.views, name='views',
            row_count=views_row_count)
        self.write_data_to_file(file_path=clones_file_path,
            dict_to_write=self.clones, name='clones',
            row_count=clones_row_count)
def write_to_file ( self , referrers_file_path = '' , views_file_path = '' , clones_file_path = '' , date = ( datetime . date . today ( ) ) , organization = 'llnl' , views_row_count = 0 , clones_row_count = 0 ) : self . write_referrers_to_file ( file_path = referrers_file_path ) self . write_data_to_file ( file_path = views_file_path , dict_to_write = self . views , name = 'views' , row_count = views_row_count ) self . write_data_to_file ( file_path = clones_file_path , dict_to_write = self . clones , name = 'clones' , row_count = clones_row_count )
Writes all traffic data to file.
Writes all traffic data to file .