[Zapp-cvs-commit] ZApp ZApp_MiscData.py,1.24,1.25
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2004-01-03 03:13:51
|
Update of /cvsroot/zapp/ZApp
In directory sc8-pr-cvs1:/tmp/cvs-serv23472
Modified Files:
ZApp_MiscData.py
Log Message:
make subtransaction more immediate on XML change..
Index: ZApp_MiscData.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_MiscData.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** ZApp_MiscData.py 2 Jan 2004 22:07:01 -0000 1.24
--- ZApp_MiscData.py 3 Jan 2004 03:13:48 -0000 1.25
***************
*** 22,25 ****
--- 22,27 ----
lprop = ZApp_Base.LeverProperty
+ DEFAULT_MISCNAMEATTR='miscAttributeNames'
+
props = lpcol(
[lprop(id='Manager'),
***************
*** 62,72 ****
_v_xmlDict = ComputedAttribute( _v_xmlDict )
! def buildXML(self):
""" create the XML to represent this object."""
! try:
! self.xml = dumps( (self._v_xmlDict,))
! except:
! import pdb
! pdb.set_trace()
return self.xml
--- 64,73 ----
_v_xmlDict = ComputedAttribute( _v_xmlDict )
! def buildXML(self, commit_now=1):
""" create the XML to represent this object."""
! self.xml = dumps( (self._v_xmlDict,))
!
! if commit_now:
! get_transaction().commit(1)
return self.xml
***************
*** 284,288 ****
}
- DEFAULT_MISCNAMEATTR='miscAttributeNames'
def setMiscDataFor(self, dataDict, miscNameAttr=DEFAULT_MISCNAMEATTR , dataType=''):
--- 285,288 ----
|