Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readbookmark.py
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-02-15 23:28:29 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-02-15 23:28:29 (GMT)
commitac6ac17eaad5859e570d82470d7c7dbb00d02477 (patch)
tree1aa3b0ec0856ce4d4ff2adc1f152f811a2718fb7 /readbookmark.py
parentad9a4d59d2a62dac7d3f1768d9dc1be37cd9b666 (diff)
Bookmark support
Diffstat (limited to 'readbookmark.py')
-rw-r--r--readbookmark.py15
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