summaryrefslogtreecommitdiff
path: root/addons/import_google/wizard/import_google_data.py
diff options
context:
space:
mode:
authorSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-08-09 10:52:45 +0530
committerSanjay Gohel (Open ERP) <sgo@tinyerp.com>2012-08-09 10:52:45 +0530
commit374b834d9a689a1a9a19bc5fd1cc1e2ed7e04bca (patch)
tree830fddd3d30195eb8e9e31c7b4ff420ce545d7db /addons/import_google/wizard/import_google_data.py
parent0e77a7cbda6ea1e7500c42b84f741c5ecbd48a4e (diff)
parente970ecd62cb627a33832a561a082d211ab9923c7 (diff)
[MERGE]merge with trunk
bzr revid: sgo@tinyerp.com-20120809052245-638xhf0oyjtnhcak
Diffstat (limited to 'addons/import_google/wizard/import_google_data.py')
-rw-r--r--addons/import_google/wizard/import_google_data.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/addons/import_google/wizard/import_google_data.py b/addons/import_google/wizard/import_google_data.py
index 49127b85db8..bcc24b9e0de 100644
--- a/addons/import_google/wizard/import_google_data.py
+++ b/addons/import_google/wizard/import_google_data.py
@@ -73,7 +73,7 @@ class synchronize_google(osv.osv_memory):
user_obj = self.pool.get('res.users').browse(cr, uid, uid,context=context)
google=self.pool.get('google.login')
if not user_obj.gmail_user or not user_obj.gmail_password:
- raise osv.except_osv(_('Warning !'), _("No Google Username or password Defined for user.\nPlease define in user view"))
+ raise osv.except_osv(_('Warning!'), _("No Google Username or password is defined for user.\nPlease define on user's form."))
gd_client = google.google_login(user_obj.gmail_user,user_obj.gmail_password,type='group')
if not gd_client:
return [('failed', 'Connection to google fail')]
@@ -127,13 +127,13 @@ class synchronize_google(osv.osv_memory):
gmail_pwd = user_obj.gmail_password
google = self.pool.get('google.login')
if not gmail_user or not gmail_pwd:
- raise osv.except_osv(_('Error'), _("Invalid login detail !\n Specify Username/Password."))
+ raise osv.except_osv(_('Error!'), _("Invalid login detail !\nPlease specify correct username and password."))
if context.get('contact'):
- msg = " Your contacts are being imported in background, an email to %s will be sent when the process is over" % (user_obj.gmail_user)
+ msg = " Your contacts are being imported in background, an email to %s will be sent when the process is over." % (user_obj.gmail_user)
gd_client = google.google_login(gmail_user, gmail_pwd, type='contact')
if not gd_client:
- raise osv.except_osv(_('Error'), _("Please specify correct user and password !"))
+ raise osv.except_osv(_('Error!'), _("Please specify correct username and password!"))
if obj.group_name not in ['all']:
context.update({ 'group_name': obj.group_name})
tables.append('Contact')
@@ -145,7 +145,7 @@ class synchronize_google(osv.osv_memory):
'supplier':sup})
elif context.get('calendar'):
- msg = " You're Meeting are import in background, a email will be send when the process is finished to %s"%(user_obj.gmail_user)
+ msg = " Your meetings are being imported in background, an email to %s will be sent when the process is over."%(user_obj.gmail_user)
tables.append('Events')
current_rec = self.browse(cr, uid, ids, context=context)