merging fromt he trunk

bzr revid: mga@tinyerp.com-20081211150352-dww8sdw991zhwusn
This commit is contained in:
Mantavya Gajjar 2008-12-11 20:33:52 +05:30
commit ff8b88d8fd
2 changed files with 5 additions and 2 deletions

View File

@ -259,7 +259,10 @@ class module(osv.osv):
for dep in depobj.browse(cr, uid, iids, context=context):
if dep.module_id.state=='installed':
todo.append(dep.module_id)
self.write(cr,uid, map(lambda x: x.id, todo), {'state':'to upgrade'}, context=context)
ids = map(lambda x: x.id, todo)
self.write(cr, uid, ids, {'state':'to upgrade'}, context=context)
self.button_install(cr, uid, ids, context=context)
return True
def button_upgrade_cancel(self, cr, uid, ids, context={}):

View File

@ -34,7 +34,7 @@ def listdir(dir, recursive=False):
return os.listdir(dir)
res = []
for root, dirs, files in os.walk(dir):
for root, dirs, files in walksymlinks(dir):
root = root[len(dir)+1:]
res.extend([opj(root, f) for f in files])
return res