iwla

iwla Commit Details

Date:2015-01-13 18:52:35 (6 years 6 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:75b11c2e979d532cdf987a4879332aac238372aa
Parents: 4c74a14037f69c14188d239ee7e90ab9f2429825
Message:Add isMultimediaFile() and generate after serialization

Changes:
Miwla.py (3 diffs)

File differences

iwla.py
275275
276276
277277
278
279
280
281
282
283
284
285
286
278287
279288
280289
......
578587
579588
580589
581
582
583590
584591
585592
......
595602
596603
597604
605
606
598607
599608
600609
self.logger.debug("False")
return False
def isMultimediaFile(self, request):
self.logger.debug("Is multimedia %s" % (request))
for e in conf.multimedia_files:
if request.endswith(e):
self.logger.debug("True")
return True
self.logger.debug("False")
return False
def _appendHit(self, hit):
remote_addr = hit['remote_addr']
if os.path.exists(path):
os.remove(path)
self._generateDisplay()
self.logger.info("==> Serialize to %s" % (path))
self._serialize(self.current_analysis, path)
self.logger.info("==> Serialize to %s" % (conf.META_PATH))
self._serialize(self.meta_infos, conf.META_PATH)
self._generateDisplay()
def _generateDayStats(self):
visits = self.current_analysis['visits']
cur_time = self.meta_infos['last_time']

Archive Download the corresponding diff file

Branches

Tags