← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 810983] Re: [Trunk] document_ftp module is not install with the latest trunk code.

 

On Saturday 24 September 2011, you wrote:
> I reopen the bug as the fix was not correct: we can not put cr;commit on
> tests as all tests must be rollbacked.

Well, this is _not_ possible for the FTP, WebDAV etc. tests[1].
You see, these tests open FTP client connections to the server, which have 
their own atomic transactions.

So, a part of the test like:
   !record {model: ir.attachment, id: foo_file1}:
      .....

will not be visible to the FTP client *unless* a cr.commit() is
performed.

It is true that we don't want to leave garbage from these tests behind. The 
only thing we could do about that was to put all the attachments/folders under 
some temporary-testing folders and cleanup at the end of the YAML test.


[1] including any future tests in modules with external connectivity


-- 
Say NO to spam and viruses. Stop using Microsoft Windows!

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/810983

Title:
  [Trunk] document_ftp module is not install with the latest trunk code.

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  when I tried to install this module I did face following traceback:

  
  2011-07-15 15:49:10,602][?] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 118, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/vra/workspace/trunk/server/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/vra/workspace/trunk/server/openerp/addons/base/module/wizard/base_module_upgrade.py", line 44, in fields_view_get
      res = super(base_module_upgrade, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False)
    File "/home/vra/workspace/trunk/server/openerp/osv/orm.py", line 1917, in fields_view_get
      WHERE id=%s""", (view_id,))
    File "/home/vra/workspace/trunk/server/openerp/sql_db.py", line 153, in wrapper
      return f(self, *args, **kwargs)
    File "/home/vra/workspace/trunk/server/openerp/sql_db.py", line 213, in execute
      res = self._obj.execute(query, params)
  InternalError: current transaction is aborted, commands ignored until end of transaction block

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/810983/+subscriptions


References