From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reiner Sailer Subject: [PATCH][ACM EZPOLICY TOOL] Make xensec_ezpolicy ready for wx/Python 2.5 Date: Sat, 10 Feb 2007 00:08:04 -0500 Message-ID: <45CD5334.4060409@us.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010506090206080804000001" 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------010506090206080804000001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Updates xensec_ezpolicy ACM policy generation tool so that it works with wxPython under Python 2.5 as well. Thanks Reiner Signed-off by: Reiner Sailer --------------010506090206080804000001 Content-Type: text/plain; name="ezpolicy_patch.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ezpolicy_patch.diff" --- tools/security/xensec_ezpolicy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) Index: xen-unstable.hg/tools/security/xensec_ezpolicy =================================================================== --- xen-unstable.hg.orig/tools/security/xensec_ezpolicy +++ xen-unstable.hg/tools/security/xensec_ezpolicy @@ -45,9 +45,6 @@ class orgTreeCtrl(wx.TreeCtrl): validator, name) self.parent = parent orgs_root = self.AddRoot(text="Organization / Department") - rootfont = wx.Font(pointSize=12, family=wx.FONTFAMILY_DEFAULT, - style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_LIGHT) - self.SetItemFont(orgs_root, rootfont) self.SetItemBackgroundColour(orgs_root, wx.LIGHT_GREY) @@ -276,6 +273,7 @@ class ConsPanel(wx.Panel): def RefreshMe(self): size=self.parent.GetSize() self.parent.Fit() + self.parent.SetSize(size + (1,1)) self.parent.SetSize(size) --------------010506090206080804000001 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 --------------010506090206080804000001--