[Zapp-cvs-commit] ZApp ZApp_CMFBase.py,1.31,1.32 ZApp_Specialist.py,1.36,1.37
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2004-02-05 22:04:20
|
Update of /cvsroot/zapp/ZApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13191 Modified Files: ZApp_CMFBase.py ZApp_Specialist.py Log Message: added replication example.. Index: ZApp_CMFBase.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_CMFBase.py,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** ZApp_CMFBase.py 5 Feb 2004 20:55:58 -0000 1.31 --- ZApp_CMFBase.py 5 Feb 2004 22:01:33 -0000 1.32 *************** *** 9,12 **** --- 9,13 ---- from ZApp_Base import ZApp_Base, extendProperties, LeverPropertyCollection, LeverProperty + from ZApp_Specialist import ZApp_Specialist from ZApp_LOG import ZApp_LOG *************** *** 92,102 **** def calcPathID(self): - try: if self.id.find(',') != -1: result = self.id else: objPath = ','.join(self.getPhysicalPath()) ! portal_object = self.zapp_portal_object portalPath = ','.join(portal_object.getPhysicalPath()) + ',' result = objPath[len(portalPath)-1:] --- 93,103 ---- def calcPathID(self): try: if self.id.find(',') != -1: result = self.id else: + app = self.findApplication() objPath = ','.join(self.getPhysicalPath()) ! portal_object = app.zapp_portal_object portalPath = ','.join(portal_object.getPhysicalPath()) + ',' result = objPath[len(portalPath)-1:] *************** *** 276,280 **** del self._v_safeStorageID # we've got it now.. thanks. ;-) ! self.change( cmf_portal_type = self.portal_type) get_transaction().commit(1) --- 277,281 ---- del self._v_safeStorageID # we've got it now.. thanks. ;-) ! self.change( cmf_portal_type = self.portal_type) get_transaction().commit(1) Index: ZApp_Specialist.py =================================================================== RCS file: /cvsroot/zapp/ZApp/ZApp_Specialist.py,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** ZApp_Specialist.py 25 Jan 2004 20:58:45 -0000 1.36 --- ZApp_Specialist.py 5 Feb 2004 22:01:43 -0000 1.37 *************** *** 605,608 **** --- 605,610 ---- if not itemID: + import pdb + pdb.set_trace() raise RuntimeError, ("Can't be! got null id in %s.chachedSelectItemResult()" % self.id) |