Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This allows you to raise a warning if dependencies are not unmet #39

Open
wants to merge 2 commits into
base: 8.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions auto_backup/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
4) If you want to write backups to a remote location you should fill in the SFTP details.
""",
"depends" : ['base'],
"external_dependencies": {
'python': ['pysftp']
},
"init_xml" : [],
"demo_xml" : [],
"update_xml" : ["bkp_conf_view.xml","backup_data.xml"],
Expand Down
4 changes: 3 additions & 1 deletion auto_backup/backup_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
import datetime
import base64
import re

try:
import pysftp
except ImportError:
raise ImportError('This module needs pysftp to automaticly write backups to the FTP through SFTP. Please install pysftp on your system. (sudo pip install pysftp)')
pass

from openerp.osv import fields,osv,orm
from openerp import tools
from openerp import netsvc
Expand Down