Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18675/Pythonwin/pywin/tools
Modified Files:
Tag: py3k
hierlist.py regedit.py
Log Message:
fix all 'xxx_todo_changeme' items in py3k branch
Index: regedit.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools/regedit.py,v
retrieving revision 1.2.4.1
retrieving revision 1.2.4.2
diff -C2 -d -r1.2.4.1 -r1.2.4.2
*** regedit.py 29 Aug 2008 06:16:42 -0000 1.2.4.1
--- regedit.py 2 Oct 2008 13:06:37 -0000 1.2.4.2
***************
*** 10,16 ****
fn(*args)
return 1
! except win32api.error as xxx_todo_changeme:
! (rc, fn, msg) = xxx_todo_changeme.args
! msg = "Error " + err_desc + "\r\n\r\n" + msg
win32ui.MessageBox(msg)
return 0
--- 10,15 ----
fn(*args)
return 1
! except win32api.error as exc:
! msg = "Error " + err_desc + "\r\n\r\n" + exc.strerror
win32ui.MessageBox(msg)
return 0
***************
*** 42,47 ****
return 1
! def OnItemDoubleClick(self, xxx_todo_changeme1, extra):
! (hwndFrom, idFrom, code) = xxx_todo_changeme1
if idFrom==win32ui.AFX_IDW_PANE_FIRST:
# Tree control
--- 41,46 ----
return 1
! def OnItemDoubleClick(self, info, extra):
! (hwndFrom, idFrom, code) = info
if idFrom==win32ui.AFX_IDW_PANE_FIRST:
# Tree control
***************
*** 220,226 ****
try:
self.SetItemsCurrentValue(item, keyVal, d.newvalue)
! except win32api.error as xxx_todo_changeme2:
! (rc, fn, desc) = xxx_todo_changeme2.args
! win32ui.MessageBox("Error setting value\r\n\n%s" % desc)
self.UpdateForRegItem(item)
--- 219,224 ----
try:
self.SetItemsCurrentValue(item, keyVal, d.newvalue)
! except win32api.error as exc:
! win32ui.MessageBox("Error setting value\r\n\n%s" % exc.strerror)
self.UpdateForRegItem(item)
Index: hierlist.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/tools/hierlist.py,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -C2 -d -r1.7.2.1 -r1.7.2.2
*** hierlist.py 29 Aug 2008 06:16:42 -0000 1.7.2.1
--- hierlist.py 2 Oct 2008 13:06:36 -0000 1.7.2.2
***************
*** 124,129 ****
self.notify_parent = None # Break a possible cycle
! def OnTreeItemDoubleClick(self, xxx_todo_changeme, extra):
! (hwndFrom, idFrom, code) = xxx_todo_changeme
if idFrom != self.listBoxId: return None
item = self.itemHandleMap[self.listControl.GetSelectedItem()]
--- 124,129 ----
self.notify_parent = None # Break a possible cycle
! def OnTreeItemDoubleClick(self, info, extra):
! (hwndFrom, idFrom, code) = info
if idFrom != self.listBoxId: return None
item = self.itemHandleMap[self.listControl.GetSelectedItem()]
***************
*** 131,136 ****
return 1
! def OnTreeItemExpanding(self, xxx_todo_changeme1, extra):
! (hwndFrom, idFrom, code) = xxx_todo_changeme1
if idFrom != self.listBoxId: return None
action, itemOld, itemNew, pt = extra
--- 131,136 ----
return 1
! def OnTreeItemExpanding(self, info, extra):
! (hwndFrom, idFrom, code) = info
if idFrom != self.listBoxId: return None
action, itemOld, itemNew, pt = extra
***************
*** 142,147 ****
return 0
! def OnTreeItemSelChanged(self, xxx_todo_changeme2, extra):
! (hwndFrom, idFrom, code) = xxx_todo_changeme2
if idFrom != self.listBoxId: return None
action, itemOld, itemNew, pt = extra
--- 142,147 ----
return 0
! def OnTreeItemSelChanged(self, info, extra):
! (hwndFrom, idFrom, code) = info
if idFrom != self.listBoxId: return None
action, itemOld, itemNew, pt = extra
|