merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 14 Dec 2009 14:49:37 +0100
branchstable
changeset 4112 b33a9f3e19d6
parent 4111 1fda1d356741 (current diff)
parent 4098 eb4722dd5f86 (diff)
child 4115 6ec0fca70701
child 4116 20b23af4e51e
merge
server/hooks.py
--- a/server/hooks.py	Mon Dec 14 14:49:18 2009 +0100
+++ b/server/hooks.py	Mon Dec 14 14:49:37 2009 +0100
@@ -537,7 +537,9 @@
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.has_input_state(fromstate):
                 _ = session._
-                msg = _("transition %s isn't allowed from %s") % (_(tr.name), _(fromstate.name))
+                msg = _("transition %(tr)s isn't allowed from %(st)s") % {'tr': _(tr.name),
+                                                                          'st': _(fromstate.name),
+                                                                          }
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.may_be_fired(foreid):
                 msg = session._("transition may not be fired")
--- a/web/views/formrenderers.py	Mon Dec 14 14:49:18 2009 +0100
+++ b/web/views/formrenderers.py	Mon Dec 14 14:49:37 2009 +0100
@@ -457,7 +457,6 @@
                 w(u'</tr>')
         w(u'<tr id="relationSelectorRow_%s" class="separator">' % eid)
         w(u'<th class="labelCol">')
-        w(u'<span>%s</span>' % _('add relation'))
         w(u'<select id="relationSelector_%s" tabindex="%s" '
           'onchange="javascript:showMatchingSelect(this.options[this.selectedIndex].value,%s);">'
           % (eid, req.next_tabindex(), xml_escape(dumps(eid))))