testing for top-level objects only

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Roman Rolinsky 2005-09-09 09:35:07 +00:00
parent 96a9f4e8dd
commit 14653d3b83
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
0.1.6-5
-------
Testing limited to top-level objects because of references
problem until a nice solution is found.
0.1.6-4
-------

View File

@ -719,6 +719,9 @@ class XML_Tree(wxTreeCtrl):
if g.panel.IsModified():
self.Apply(xxx, item) # apply changes
treeObj = xxx.treeObject()
if self.GetItemParent(item) != self.root:
wxLogMessage('Only top-level objects can be tested')
return
if treeObj.className not in ['wxFrame', 'wxPanel', 'wxDialog',
'wxMenuBar', 'wxToolBar', 'wxWizard',
'wxWizardPageSimple']:
@ -810,7 +813,6 @@ class XML_Tree(wxTreeCtrl):
next = elem.nextSibling
encd = self.rootObj.params['encoding'].value()
if not encd: encd = None
self.dom.writexml(open('ttt.xrc','w'), encoding=encd)
self.dom.writexml(memFile, encoding=encd)
# Put back in place
# Remove temporary name or restore changed