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:
parent
da5aaac52c
commit
7539d4051c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue