Typo: cr.db_name vs cr.dbname

Bug #799616 reported by Stefan Rijnhart (Opener)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Smile OpenERP
New
Undecided
Unassigned

Bug Description

Hi,

Every minute, an error is logged using smile_action_trigger from trunk revision 107.

[2011-06-20 09:04:30,624][x6dev] ERROR:netsvc.agent:Job call of self.pool.get('sartre.trigger').check_triggers(cr, uid, *()) failed
Traceback (most recent call last):
  File "/home/oerdev6/openerp-server/bin/addons/base/ir/ir_cron.py", line 94, in _callback
    f(cr, uid, *args)
  File "/home/oerdev6/3rd-party-modules/smile_action_trigger/sartre.py", line 408, in check_triggers
    self.run_now(cr, uid, trigger_ids, context)
  File "/home/oerdev6/3rd-party-modules/smile_action_trigger/sartre.py", line 337, in run_now
    threaded_run = threading.Thread(target=self._run_now_with_new_cursor, args=(cr.db_name, uid, ids, context))
  File "/home/oerdev6/bzr/server/bin/sql_db.py", line 78, in wrapper
    return f(self, *args, **kwargs)
  File "/home/oerdev6/bzr/server/bin/sql_db.py", line 237, in __getattr__
    return getattr(self._obj, name)
AttributeError: 'cursor' object has no attribute 'db_name'

The error is caused by the following typo In sartre.py, line 337: replace "cr.db_name" by "cr.dbname".

Cheers,
Stefan.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.