Merge branch 'master' of github.com:webnotes/wnframework into handlerupdate
This commit is contained in:
commit
6552ef1b15
1 changed files with 6 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ from datetime import datetime
|
|||
|
||||
|
||||
#Global constants
|
||||
from webnotes.defs import backup_path, backup_link_path, backup_url
|
||||
from webnotes.defs import backup_path, backup_link_path
|
||||
verbose = 0
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
|
@ -98,6 +98,11 @@ class BackupGenerator:
|
|||
"""
|
||||
Sends the link to backup file located at erpnext/backups
|
||||
"""
|
||||
if hasattr(webnotes.defs, 'backup_url'):
|
||||
backup_url = webnotes.defs.backup_url
|
||||
else:
|
||||
backup_url = webnotes.conn.get_value('Website Settings',
|
||||
'Website Settings', 'subdomain') or ''
|
||||
file_url = os.path.join(backup_url, backup_file)
|
||||
from webnotes.utils.email_lib import sendmail
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue