[Zapp-cvs-commit] ZApp ZApp_CMFBase.py,1.16.2.7,1.16.2.8
Brought to you by:
sspickle
|
From: <ssp...@us...> - 2003-10-28 20:21:39
|
Update of /cvsroot/zapp/ZApp
In directory sc8-pr-cvs1:/tmp/cvs-serv26852
Modified Files:
Tag: CMF_relations
ZApp_CMFBase.py
Log Message:
check for copyable when copy is happening..
Index: ZApp_CMFBase.py
===================================================================
RCS file: /cvsroot/zapp/ZApp/ZApp_CMFBase.py,v
retrieving revision 1.16.2.7
retrieving revision 1.16.2.8
diff -C2 -d -r1.16.2.7 -r1.16.2.8
*** ZApp_CMFBase.py 28 Oct 2003 19:01:43 -0000 1.16.2.7
--- ZApp_CMFBase.py 28 Oct 2003 20:19:27 -0000 1.16.2.8
***************
*** 46,53 ****
isPrincipiaFolderish = 1
_primaryKeyStringSize=255 # allow for a pretty rediculous size...
_primaryKeyGenerator='self.calcPathID()'
_insertQueryPrefix = 'self.checkDups() and '
-
manage_options = SkinnedFolder.manage_options
--- 46,54 ----
isPrincipiaFolderish = 1
+ class_default_for_copyable = 0 # make these guys default to 'not copyable'
+
_primaryKeyStringSize=255 # allow for a pretty rediculous size...
_primaryKeyGenerator='self.calcPathID()'
_insertQueryPrefix = 'self.checkDups() and '
manage_options = SkinnedFolder.manage_options
***************
*** 98,102 ****
Can this object be copied?
"""
! return hasattr(self.aq_parent.aq_base, 'zapp_cmf_type')
def _notifyOfCopyTo(self, container, op=0):
--- 99,103 ----
Can this object be copied?
"""
! return getattr(self, 'copyable',0)
def _notifyOfCopyTo(self, container, op=0):
|