Review: Needs Fixing

Running the commands:
createdb foo
server/trunk/openerp-server --addons-path=addons/trunk,web/trunk/addons -d foo 
-i document_ftp --stop-after-init

I get the following error:

[2012-01-23 13:45:54,932][foo] INFO:init.load:module document_ftp: loading 
objects
[2012-01-23 13:45:54,933][foo] INFO:init:module document_ftp: registering 
objects
[2012-01-23 13:45:54,943][foo] INFO:FTP:Serving FTP on 127.0.0.1:8021
[2012-01-23 13:45:54,945][?] INFO:FTP:Serving FTP on 127.0.0.1:8021
[2012-01-23 13:45:54,948][foo] INFO:init:module document_ftp: creating or 
updating database tables
[2012-01-23 13:45:55,193][foo] INFO:init.load:module document_ftp: loading 
wizard/ftp_configuration_view.xml
[2012-01-23 13:45:55,256][foo] INFO:init.load:module document_ftp: loading 
wizard/ftp_browse_view.xml
[2012-01-23 13:45:55,314][foo] INFO:init.load:module document_ftp: loading 
security/ir.model.access.csv
[2012-01-23 13:45:55,325][foo] INFO:init.load:module document_ftp: loading 
test/document_ftp_test2.yml
[2012-01-23 13:45:55,382][?] INFO:FTP:[]127.0.0.1:46462 Connected.
[2012-01-23 13:45:55,383][?] INFO:FTP:[]@127.0.0.1:46462 Disconnected.
[2012-01-23 13:45:55,384][?] INFO:FTP:[]127.0.0.1:46463 Connected.
[2012-01-23 13:45:55,388][?] INFO:FTP:[admin]@127.0.0.1:46463 User admin logged 
in.
No LSB modules are available.
[2012-01-23 13:45:55,615][foo] ERROR:FTP:[01]: 
[2012-01-23 13:45:55,616][foo] ERROR:FTP:[02]: Environment Information : 
[2012-01-23 13:45:55,616][foo] ERROR:FTP:[03]: System : 
Linux-3.0.0-15-generic-x86_64-with-Ubuntu-11.10-oneiric
[2012-01-23 13:45:55,617][foo] ERROR:FTP:[04]: OS Name : posix
[2012-01-23 13:45:55,617][foo] ERROR:FTP:[05]: Distributor ID:  Ubuntu
[2012-01-23 13:45:55,617][foo] ERROR:FTP:[06]: Description:     Ubuntu 11.10
[2012-01-23 13:45:55,617][foo] ERROR:FTP:[07]: Release: 11.10
[2012-01-23 13:45:55,618][foo] ERROR:FTP:[08]: Codename:        oneiric
[2012-01-23 13:45:55,618][foo] ERROR:FTP:[09]: Operating System Release : 
3.0.0-15-generic
[2012-01-23 13:45:55,618][foo] ERROR:FTP:[10]: Operating System Version : 
#25-Ubuntu SMP Mon Jan 2 17:44:42 UTC 2012
[2012-01-23 13:45:55,618][foo] ERROR:FTP:[11]: Operating System Architecture : 
64bit
[2012-01-23 13:45:55,619][foo] ERROR:FTP:[12]: Operating System Locale : 
en_US.UTF-8
[2012-01-23 13:45:55,619][foo] ERROR:FTP:[13]: Python Version : 2.7.2+
[2012-01-23 13:45:55,619][foo] ERROR:FTP:[14]: OpenERP-Server Version : 6.1rc1
[2012-01-23 13:45:55,619][foo] ERROR:FTP:[15]: Traceback (most recent call 
last):
[2012-01-23 13:45:55,620][foo] ERROR:FTP:[16]:   File 
"/home/openerp/openerp/addons/trunk/document_ftp/ftpserver/ftpserver.py", line 
1800, in try_as_current_user
[2012-01-23 13:45:55,620][foo] ERROR:FTP:[17]:     return 
self.run_as_current_user(function, *args, **kwargs)
[2012-01-23 13:45:55,620][foo] ERROR:FTP:[18]:   File 
"/home/openerp/openerp/addons/trunk/document_ftp/ftpserver/ftpserver.py", line 
1775, in run_as_current_user
[2012-01-23 13:45:55,620][foo] ERROR:FTP:[19]:     return function(*args, 
**kwargs)
[2012-01-23 13:45:55,621][foo] ERROR:FTP:[20]:   File 
"/home/openerp/openerp/addons/trunk/document_ftp/ftpserver/abstracted_fs.py", 
line 313, in get_crdata
[2012-01-23 13:45:55,621][foo] ERROR:FTP:[21]:     node = n.get_uri(cr, 
p_parts[1:])
[2012-01-23 13:45:55,621][foo] ERROR:FTP:[22]:   File 
"/home/openerp/openerp/addons/trunk/document/nodes.py", line 111, in get_uri
[2012-01-23 13:45:55,621][foo] ERROR:FTP:[23]:     (ndir, duri) =  
self._dirobj._locate_child(cr, self.uid, self.rootdir, uri, None, self)
[2012-01-23 13:45:55,622][foo] ERROR:FTP:[24]:   File 
"/home/openerp/openerp/addons/trunk/document/document_directory.py", line 231, 
in _locate_child
[2012-01-23 13:45:55,622][foo] ERROR:FTP:[25]:     return 
(nodes.node_database(context=ncontext), uri)
[2012-01-23 13:45:55,622][foo] ERROR:FTP:[26]:   File 
"/home/openerp/openerp/addons/trunk/document/nodes.py", line 439, in __init__
[2012-01-23 13:45:55,622][foo] ERROR:FTP:[27]:     
super(node_database,self).__init__(path, parent, context)
[2012-01-23 13:45:55,623][foo] ERROR:FTP:[28]:   File 
"/home/openerp/openerp/addons/trunk/document/nodes.py", line 206, in __init__
[2012-01-23 13:45:55,623][foo] ERROR:FTP:[29]:     assert 
isinstance(context,node_context)
[2012-01-23 13:45:55,623][foo] ERROR:FTP:[30]: AssertionError
[2012-01-23 13:45:55,623][foo] INFO:FTP:[admin]@127.0.0.1:46463 FAIL 
get_crdata()  "/foo" Exception:  Exception.
[2012-01-23 13:45:55,624][foo] WARNING:db.cursor:Cursor not closed explicitly
Please enable sql debugging to trace the caller.
[2012-01-23 13:45:55,624][foo] ERROR:tests.document_ftp:451 Exception.
Traceback (most recent call last):
  File "/home/openerp/openerp/server/trunk/openerp/tools/yaml_import.py", line 
