document: fix recursive (tree) resource directories

The 'node_res_obj' has been the right class to use for the intermediate
nodes, ever since. The assertion that it should only apply to static
dirs was wrong.

bzr revid: p_christ@hol.gr-20101027102323-qewjjzzudj0zz643
This commit is contained in:
P. Christeas 2010-10-27 13:23:23 +03:00
parent da5aaac52c
commit 7539d4051c
2 changed files with 0 additions and 2 deletions

View File

@ -190,7 +190,6 @@ class document_directory(osv.osv):
dbro = self.browse(cr, uid, ids, context=context)
if dynamic:
assert dbro.type == 'directory'
return nodes.node_res_obj
elif dbro.type == 'directory':
return nodes.node_dir

View File

@ -37,7 +37,6 @@ class document_davdir(osv.osv):
dbro = self.browse(cr, uid, ids, context=context)
if dynamic:
assert dbro.type == 'directory'
return nodes.node_res_obj
elif dbro.type == 'directory':
return nodes.node_dir