changeset 129:ace48040b01d

Added CLI option to list pages from the file-system.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 27 Nov 2013 23:28:46 -0800
parents cfa92a67a31f
children 72e5f588f989
files manage.py
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/manage.py	Sun Nov 24 19:35:03 2013 -0800
+++ b/manage.py	Wed Nov 27 23:28:46 2013 -0800
@@ -49,11 +49,15 @@
 
 
 @manager.command
-def list():
+def list(fs=False):
     """ Lists page names in the wiki.
     """
-    for url in wiki.db.getPageUrls():
-        print url
+    if fs:
+        for pi in wiki.fs.getPageInfos():
+            print pi.url
+    else:
+        for url in wiki.db.getPageUrls():
+            print url
 
 
 @manager.command