added docdiff and removed un-necessary files

This commit is contained in:
Rushabh Mehta
2012-02-22 15:55:41 +05:30
parent c5471ddb8d
commit 17773d0763
27 changed files with 13 additions and 3163 deletions

9
wnf.py
View File

@@ -56,7 +56,10 @@ def setup_options():
help="export doc")
parser.add_option('--install', nargs=3, metavar = "rootpassword dbname source",
help="install fresh db")
parser.add_option('--sync_with_gateway', nargs=1, metavar = "1/0", help="Set or Unset Sync with Gateway")
parser.add_option('--sync_with_gateway', nargs=1, metavar = "1/0", \
help="Set or Unset Sync with Gateway")
parser.add_option('--docdiff', nargs=0, \
help="Get diff between .txt files and database records")
return parser.parse_args()
@@ -152,6 +155,10 @@ def run():
else:
webnotes.message_log.append("ERROR: sync_with_gateway can be either 0 or 1")
elif options.docdiff is not None:
import webnotes.modules.diff
webnotes.modules.diff.diff()
# print messages
if webnotes.message_log:
print '\n'.join(webnotes.message_log)