diff --git a/public/js/wn/model/sync.js b/public/js/wn/model/sync.js index 256a1f05b2..a212226f30 100644 --- a/public/js/wn/model/sync.js +++ b/public/js/wn/model/sync.js @@ -114,4 +114,7 @@ $.extend(wn.model, { return JSON.stringify({'_vl':values, '_kl':keys}); } -}); \ No newline at end of file +}); + +// legacy +compress_doclist = wn.model.compress; \ No newline at end of file diff --git a/wnf.py b/wnf.py index bd8000991b..8804b18443 100755 --- a/wnf.py +++ b/wnf.py @@ -35,15 +35,13 @@ def replace_code(start, txt1, txt2, extn, search=None, force=False): for fn in wt[2]: if fn.split('.')[-1]==extn: fpath = os.path.join(wt[0], fn) - if fpath != '/var/www/erpnext/erpnext/patches/jan_mar_2012/rename_dt.py': # temporary - with open(fpath, 'r') as f: - content = f.read() - - if re.search(search, content): - res = search_replace_with_prompt(fpath, txt1, txt2, force) - if res == 'skip': - return 'skip' - + with open(fpath, 'r') as f: + content = f.read() + + if re.search(search, content): + res = search_replace_with_prompt(fpath, txt1, txt2, force) + if res == 'skip': + return 'skip' def search_replace_with_prompt(fpath, txt1, txt2, force=False):