[FIX]Update request missing one argument
bzr revid: dle@openerp.com-20121219170005-swdzzhvm2nifye5f
This commit is contained in:
parent
6d49547fb6
commit
7a627b5810
|
@ -551,7 +551,7 @@ class document_storage(osv.osv):
|
|||
# a hack: /assume/ that the calling write operation will not try
|
||||
# to write the fname and size, and update them in the db concurrently.
|
||||
# We cannot use a write() here, because we are already in one.
|
||||
cr.execute('UPDATE ir_attachment SET index_content = %s, file_type = %s WHERE id = %s', (filesize, icont_u, mime, file_node.file_id))
|
||||
cr.execute('UPDATE ir_attachment SET file_size = %s, index_content = %s, file_type = %s WHERE id = %s', (filesize, icont_u, mime, file_node.file_id))
|
||||
file_node.content_length = filesize
|
||||
file_node.content_type = mime
|
||||
return True
|
||||
|
@ -1620,7 +1620,6 @@ class node_res_obj(node_class):
|
|||
}
|
||||
if not self.res_find_all:
|
||||
val['parent_id'] = self.dir_id
|
||||
|
||||
fil_id = fil_obj.create(cr, uid, val, context=ctx)
|
||||
fil = fil_obj.browse(cr, uid, fil_id, context=ctx)
|
||||
klass = self.context.node_file_class
|
||||
|
|
|
@ -709,7 +709,6 @@ class openerp_dav_handler(dav_interface):
|
|||
if not dir_node:
|
||||
cr.close()
|
||||
raise DAV_NotFound('Parent folder not found.')
|
||||
|
||||
newchild = self._try_function(dir_node.create_child, (cr, objname, data),
|
||||
"create %s" % objname, cr=cr)
|
||||
if not newchild:
|
||||
|
|
Loading…
Reference in New Issue