From: Stefan Berger Subject: [PATCH] [XM] Nicer display of security errors Date: Fri, 28 Mar 2008 16:46:49 -0400 Message-ID: <1206737209.30114.2.camel@gsal-3.watson.ibm.com> Reply-To: stefanb@us.ibm.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-uRnigkZGTU8vGK4s1xrV" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-uRnigkZGTU8vGK4s1xrV Content-Type: text/plain Content-Transfer-Encoding: 7bit This patch makes xm's printout of security errors look better Signed-off-by: Stefan Berger --=-uRnigkZGTU8vGK4s1xrV Content-Disposition: attachment; filename=xen_xm_security_error_print.diff Content-Type: text/x-patch; name=xen_xm_security_error_print.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Index: root/xen-unstable.hg/tools/python/xen/xm/XenAPI.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xm/XenAPI.py +++ root/xen-unstable.hg/tools/python/xen/xm/XenAPI.py @@ -64,6 +64,7 @@ errormap = { "HANDLE_INVALID": N_("The %(1)s handle %(2)s is invalid."), "OPERATION_NOT_ALLOWED": N_("You attempted an operation that was not allowed."), "NETWORK_ALREADY_CONNECTED": N_("The network you specified already has a PIF attached to it, and so another one may not be attached."), + "SECURITY_ERROR": N_("%(2)s"), } translation = gettext.translation('xen-xm', fallback = True) --=-uRnigkZGTU8vGK4s1xrV Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-uRnigkZGTU8vGK4s1xrV--