refactor site_path

This commit is contained in:
Pratik Vyas 2013-09-25 12:40:33 +05:30
parent abf62eacca
commit a80f2e4431
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ def update_for_doc(doctype, doc):
exists = True
if not (filename.startswith("http://") or filename.startswith("https://")):
if not os.path.exists(webnotes.utils.get_storage_path(webnotes.conf.files_path, filename)):
if not os.path.exists(webnotes.utils.get_site_path(webnotes.conf.files_path, filename)):
exists = False
if exists:

View File

@ -4,7 +4,7 @@
import webnotes, os, webnotes.utils
def execute():
files_path = webnotes.utils.get_storage_path(webnotes.conf.files_path)
files_path = webnotes.utils.get_site_path(webnotes.conf.files_path)
webnotes.conn.auto_commit_on_many_writes = 1
for f in webnotes.conn.sql("""select name, file_name from