[Zope-Checkins] CVS: Zope2 - davcmds.py:1.10.2.3
Andreas Jung
andreas@dhcp165.digicool.com
Mon, 9 Apr 2001 12:32:50 -0400
Update of /cvs-repository/Zope2/lib/python/webdav
In directory yetix:/work/zope/Zope2_FTP/Zope2/lib/python/webdav
Modified Files:
Tag: ajung_Zope2_FTP_globbing_patch
davcmds.py
Log Message:
changed check for broken objects from id=="broken" to checking the meta_type
attribute
--- Updated File davcmds.py in package Zope2 --
--- davcmds.py 2001/04/03 21:49:20 1.10.2.2
+++ davcmds.py 2001/04/09 16:31:34 1.10.2.3
@@ -213,8 +213,7 @@
result.write('</d:response>\n')
if depth in ('1', 'infinity') and iscol:
for ob in obj.objectValues():
- if ob.id=='broken': continue
- # We should add here a better check for broken objects !!! (ajung)
+ if ob.meta_type=='Broken Because Product is Gone': continue
dflag=hasattr(ob, '_p_changed') and (ob._p_changed == None)
if hasattr(ob, '__locknull_resource__'):
# Do nothing, a null resource shouldn't show up to DAV