comparison manage.py @ 30:420ff74c2e28

Added a shell command to list all the pages in the wiki.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 06 Jan 2013 20:16:19 -0800
parents 30ae685b86df
children f63a2062fb99
comparison
equal deleted inserted replaced
29:e2585a9da30a 30:420ff74c2e28
33 somehow in your wiki. 33 somehow in your wiki.
34 """ 34 """
35 wiki.index.reset(wiki.getPages()) 35 wiki.index.reset(wiki.getPages())
36 36
37 37
38 @manager.command
39 def list():
40 """ Lists page names in the wiki.
41 """
42 for url in wiki.getPageUrls():
43 print url
44
45
38 if __name__ == "__main__": 46 if __name__ == "__main__":
39 manager.run() 47 manager.run()
40 48