Browse Source

fix in backup download url

version-14
Anand Doshi 13 years ago
parent
commit
c24965c6d5
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      py/webnotes/utils/backups.py

+ 6
- 1
py/webnotes/utils/backups.py View File

@@ -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…
Cancel
Save