← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 808055] Re: [TRUNK] int() argument must be a string or a number, not 'list'

 

This bug is being closed as Won't Fix in the OpenERP Web Client project, as it is not going to be developed further after the 6.0 series. It will be replaced in 6.1 by a newer and better web frontend known as the OpenERP Web project[1], so further R&D efforts on the 6.0 project would be wasted.
Bugs affecting customers in production of course continue to be handled via the OpenERP Enterprise (OPW) maintenance service.
You can find more details about this in the Bug Management FAQ[2].


** Changed in: openobject-client-web
   Importance: Medium => Undecided

** Changed in: openobject-client-web
       Status: Confirmed => Won't Fix

** Changed in: openobject-client-web
     Assignee: OpenERP R&D Web Team (openerp-dev-web) => (unassigned)

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

Title:
  [TRUNK] int() argument must be a string or a number, not 'list'

Status in OpenERP Web Client:
  Won't Fix

Bug description:
  Using server, web, addons and extra-addons from trunk

  Install wiki module and access a wiki page

  Click on the "History" link in the right menu.

  I get this error message:
   
  <type 'exceptions.TypeError'>	Python 2.6.6: /usr/bin/python2.6
  Sat Jul 9 12:57:44 2011

  A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
   /home/max/openerp/web/trunk/lib/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/execute')
    604                     if self.handler:
    605                         self.stage = 'handler'
    606                         cherrypy.response.body = self.handler()
    607                     
    608                     self.stage = 'before_finalize'
  global cherrypy = <module 'cherrypy' from '/home/max/openerp/web/trunk/lib/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
   /home/max/openerp/web/trunk/lib/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
     23     def __call__(self):
     24         try:
     25             return self.callable(*self.args, **self.kwargs)
     26         except TypeError, x:
     27             test_callable_spec(self.callable, self.args, self.kwargs)
  self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function index>, self.args = (), self.kwargs = {'action': {'auto_refresh': 0, 'auto_search': True, 'context': u"{'default_wiki_id': active_id, 'search_default_wiki_id': [active_id]}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'form_context': {'active_id': 2, 'active_ids': [], 'active_model': 'ir.ui.menu', 'client': 'web', 'default_wiki_id': 2, 'lang': u'fr_FR', 'search_default_wiki_id': [2], 'section_id': False, 'tz': False}, 'groups_id': [], 'help': False, 'id': 128, ...}, 'data': {'context': {}, 'context_menu': None, 'id': 2, 'ids': [2], 'model': 'wiki.wiki', 'report_type': 'pdf'}, 'payload': 'eJxtU81uwjAMfpWKi4eE0MZp2gOgnXaYdkMoyogL1tIkyw-M...LyIk3a7BcpHC24tFZH4c1g1M1XK2kZbyz0avt9pJOf_9NMA0='}
   /home/max/openerp/web/trunk/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'payload': 'eJxtU81uwjAMfpWKi4eE0MZp2gOgnXaYdkMoyogL1tIkyw-M...LyIk3a7BcpHC24tFZH4c1g1M1XK2kZbyz0avt9pJOf_9NMA0='})
    106             # User is logged in; allow access
    107             clear_login_fields(kw)
    108             return fn(*args, **kw)
    109         else:
    110             action = kw.get('login_action', '')
  fn = <bound method Execute.index of <openerp.controllers.execute.Execute object>>, args = (), kw = {'payload': 'eJxtU81uwjAMfpWKi4eE0MZp2gOgnXaYdkMoyogL1tIkyw-M...LyIk3a7BcpHC24tFZH4c1g1M1XK2kZbyz0avt9pJOf_9NMA0='}
   /home/max/openerp/web/trunk/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.execute.Execute object>,), **kw={'payload': 'eJxtU81uwjAMfpWKi4eE0MZp2gOgnXaYdkMoyogL1tIkyw-M...LyIk3a7BcpHC24tFZH4c1g1M1XK2kZbyz0avt9pJOf_9NMA0='})
    186                 raise cherrypy.HTTPError(405)
    187 
    188             res = func(*args, **kw)
    189             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
    190                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  global res = '/home/max/openerp/web/trunk/addons/view_graph/widgets/templates/graph.mako', func = <function index>, args = (<openerp.controllers.execute.Execute object>,), kw = {'payload': 'eJxtU81uwjAMfpWKi4eE0MZp2gOgnXaYdkMoyogL1tIkyw-M...LyIk3a7BcpHC24tFZH4c1g1M1XK2kZbyz0avt9pJOf_9NMA0='}
   /home/max/openerp/web/trunk/addons/openerp/controllers/execute.py in index(self=<openerp.controllers.execute.Execute object>, payload='eJxtU81uwjAMfpWKi4eE0MZp2gOgnXaYdkMoyogL1tIkyw-M...LyIk3a7BcpHC24tFZH4c1g1M1XK2kZbyz0avt9pJOf_9NMA0=')
     17             zlib.decompress(
     18                 base64.urlsafe_b64decode(str(payload))))
     19         action, data = decoded_payload['action'], decoded_payload['data']
     20         cherrypy.request.params.update(decoded_payload)
     21         return actions.execute(action, **data)
  global actions = <module 'openerp.controllers.actions' from '/hom...eb/trunk/addons/openerp/controllers/actions.pyc'>, actions.execute = <function execute>, action = {'auto_refresh': 0, 'auto_search': True, 'context': u"{'default_wiki_id': active_id, 'search_default_wiki_id': [active_id]}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'form_context': {'active_id': 2, 'active_ids': [], 'active_model': 'ir.ui.menu', 'client': 'web', 'default_wiki_id': 2, 'lang': u'fr_FR', 'search_default_wiki_id': [2], 'section_id': False, 'tz': False}, 'groups_id': [], 'help': False, 'id': 128, ...}, data = {'context': {}, 'context_menu': None, 'id': 2, 'ids': [2], 'model': 'wiki.wiki', 'report_type': 'pdf'}
   /home/max/openerp/web/trunk/addons/openerp/controllers/actions.py in execute(action={'auto_refresh': 0, 'auto_search': True, 'context': u"{'default_wiki_id': active_id, 'search_default_wiki_id': [active_id]}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'form_context': {'active_id': 2, 'active_ids': [], 'active_model': 'ir.ui.menu', 'client': 'web', 'default_wiki_id': 2, 'lang': u'fr_FR', 'search_default_wiki_id': [2], 'section_id': False, 'tz': False}, 'groups_id': [], 'help': False, 'id': 128, ...}, **data={'context': {}, 'context_menu': None, 'id': 2, 'ids': [2], 'limit': 0, 'model': 'wiki.wiki', 'report_type': 'pdf', 'res_id': None, 'res_model': u'wiki.wiki.history', 'search_view': None, ...})
    398 
    399     action_executor = ACTIONS_BY_TYPE[action['type']]
    400     return action_executor(action, data)
    401 
    402 def execute_url(**data):
  action_executor = <function act_window>, action = {'auto_refresh': 0, 'auto_search': True, 'context': u"{'default_wiki_id': active_id, 'search_default_wiki_id': [active_id]}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'form_context': {'active_id': 2, 'active_ids': [], 'active_model': 'ir.ui.menu', 'client': 'web', 'default_wiki_id': 2, 'lang': u'fr_FR', 'search_default_wiki_id': [2], 'section_id': False, 'tz': False}, 'groups_id': [], 'help': False, 'id': 128, ...}, data = {'context': {}, 'context_menu': None, 'id': 2, 'ids': [2], 'limit': 0, 'model': 'wiki.wiki', 'report_type': 'pdf', 'res_id': None, 'res_model': u'wiki.wiki.history', 'search_view': None, ...}
   /home/max/openerp/web/trunk/addons/openerp/controllers/actions.py in act_window(action={'auto_refresh': 0, 'auto_search': True, 'context': u"{'default_wiki_id': active_id, 'search_default_wiki_id': [active_id]}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'form_context': {'active_id': 2, 'active_ids': [], 'active_model': 'ir.ui.menu', 'client': 'web', 'default_wiki_id': 2, 'lang': u'fr_FR', 'search_default_wiki_id': [2], 'section_id': False, 'tz': False}, 'groups_id': [], 'help': False, 'id': 128, ...}, data={'context': {}, 'context_menu': None, 'id': 2, 'ids': [2], 'limit': 0, 'model': 'wiki.wiki', 'report_type': 'pdf', 'res_id': None, 'res_model': u'wiki.wiki.history', 'search_view': None, ...})
    272                           context_menu=data.get('context_menu'),
    273                           display_menu_tip=display_menu_tip,
    274                           action_id=action.get('id'))
    275 
    276 def server(action, data):
  action_id undefined, action = {'auto_refresh': 0, 'auto_search': True, 'context': u"{'default_wiki_id': active_id, 'search_default_wiki_id': [active_id]}", 'display_menu_tip': True, 'domain': u'[]', 'filter': False, 'form_context': {'active_id': 2, 'active_ids': [], 'active_model': 'ir.ui.menu', 'client': 'web', 'default_wiki_id': 2, 'lang': u'fr_FR', 'search_default_wiki_id': [2], 'section_id': False, 'tz': False}, 'groups_id': [], 'help': False, 'id': 128, ...}, action.get = <built-in method get of dict object>
   /home/max/openerp/web/trunk/addons/openerp/controllers/actions.py in execute_window(view_ids=[False, False], model=u'wiki.wiki.history', res_id=None, domain=[], view_type=u'form', context={'_terp_view_name': u'Historique de la page', 'active_id': 2, 'active_ids': [2], 'active_model': 'wiki.wiki', 'default_wiki_id': 2, 'search_default_wiki_id': [2]}, mode=[u'tree', u'form'], name=u'Historique de la page', target='popup', limit=0, search_view=None, context_menu=None, display_menu_tip=False, action_id=128)
     87         params.view_mode=mode
     88 
     89         return Form().create(params)
     90 
     91     elif view_type == 'tree':
  global Form = <class 'openerp.controllers.form.Form'>, ).create = <unbound method Form.create>, params = {'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}
   /home/max/openerp/web/trunk/addons/openerp/controllers/utils.py in wrapper(*args=({'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None},), **kw={})
    106             # User is logged in; allow access
    107             clear_login_fields(kw)
    108             return fn(*args, **kw)
    109         else:
    110             action = kw.get('login_action', '')
  fn = <bound method Form.create of <openerp.controllers.form.Form object>>, args = ({'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None},), kw = {}
   /home/max/openerp/web/trunk/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object>, {'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}), **kw={})
    186                 raise cherrypy.HTTPError(405)
    187 
    188             res = func(*args, **kw)
    189             if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
    190                 cherrypy.response.headers['Content-Type'] = 'text/javascript'
  global res = '/home/max/openerp/web/trunk/addons/view_graph/widgets/templates/graph.mako', func = <function create>, args = (<openerp.controllers.form.Form object>, {'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}), kw = {}
   /home/max/openerp/web/trunk/addons/openerp/controllers/form.py in create(self=<openerp.controllers.form.Form object>, params={'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}, tg_errors=None)
    193         if params.view_type == 'tree':
    194             params.editable = True
    195         form = self.create_form(params, tg_errors)
    196 
    197         if not tg_errors:
  form undefined, self = <openerp.controllers.form.Form object>, self.create_form = <bound method Form.create_form of <openerp.controllers.form.Form object>>, params = {'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}, tg_errors = None
   /home/max/openerp/web/trunk/addons/openerp/controllers/form.py in create_form(self=<openerp.controllers.form.Form object>, params={'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}, tg_errors=None)
    184         params.view_type = params.view_type or params.view_mode[0]
    185 
    186         return tw.form_view.ViewForm(params, name="view_form", action=self.path + "/save")
    187 
    188     @expose(template="/openerp/controllers/templates/form.mako")
  global tw = <module 'openerp.widgets' from '/home/max/openerp/web/trunk/addons/openerp/widgets/__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from '/home/.../web/trunk/addons/openerp/widgets/form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}, name undefined, action undefined, self = <openerp.controllers.form.Form object>, self.path = '/openerp/form'
   /home/max/openerp/web/trunk/addons/openerp/widgets/form_view.py in __init__(self=ViewForm, params={'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
     79             self.search = Search(source=params.source, model=params.model, domain=search_param, context=params.context, values=params.search_data or {},
     80                                  filter_domain=params.filter_domain or [], search_view=params.search_view, group_by_ctx=params.group_by_ctx or [],
     81                                  **{'clear': params.get('_terp_clear'), 'search_view_id': search_view_id})
     82 
     83             cherrypy.request.custom_search_domain = self.search.listof_domain or []
  params = {'_terp_action_id': 128, '_terp_view_type': u'tr..._view_ids': [False, False], 'context_menu': None}, params.get = <built-in method get of TinyDict object>, search_view_id = None
   /home/max/openerp/web/trunk/addons/openerp/widgets/search.py in __init__(self=Search, source=None, model=u'wiki.wiki.history', domain=[], context={'_terp_view_name': u'Historique de la page', 'active_id': 2, 'active_ids': [2], 'active_model': 'wiki.wiki', 'default_wiki_id': 2, 'search_default_wiki_id': [2]}, values={}, filter_domain=[], search_view=None, group_by_ctx=[], **kw={'clear': None, 'search_view_id': None})
    256             self.fields_list.sort(lambda x, y: cmp(x[1], y[1]))
    257 
    258         self.frame = self.parse(model, dom, self.fields, values)
    259         if self.frame:
    260             self.frame = self.frame[0]
  self = Search, self.frame = None, self.parse = <bound method Search.parse of Search>, model = u'wiki.wiki.history', dom = <xml.dom.minidom.Document instance>, self.fields = {'create_date': {'select': True, 'selectable': True, 'string': u'Date', 'type': u'datetime', 'views': {}}, 'minor_edit': {'select': True, 'selectable': True, 'string': u'Est ce une modification majeure ?', 'type': u'boolean', 'views': {}}, 'summary': {'select': True, 'selectable': True, 'size': 256, 'string': u'Sommaire', 'type': u'char', 'views': {}}, 'text_area': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'text_area', 'readonly': False, 'required': False, 'selectable': True, ...}, 'wiki_id': {'attrs': None, 'context': {}, 'disabled': False, 'domain': [], 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'wiki_id', 'readonly': False, ...}, 'write_uid': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'string': u'Modifi\xe9 par', 'type': u'many2one', 'views': {}}}, values = {}
   /home/max/openerp/web/trunk/addons/openerp/widgets/search.py in parse(self=Search, model=u'wiki.wiki.history', root=<xml.dom.minidom.Document instance>, fields={'create_date': {'select': True, 'selectable': True, 'string': u'Date', 'type': u'datetime', 'views': {}}, 'minor_edit': {'select': True, 'selectable': True, 'string': u'Est ce une modification majeure ?', 'type': u'boolean', 'views': {}}, 'summary': {'select': True, 'selectable': True, 'size': 256, 'string': u'Sommaire', 'type': u'char', 'views': {}}, 'text_area': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'text_area', 'readonly': False, 'required': False, 'selectable': True, ...}, 'wiki_id': {'attrs': None, 'context': {}, 'disabled': False, 'domain': [], 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'wiki_id', 'readonly': False, ...}, 'write_uid': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'string': u'Modifi\xe9 par', 'type': u'many2one', 'views': {}}}, values={})
    317                 views.append(Element(children=
    318                                      self.parse(model=search_model, root=node,
    319                                                 fields=fields, values=values),
    320                                      **attrs))
    321 
  fields = {'create_date': {'select': True, 'selectable': True, 'string': u'Date', 'type': u'datetime', 'views': {}}, 'minor_edit': {'select': True, 'selectable': True, 'string': u'Est ce une modification majeure ?', 'type': u'boolean', 'views': {}}, 'summary': {'select': True, 'selectable': True, 'size': 256, 'string': u'Sommaire', 'type': u'char', 'views': {}}, 'text_area': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'text_area', 'readonly': False, 'required': False, 'selectable': True, ...}, 'wiki_id': {'attrs': None, 'context': {}, 'disabled': False, 'domain': [], 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'wiki_id', 'readonly': False, ...}, 'write_uid': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'string': u'Modifi\xe9 par', 'type': u'many2one', 'views': {}}}, values = {}
   /home/max/openerp/web/trunk/addons/openerp/widgets/search.py in parse(self=Search, model=u'wiki.wiki.history', root=<DOM Element: search>, fields={'create_date': {'select': True, 'selectable': True, 'string': u'Date', 'type': u'datetime', 'views': {}}, 'minor_edit': {'select': True, 'selectable': True, 'string': u'Est ce une modification majeure ?', 'type': u'boolean', 'views': {}}, 'summary': {'select': True, 'selectable': True, 'size': 256, 'string': u'Sommaire', 'type': u'char', 'views': {}}, 'text_area': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'text_area', 'readonly': False, 'required': False, 'selectable': True, ...}, 'wiki_id': {'attrs': None, 'context': {}, 'disabled': False, 'domain': [], 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'wiki_id', 'readonly': False, ...}, 'write_uid': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'string': u'Modifi\xe9 par', 'type': u'many2one', 'views': {}}}, values={})
    317                 views.append(Element(children=
    318                                      self.parse(model=search_model, root=node,
    319                                                 fields=fields, values=values),
    320                                      **attrs))
    321 
  fields = {'create_date': {'select': True, 'selectable': True, 'string': u'Date', 'type': u'datetime', 'views': {}}, 'minor_edit': {'select': True, 'selectable': True, 'string': u'Est ce une modification majeure ?', 'type': u'boolean', 'views': {}}, 'summary': {'select': True, 'selectable': True, 'size': 256, 'string': u'Sommaire', 'type': u'char', 'views': {}}, 'text_area': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'text_area', 'readonly': False, 'required': False, 'selectable': True, ...}, 'wiki_id': {'attrs': None, 'context': {}, 'disabled': False, 'domain': [], 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'wiki_id', 'readonly': False, ...}, 'write_uid': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'string': u'Modifi\xe9 par', 'type': u'many2one', 'views': {}}}, values = {}
   /home/max/openerp/web/trunk/addons/openerp/widgets/search.py in parse(self=Search, model=u'wiki.wiki', root=<DOM Element: group>, fields={'create_date': {'select': True, 'selectable': True, 'string': u'Date', 'type': u'datetime', 'views': {}}, 'minor_edit': {'select': True, 'selectable': True, 'string': u'Est ce une modification majeure ?', 'type': u'boolean', 'views': {}}, 'summary': {'select': True, 'selectable': True, 'size': 256, 'string': u'Sommaire', 'type': u'char', 'views': {}}, 'text_area': {'attrs': None, 'disabled': False, 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'text_area', 'readonly': False, 'required': False, 'selectable': True, ...}, 'wiki_id': {'attrs': None, 'context': {}, 'disabled': False, 'domain': [], 'editable': True, 'invisible': False, 'is_search': True, 'model': u'wiki.wiki.history', 'name': u'wiki_id', 'readonly': False, ...}, 'write_uid': {'context': {}, 'domain': [], 'relation': u'res.users', 'select': True, 'selectable': True, 'string': u'Modifi\xe9 par', 'type': u'many2one', 'views': {}}}, values={})
    401                             type2 = fields[name].get('type2')
    402                             if kind == 'many2one' and model:
    403                                  domain = [(name, '=', int(defval))]
    404                             else:
    405                                 if attrs.get('filter_domain'):
  domain undefined, name = u'wiki_id', builtin int = <type 'int'>, defval = [2]

  <type 'exceptions.TypeError'>: int() argument must be a string or a number, not 'list'
        args = ("int() argument must be a string or a number, not 'list'",)
        message = "int() argument must be a string or a number, not 'list'"

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/808055/+subscriptions


References