comparison manage.py @ 108:5c24e8f8b095

Added support for the `force_resolve` flag.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 12 Nov 2013 13:52:01 -0800
parents 13249e5ca51c
children a65cedc183d6
comparison
equal deleted inserted replaced
107:2654e243de8c 108:5c24e8f8b095
62 for url in wiki.db.getPageUrls(): 62 for url in wiki.db.getPageUrls():
63 print url 63 print url
64 64
65 65
66 @manager.command 66 @manager.command
67 def get(url): 67 def get(url, resolve=False):
68 """ Gets a page that matches the given URL. 68 """ Gets a page that matches the given URL.
69 """ 69 """
70 page = wiki.getPage(url) 70 page = wiki.getPage(url)
71 if resolve:
72 page._force_resolve = True
71 print page.text 73 print page.text
72 74
73 75
74 if __name__ == "__main__": 76 if __name__ == "__main__":
75 manager.run() 77 manager.run()