Author: dmeyer
Date: Sun Oct 15 17:30:33 2006
New Revision: 1919
Modified:
trunk/beacon/src/db.py
Log:
make recursive work again
Modified: trunk/beacon/src/db.py
==============================================================================
--- trunk/beacon/src/db.py (original)
+++ trunk/beacon/src/db.py Sun Oct 15 17:30:33 2006
@@ -155,15 +155,15 @@
return self._db_query_filename(fname)
if 'id' in query and qlen == 1:
return self._db_query_id(query['id'])
+ if 'parent' in query and 'recursive' in query and qlen == 2:
+ if not query['parent']._beacon_isdir:
+ raise AttributeError('parent is no directory')
+ return self._db_query_dir_recursive(query['parent'])
if 'parent' in query:
if qlen == 1:
if query['parent']._beacon_isdir:
return self._db_query_dir(query['parent'])
query['parent'] = query['parent']._beacon_id
- if 'parent' in query and 'recursive' in query and qlen == 2:
- if not query['parent']._beacon_isdir:
- raise AttributeError('parent is no directory')
- return self._db_query_dir_recursive(query['parent'])
if 'attr' in query:
return self._db_query_attr(query)
if 'type' in query and query['type'] == 'media':
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog