MCPcopy Create free account
hub / github.com/ActiveState/code / retPrevFile

Method retPrevFile

recipes/Python/271246_pyAlbumpy/recipe-271246.py:51–56  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

49 self.slideName = "htmls"
50
51 def retPrevFile(self, index):
52 if(index == 0):
53 return "<span class=\"no_go\">&laquo; <b>No Previous</b></span>"
54 else:
55 str = """&laquo; <a href="%s">Previous</a>""" % (self.slideName + self.files[self.count - 1] + '.htm')
56 return str
57
58 def retNextFile(self, index):
59 if(index == len(self.files) - 1):

Callers 1

createHTMLsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected