diff options
| author | Foram Katharotiya (OpenERP) <fka@tinyerp.com> | 2012-08-13 15:55:19 +0530 |
|---|---|---|
| committer | Foram Katharotiya (OpenERP) <fka@tinyerp.com> | 2012-08-13 15:55:19 +0530 |
| commit | 1bf105837ed5cad0715b20ef501e7147af87c7ef (patch) | |
| tree | 7a292e7311c91e6e0acafe7359dd1e7f1d7a4cb9 /addons/import_google/wizard/import_google_data.py | |
| parent | dae19bc174b3962088bf4b9fd0701f80ab8f8e5e (diff) | |
| parent | 03e6f93fcffa7775754bf5198478b5927d8ffe1c (diff) | |
[MERGE]merge with lp:~openerp-dev/openobject-addons/trunk-message-sub-type-apa
bzr revid: fka@tinyerp.com-20120813102519-9h3fpqj29dse2p3m
Diffstat (limited to 'addons/import_google/wizard/import_google_data.py')
| -rw-r--r-- | addons/import_google/wizard/import_google_data.py | 10 |
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) |
