fix to product, blog

This commit is contained in:
Rushabh Mehta
2012-02-07 14:31:49 +05:30
parent 8ebf4e27ef
commit f9620eaf44
17 changed files with 99 additions and 11 deletions

6
wnf.py
View File

@@ -52,6 +52,8 @@ def setup_options():
help="Apply the patches on given db")
parser.add_option('--reload_doc', nargs=3, metavar = "module doctype docname",
help="reload doc")
parser.add_option('--export_doc', nargs=2, metavar = "doctype docname",
help="export doc")
return parser.parse_args()
@@ -121,6 +123,10 @@ def run():
{"module":options.reload_doc[0], "dt":options.reload_doc[1], "dn":options.reload_doc[2]})
print '\n'.join(webnotes.modules.patch_handler.log_list)
elif options.export_doc:
from webnotes.modules import export_doc
export_doc(options.export_doc[0], options.export_doc[1])
# run all pending
elif options.run_latest:
webnotes.modules.patch_handler.run_all()