diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-15 23:28:29 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-15 23:28:29 (GMT) |
commit | ac6ac17eaad5859e570d82470d7c7dbb00d02477 (patch) | |
tree | 1aa3b0ec0856ce4d4ff2adc1f152f811a2718fb7 /readbookmark.py | |
parent | ad9a4d59d2a62dac7d3f1768d9dc1be37cd9b666 (diff) |
Bookmark support
Diffstat (limited to 'readbookmark.py')
-rw-r--r-- | readbookmark.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/readbookmark.py b/readbookmark.py new file mode 100644 index 0000000..532e618 --- /dev/null +++ b/readbookmark.py @@ -0,0 +1,15 @@ +class Bookmark: + def __init__(self, data): + self.md5 = data[0] + self.page_no = data[1] + self.title = data[2] + self.timestamp = data[3] + self.nick = data[4] + self.color = data[5] + self.local = data[6] + + def belongstopage(self, page_no): + return self.page_no == page_no + + def is_local(self): + return bool(self.local)
\ No newline at end of file |