[IMP]document : upgrade pyftplib with new version 0.5.1

bzr revid: hmo@tinyerp.com-20091012095624-pt9mjfd3uahkhyil
This commit is contained in:
Harry (Open ERP)
2009-10-12 15:26:24 +05:30
parent c6e7a0d8ee
commit f1551ec473
4 changed files with 801 additions and 581 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
{
'name': 'Integrated Document Management System',
'version': '1.0',
'version': '1.1',
'category': 'Generic Modules/Others',
'description': """This is a complete document management system:
* FTP Interface
+1 -2
View File
@@ -655,7 +655,6 @@ class document_file(osv.osv):
vals['res_id']=context.get('default_res_id',False)
if not vals.get('res_model', False) and context.get('default_res_model',False):
vals['res_model']=context.get('default_res_model',False)
if vals.get('res_id', False) and vals.get('res_model',False):
obj_model=self.pool.get(vals['res_model'])
result = obj_model.read(cr, uid, [vals['res_id']], context=context)
@@ -694,7 +693,7 @@ class document_file(osv.osv):
try:
res = content_index(base64.decodestring(datas), vals['datas_fname'], vals.get('content_type', None))
super(document_file,self).write(cr, uid, [result], {
'index_content' : res,
'index_content': res,
})
cr.commit()
except:
+3 -2
View File
@@ -1,5 +1,6 @@
# -*- encoding: utf-8 -*-
import pooler
from service import security
class authorizer:
read_perms = "elr"
write_perms = "adfmw"
@@ -47,7 +48,7 @@ class authorizer:
paths = path.split('/')
if not len(paths)>2:
return True
db_name = paths[1]
db_name = paths[1]
db,pool = pooler.get_db_and_pool(db_name)
res = security.login(db_name, username, self.password)
return bool(res)
File diff suppressed because it is too large Load Diff