]> git.phdru.name Git - bookmarks_db.git/blob - Writers/bkmk_wflad_err.py
Added __all__.
[bookmarks_db.git] / Writers / bkmk_wflad_err.py
1 """Dump bookmarks db to a more readable FLAD after check_urls
2
3 This file is a part of Bookmarks database and Internet robot.
4 """
5
6 __version__ = "$Revision$"[11:-2]
7 __revision__ = "$Id$"[5:-2]
8 __date__ = "$Date$"[7:-2]
9 __author__ = "Oleg Broytman <phd@phdru.name>"
10 __copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
11 __license__ = "GNU GPL"
12
13 __all__ = ['writer_flad_err']
14
15
16 import time
17 from bkmk_wflad import writer_flad
18
19
20 def strftime(s):
21    return time.strftime("%a %d %b %Y %T", time.localtime(int(s)))
22
23
24 class writer_flad_err(writer_flad):
25    filename = "bookmarks_db.errors"
26
27    def bookmark(self, b, level):
28       if hasattr(b, "error"):
29          writer_flad.bookmark(self, b, level)