123
125
ids += fobj.search(self.cr, self.uid, where+[ ('parent_id','=',False) ])
124
126
res = fobj.browse(self.cr, self.uid, ids, context=self.context)
125
127
return map(lambda x: node_class(self.cr, self.uid, self.path+'/'+eval('x.'+fobj._rec_name, {'x' : x}), x, False, context=self.context, type='file', root=False), res) + res2
127
129
def get_translation(self,value,lang):
132
134
def directory_list_for_child(self,nodename,parent=False):
133
135
pool = pooler.get_pool(self.cr.dbname)
137
139
where.append(('name','=',nodename))
138
140
if (self.object and self.object.type=='directory') or not self.object2:
139
141
where.append(('parent_id','=',self.object and self.object.id or False))