def yield_verses(mod): from swlib.pysw import VK, TOP vk = VK() vk.Headings(1) vk.setPosition(TOP) #vk.setText("Matthew 1:1") vk.Persist(1) vk.thisown = False mod.setKey(vk) books = ("Genesis", "Matthew")#"Exodus") while not vk.Error(): #while vk.Testament() in '\x00\x01': #while vk.Testament() == '\x00' or vk.Book() == '\x00' or \ # vk.getBookName() in books: yield vk.increment(1)
def yield_verses(mod): from swlib.pysw import VK, TOP vk = VK() vk.Headings(1) vk.setPosition(TOP) #vk.setText("Matthew 1:1") vk.Persist(1) vk.thisown = False mod.setKey(vk) books = ("Genesis", "Matthew") #"Exodus") while not vk.Error(): #while vk.Testament() in '\x00\x01': #while vk.Testament() == '\x00' or vk.Book() == '\x00' or \ # vk.getBookName() in books: yield vk.increment(1)
def get_key(self, module): vk = VK((self.bookname, self.bookname)) vk.Headings(0) vk.setPosition(TOP) return vk