[Zope-Checkins] CVS: Zope/lib/python/App/dtml - davLockManager.dtml:1.2.186.2

Chris Withers chrisw@nipltd.com
Thu, 31 Oct 2002 09:25:19 -0500


Update of /cvs-repository/Zope/lib/python/App/dtml
In directory cvs.zope.org:/tmp/cvs-serv14262/lib/python/App/dtml

Modified Files:
      Tag: Zope-2_6-branch
	davLockManager.dtml 
Log Message:
Fix python that broke the Lock Manager view in the Control Panel.
Fixes #651.
I was extremely suprised to see that this bug was introduced between 2.6.0b2 and 2.6.0.
Why was a new feature integrated at such a late stage?!

=== Zope/lib/python/App/dtml/davLockManager.dtml 1.2.186.1 => 1.2.186.2 ===
--- Zope/lib/python/App/dtml/davLockManager.dtml:1.2.186.1	Wed Oct 16 14:46:10 2002
+++ Zope/lib/python/App/dtml/davLockManager.dtml	Thu Oct 31 09:24:49 2002
@@ -25,7 +25,8 @@
 //-->
 </script>
 
-<dtml-let lockedobjs="REQUEST.form.has_key('frompath','') and findLockedObjects(frompath=REQUEST.get('frompath','')) or []">
+<dtml-let from_path="REQUEST.form.get('frompath',None)"
+          lockedobjs="from_path and findLockedObjects(frompath=from_path) or []">
 
 <dtml-if lockedobjs>
  <p class="std-text">All locked objects