844, in process
    self._process_node(node)
  File "/home/openerp/openerp/server/trunk/openerp/tools/yaml_import.py", line 
859, in _process_node
    self.process_python(node)
  File "/home/openerp/openerp/server/trunk/openerp/tools/yaml_import.py", line 
530, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File 
"/home/openerp/openerp/addons/trunk/document_ftp/test/document_ftp_test2.yml", 
line 2, in <module>
    In order to test the document_ftp functionality
  File "/home/openerp/openerp/addons/trunk/document_ftp/test_easyftp.py", line 
46, in get_ftp_login
    ftp.cwd("/" + cr.dbname)
  File "/usr/lib/python2.7/ftplib.py", line 550, in cwd
    return self.voidcmd(cmd)
  File "/usr/lib/python2.7/ftplib.py", line 249, in voidcmd
    return self.voidresp()
  File "/usr/lib/python2.7/ftplib.py", line 224, in voidresp
    resp = self.getresp()
  File "/usr/lib/python2.7/ftplib.py", line 217, in getresp
    raise error_temp, resp
error_temp: 451 Exception.
[2012-01-23 13:45:55,627][foo] ERROR:init.test:Tests failed to execute in 
module document_ftp
Traceback (most recent call last):
  File "/home/openerp/openerp/server/trunk/openerp/modules/loading.py", line 
102, in load_test
    _load_data(cr, module_name, idref, mode, 'test')
  File "/home/openerp/openerp/server/trunk/openerp/modules/loading.py", line 
138, in _load_data
    tools.convert_yaml_import(cr, module_name, fp, idref, mode, noupdate)
  File "/home/openerp/openerp/server/trunk/openerp/tools/yaml_import.py", line 
909, in yaml_import
    yaml_interpreter.process(yaml_string)
  File "/home/openerp/openerp/server/trunk/openerp/tools/yaml_import.py", line 
844, in process
    self._process_node(node)
  File "/home/openerp/openerp/server/trunk/openerp/tools/yaml_import.py", line 
859, in _process_node
    self.process_python(node)
  File "/home/openerp/openerp/server/trunk/openerp/tools/yaml_import.py", line 
530, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File 
"/home/openerp/openerp/addons/trunk/document_ftp/test/document_ftp_test2.yml", 
line 2, in <module>
    In order to test the document_ftp functionality
  File "/home/openerp/openerp/addons/trunk/document_ftp/test_easyftp.py", line 
46, in get_ftp_login
    ftp.cwd("/" + cr.dbname)
  File "/usr/lib/python2.7/ftplib.py", line 550, in cwd
    return self.voidcmd(cmd)
  File "/usr/lib/python2.7/ftplib.py", line 249, in voidcmd
    return self.voidresp()
  File "/usr/lib/python2.7/ftplib.py", line 224, in voidresp
    resp = self.getresp()
  File "/usr/lib/python2.7/ftplib.py", line 217, in getresp
    raise error_temp, resp
error_temp: 451 Exception.
[2012-01-23 13:45:55,630][foo] INFO:FTP:[admin]@127.0.0.1:46463 Disconnected.
[2012-01-23 13:45:55,867][foo] INFO:init:[01]: Assertions report:
[2012-01-23 13:45:55,867][foo] INFO:init:[02]: Level    success failed
[2012-01-23 13:45:55,867][foo] INFO:init:[03]: error    3       0
[2012-01-23 13:45:55,867][foo] INFO:init:[04]: total    3       0
[2012-01-23 13:45:55,867][foo] INFO:init:[05]: end of report (3 assertion(s) 
checked)

I get the same error when installing from the client.

Raphael

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-document_ftp-sbh/+merge/86517
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-document_ftp-sbh.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to