]> git.phdru.name Git - bookmarks_db.git/blob - Writers/bkmk_wflad_err.py
a0a586a3cda246db96581727db8c6fe11a3054dc
[bookmarks_db.git] / Writers / bkmk_wflad_err.py
1 """
2    Dump bookmarks db to a more readable FLAD after check_urls
3
4    Written by BroytMann, Oct 2000 - Aug 2004. Copyright (C) 2000-2004 PhiloSoft Design
5 """
6
7
8 import time
9 from bkmk_wflad import writer_flad
10
11
12 def strftime(s):
13    return time.strftime("%a %d %b %Y %T", time.localtime(int(s)))
14
15
16 class writer_flad_err(writer_flad):
17    filename = "bookmarks_db.errors"
18
19    def bookmark(self, b, level):
20       if hasattr(b, "error"):
21          writer_flad.bookmark(self, b, level)