Coverage for bookie.lib.tagcommands : 98%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Allow for tag based commands to act upon the bookmarks in the system
"""
def check_commands(tags): """Pretend to build up a list of commands based on the tags passed"""
"""See if we ehave any commands to apply to this bookmark""" # if this tag is a command then return true
"""see if there are any known commands and process them"""
# remove the tag from the bookmark
# run the command given the current state of the bookmark
"""Base of a command
api is basically a run() method that accepts the bookmark in question
"""
"""Run the command with the given Bmark object""" raise Exception("Not implemented")
"""Command to mark a bookmark as toread"""
def run(bmark): """Update this bookmark to toread status"""
# add our command to the list of those available
"""Command to mark a bookmark as read
This is basically just removing to toread tag from the bookmark It's just doing it as a command vs a manual edit to the tags
"""
def run(bmark): """Make sure we remove the toread tag"""
# add our command to the list of those available |