[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH][ACM EZPOLICY TOOL] [CORRECTED]Make xensec_ezpolicy ready for wx/Python 2.5



This patch updates the xensec_ezpolicy ACM policy generation tool so that it works with wxPython under Python 2.5 as well. This patch includes one more fix than the last submission and is tested both on Python 2.4 and 2.5.

Thanks
Reiner

Signed-off by: Reiner Sailer <sailer@xxxxxxxxxx>
---
 tools/security/xensec_ezpolicy |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Index: xen-unstable.hg-shype/tools/security/xensec_ezpolicy
===================================================================
--- xen-unstable.hg-shype.orig/tools/security/xensec_ezpolicy
+++ xen-unstable.hg-shype/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)
 
 
@@ -880,7 +878,7 @@ class ezFrame(wx.Frame):
 
     def _OpenSpec(self, event):
         filediag = wx.FileDialog(self, defaultFile="myspec.wld",
-                                wildcard="*.wld", style=wx.OPEN | 
wx.OVERWRITE_PROMPT,
+                                wildcard="*.wld", style=wx.OPEN,
                                 message="Select Workload Definition file name")
         ret = filediag.ShowModal()
         name = filediag.GetPath()
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.