71
73
def list_pages(self, namespace):
72
74
'''Generator function to iterate over pages in a namespace'''
73
75
import os # using os directly here for efficiency
75
76
dir = self._get_dir(namespace)
78
80
continue # no hidden files in our page list
79
81
elif file.endswith('.txt'): # TODO: do not hard code extension
83
83
elif os.path.isdir( os.path.join(dir.path, file) ):