directory more forgiving
David Binger <dbinger-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Mon, 21 Feb 2005 14:59:56 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail-4--287705672
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
x-unix-mode=0664;
name="nicedirectory.txt"
Content-Disposition: attachment;
filename=nicedirectory.txt
Don't require the traversed-into-object to be a Directory.
Changed:
directory.py
Here is the diff:
Index: directory.py
===================================================================
--- directory.py (revision 26201)
+++ directory.py (working copy)
@@ -62,8 +62,6 @@
raise TraversalError('directory %r has no component %r' %
(self, component))
if path:
- if not isinstance(obj, Directory):
- raise TraversalError('%r is not a Directory instance' % obj)
return obj._q_traverse(path)
elif callable(obj):
return obj()
--Apple-Mail-4--287705672--