[Zapp-cvs-commit] ZApp ZApp_CMFBase.py,1.15,1.16 ZApp_MiscData.py,1.18,1.19
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2003-09-11 09:47:20
|
Update of /cvsroot/zapp/ZApp
In directory sc8-pr-cvs1:/tmp/cvs-serv14377
Modified Files:
ZApp_CMFBase.py ZApp_MiscData.py
Log Message:
improve copy/paste support
Index: ZApp_CMFBase.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_CMFBase.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** ZApp_CMFBase.py 8 Aug 2003 02:47:54 -0000 1.15
--- ZApp_CMFBase.py 11 Sep 2003 09:47:03 -0000 1.16
***************
*** 78,81 ****
--- 78,94 ----
return "OK!"
+ def _setId(self, id):
+ # check for rename operation..
+ currID = self.__dict__.get('id',None)
+ print "in _setID of CMFBase..."
+
+ if currID is not None:
+ self.__dict__['_v_ZApp_OrigID'] = currID
+ print "currID was not none... but " + currID
+ else:
+ print "currID was None."
+
+ return ZApp_Base._setId(self, id)
+
def _notifyOfCopyTo(self, container, op=0):
"""we use _notifyOfCopy to save our miscData to a volitile container property
***************
*** 86,90 ****
#for action in actions:
#if action.getId() ==
! #print "in notify copy.. "
copyID = '_v_' + self.id + 'copyXML'
setattr(container, copyID, self.safeMiscData.getXMLDict())
--- 99,103 ----
#for action in actions:
#if action.getId() ==
! print "in notify copy.. "
copyID = '_v_' + self.id + 'copyXML'
setattr(container, copyID, self.safeMiscData.getXMLDict())
Index: ZApp_MiscData.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_MiscData.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** ZApp_MiscData.py 20 Aug 2003 11:19:26 -0000 1.18
--- ZApp_MiscData.py 11 Sep 2003 09:47:03 -0000 1.19
***************
*** 169,173 ****
Manager = self.miscDataManagerKey
else:
! Manager = self.aq_parent.id
return Manager
--- 169,173 ----
Manager = self.miscDataManagerKey
else:
! Manager = self.aq_inner.aq_parent.id
return Manager
***************
*** 200,204 ****
break
! return mdm
def setupMiscData(self, Manager=None, dataType='', checked=0):
--- 200,204 ----
break
! return mdm or None
def setupMiscData(self, Manager=None, dataType='', checked=0):
|