diff --git a/addons/edi/edi_service.py b/addons/edi/edi_service.py index f48cc60950a..63fe38786e0 100644 --- a/addons/edi/edi_service.py +++ b/addons/edi/edi_service.py @@ -40,7 +40,7 @@ class edi(netsvc.ExportService): res = getattr(edi_document, method_name)(cr, *method_args) cr.commit() except Exception: - _logger.exception('Failed to execute EDI method %s with args %r', method_name, method_args) + _logger.exception('Failed to execute EDI method %s with args %r.', method_name, method_args) raise finally: cr.close() @@ -63,7 +63,7 @@ class edi(netsvc.ExportService): # No security check for these methods pass else: - raise KeyError("Method not found: %s" % method) + raise KeyError("Method not found: %s." % method) fn = getattr(self, 'exp_'+method) return fn(*params) diff --git a/addons/edi/models/edi.py b/addons/edi/models/edi.py index dadfeb81209..24f09e3fe80 100644 --- a/addons/edi/models/edi.py +++ b/addons/edi/models/edi.py @@ -129,7 +129,7 @@ class edi_document(osv.osv): _logger.debug("get_document(%s)", edi_token) edi_ids = self.search(cr, uid, [('name','=', edi_token)], context=context) if not edi_ids: - raise ValueError('Invalid EDI token: %s' % edi_token) + raise ValueError('Invalid EDI token: %s.' % edi_token) edi = self.browse(cr, uid, edi_ids[0], context=context) return edi.document diff --git a/addons/event/event.py b/addons/event/event.py index 6a8cf9f8a0b..e8c6eb31e3e 100644 --- a/addons/event/event.py +++ b/addons/event/event.py @@ -102,7 +102,7 @@ class event_event(osv.osv): for self.event in self.browse(cr, uid, ids, context=context): total_confirmed = self.event.register_current if total_confirmed < self.event.register_min or total_confirmed > self.event.register_max and self.event.register_max!=0: - raise osv.except_osv(_('Error!'),_("The total of confirmed registration for the event '%s' does not meet the expected minimum/maximum. You should maybe reconsider those limits before going further") % (self.event.name)) + raise osv.except_osv(_('Error!'),_("The total of confirmed registration for the event '%s' does not meet the expected minimum/maximum. Please reconsider those limits before going further.") % (self.event.name)) def check_registration_limits_before(self, cr, uid, ids, no_of_registration, context=None): for event in self.browse(cr, uid, ids, context=context): diff --git a/addons/event_moodle/event_moodle.py b/addons/event_moodle/event_moodle.py index 7414abe4613..19e763e91b0 100644 --- a/addons/event_moodle/event_moodle.py +++ b/addons/event_moodle/event_moodle.py @@ -54,7 +54,7 @@ class event_moodle(osv.osv): """ moodle_config_wiz_ids = self.search(cr, uid, [], context=context) if not moodle_config_wiz_ids: - raise osv.except_osv(('Error!'),("Configure your moodle connexion before")) + raise osv.except_osv(('Error!'),("First configure your moodle connection.")) return moodle_config_wiz_ids[0] def make_url(self, cr, uid, ids, context=None): @@ -132,7 +132,7 @@ class event_moodle(osv.osv): """ if email: if (email.count('@') != 1 and email.count('.') < 1): - raise osv.except_osv(_('Error!'),_("Your email '%s' is wrong") % (email)) + raise osv.except_osv(_('Error!'),_("Your email '%s' is wrong.") % (email)) def make_username(self, username, response_courses): """ diff --git a/addons/event_sale/test/confirm.yml b/addons/event_sale/test/confirm.yml index 53bc7b8b0a1..c46221acc68 100644 --- a/addons/event_sale/test/confirm.yml +++ b/addons/event_sale/test/confirm.yml @@ -50,5 +50,5 @@ order = self.pool.get('sale.order').browse(cr, uid,order_id) registration_ids = self.search(cr,uid,[('origin','=',order.name)]) if registration_ids == []: - raise osv.except_osv(_('Error!'),_("The registration is not created")) + raise osv.except_osv(_('Error!'),_("The registration is not created.")) diff --git a/addons/fetchmail/fetchmail.py b/addons/fetchmail/fetchmail.py index 55923c3043a..06b4819ffde 100644 --- a/addons/fetchmail/fetchmail.py +++ b/addons/fetchmail/fetchmail.py @@ -151,8 +151,8 @@ openerp_mailgate.py -u %(uid)d -p PASSWORD -o %(model)s -d %(dbname)s --host=HOS connection = server.connect() server.write({'state':'done'}) except Exception, e: - _logger.exception("Failed to connect to %s server %s", server.type, server.name) - raise osv.except_osv(_("Connection test failed!"), _("Here is what we got instead:\n %s") % tools.ustr(e)) + _logger.exception("Failed to connect to %s server %s.", server.type, server.name) + raise osv.except_osv(_("Connection test failed!"), _("Here is what we got instead:\n %s.") % tools.ustr(e)) finally: try: if connection: