[Zapp-cvs-commit] ZApp ZApp_CMFBase.py,1.22,1.23 ZApp_Specialist.py,1.34,1.35
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2004-01-09 11:28:34
|
Update of /cvsroot/zapp/ZApp
In directory sc8-pr-cvs1:/tmp/cvs-serv8647
Modified Files:
ZApp_CMFBase.py ZApp_Specialist.py
Log Message:
don't ever use 'title' in _properties
Index: ZApp_CMFBase.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_CMFBase.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** ZApp_CMFBase.py 5 Jan 2004 22:27:10 -0000 1.22
--- ZApp_CMFBase.py 9 Jan 2004 11:28:31 -0000 1.23
***************
*** 21,25 ****
props = lpcol(
[
- lprop(id='title'),
lprop(id='cmf_portal_type'),
lprop(id='safeStorageID'),
--- 21,24 ----
***************
*** 138,141 ****
--- 137,142 ----
item._ZCMFnotifyOfCopyTo( self, op, mdm, notify_depth+1, safeStorage)
+ class_default_for__ZCMF_CheckNotify = None # no method, just none for default
+
def _ZCMFnotifyOfCopyTo(self, container, op=0, mdm=None, notify_depth=0, safeStorage=None):
"""we use _notifyOfCopy to save our miscData to a property
***************
*** 167,170 ****
--- 168,176 ----
self._subobjectNotify( op, mdm, notify_depth, safeStorage)
+ if self._ZCMF_CheckNotify:
+ self._ZCMF_CheckNotify( container, op )
+
+ return "OK!"
+
def _setId(self, id):
#
***************
*** 235,241 ****
#
oldSelf.manage_delete()
-
else:
-
oldSelf.change(safeStorageID = '')
--- 241,245 ----
Index: ZApp_Specialist.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_Specialist.py,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** ZApp_Specialist.py 8 Jan 2004 15:26:50 -0000 1.34
--- ZApp_Specialist.py 9 Jan 2004 11:28:31 -0000 1.35
***************
*** 382,387 ****
objects managed by this Specialist. Call in context of Specialist!
"""
! return tuple(map(lambda dict: dict.copy(), self.ZApp_getItemClassAttr('_properties')))
def ZApp_getIndexedAttributes(self):
--- 382,393 ----
objects managed by this Specialist. Call in context of Specialist!
+ Take care never to return 'title' as a property.
+
"""
! return tuple(filter( lambda x:x.get('id','') != 'title',
! map( lambda dict: dict.copy(),
! self.ZApp_getItemClassAttr('_properties'))
! )
! )
def ZApp_getIndexedAttributes(self):
|