WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][ACM EZPOLICY TOOL] Make xensec_ezpolicy ready for wx

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][ACM EZPOLICY TOOL] Make xensec_ezpolicy ready for wx/Python 2.5
From: Reiner Sailer <sailer@xxxxxxxxxx>
Date: Sat, 10 Feb 2007 00:08:04 -0500
Delivery-date: Fri, 09 Feb 2007 21:07:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)
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 <sailer@xxxxxxxxxx>

---
 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)
 
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][ACM EZPOLICY TOOL] Make xensec_ezpolicy ready for wx/Python 2.5, Reiner Sailer <=