← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 669110] Re: Python 2.5.4: C:\Program Files\OpenERP AllInOne\Web\python25\python.exE

 

Hello,

Would you please provide proper steps to reproduce it.

Thanks.

-- 
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/669110

Title:
  Python 2.5.4: C:\Program Files\OpenERP AllInOne\Web\python25\python.exE

Status in OpenObject Addons Modules:
  Incomplete

Bug description:
  Python 2.5.4: C:\Program Files\OpenERP AllInOne\Web\python25\python.exe
Sun Oct 31 22:38:01 2010

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
C:\Program Files\OpenERP AllInOne\Web\python25\lib\site-packages\cherrypy-3.1.2-py2.5-win32.egg\cherrypy\_cprequest.py in respond(self=<cherrypy._cprequest.Request object at 0x016F3130>, path_info='/openerp/custom_action')
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 'C:\Program Files\OpenER...ypy-3.1.2-py2.5-win32.egg\cherrypy\__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object at 0x00CEC770>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object at 0x016F3130>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object at 0x016F3910>
C:\Program Files\OpenERP AllInOne\Web\python25\lib\site-packages\cherrypy-3.1.2-py2.5-win32.egg\cherrypy\_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x016F3430>)
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 at 0x016F3430>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object at 0x00E15570>>, self.args = ('openerp', 'custom_action'), self.kwargs = {'action': '384'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\tools\_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object at 0x00E15570>, 'openerp', 'custom_action'), **kw={'action': '384'})
198 raise cherrypy.HTTPError(405)
199
200 res = func(*args, **kw)
201
202 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = r'c:\program files\openerp allinone\web\python25\l...rp-web\openobject\controllers\templates\base.mako', func = <function default at 0x00E137B0>, args = (<openobject.controllers._root.Root object at 0x00E15570>, 'openerp', 'custom_action'), kw = {'action': '384'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\controllers\_root.py in default(self=<openobject.controllers._root.Root object at 0x00E15570>, *args=('openerp', 'custom_action'), **kw={'action': '384'})
65 request.handler = cherrypy.NotFound()
66
67 return request.handler()
68
69 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object at 0x00CEC750>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object at 0x016F3910>
C:\Program Files\OpenERP AllInOne\Web\python25\lib\site-packages\cherrypy-3.1.2-py2.5-win32.egg\cherrypy\_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x016F3910>)
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 at 0x016F3910>, self.callable = <function custom_action at 0x0130FDF0>, self.args = (), self.kwargs = {'action': '384'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\utils.py in wrapper(*args=(), **kw={'action': '384'})
122 # User is logged in; allow access
123 clear_login_fields(kw)
124 return fn(*args, **kw)
125 else:
126 action = kw.get('login_action', '')
fn = <bound method Root.custom_action of <openerp.controllers.root.Root object at 0x016F3230>>, args = (), kw = {'action': '384'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\tools\_expose.py in func_wrapper(*args=(<openerp.controllers.root.Root object at 0x016F3230>,), **kw={'action': '384'})
198 raise cherrypy.HTTPError(405)
199
200 res = func(*args, **kw)
201
202 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = r'c:\program files\openerp allinone\web\python25\l...rp-web\openobject\controllers\templates\base.mako', func = <function custom_action at 0x0115EE30>, args = (<openerp.controllers.root.Root object at 0x016F3230>,), kw = {'action': '384'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\root.py in custom_action(self=<openerp.controllers.root.Root object at 0x016F3230>, action='384')
77 return actions.execute_by_keyword(
78 'tree_but_open', model='ir.ui.menu', id=menu_ids[0], ids=menu_ids,
79 context=rpc.session.context, report_type='pdf')
80
81 *()
context undefined, global rpc = <module 'openerp.utils.rpc' from 'c:\program fil....5.egg\openerp-web\addons\openerp\utils\rpc.pyc'>, rpc.session = <openerp.utils.rpc.RPCSession object at 0x01040330>, rpc.session.context = {'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, report_type undefined
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\actions.py in execute_by_keyword(keyword='tree_but_open', adds=None, **data={'context': {'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, 'id': 384, 'ids': [384], 'model': 'ir.ui.menu', 'report_type': 'pdf'})
405 if len(keyact) == 1:
406 data['context'].update(rpc.session.context)
407 return execute(action, **data)
408 else:
409 return Selection().create(keyact, **data)
global execute = <function execute at 0x0115E870>, action = {'auto_refresh': 0, 'auto_search': True, 'context': u'{}', 'display_menu_tip': False, 'domain': '[]', 'filter': False, 'groups_id': [], 'help': False, 'id': 577, 'limit': 80, ...}, data = {'context': {'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, 'id': 384, 'ids': [384], 'model': 'ir.ui.menu', 'report_type': 'pdf'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\actions.py in execute(action={'auto_refresh': 0, 'auto_search': True, 'context': u'{}', 'display_menu_tip': False, 'domain': '[]', 'filter': False, 'groups_id': [], 'help': False, 'id': 577, 'limit': 80, ...}, **data={'context': {'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, 'id': 384, 'ids': [384], 'limit': 80, 'model': 'ir.ui.menu', 'report_type': 'pdf', 'res_id': None, 'res_model': u'board.board', 'search_view': u"{'name': u'board.board.search', 'type': u'search...ction': [], 'relate': []}, 'field_parent': False}", 'view_mode': u'form', ...})
264 limit=data.get('limit'),
265 search_view = data['search_view'],
266 context_menu= data.get('context_menu'))
267
268 return res
context_menu undefined, data = {'context': {'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, 'id': 384, 'ids': [384], 'limit': 80, 'model': 'ir.ui.menu', 'report_type': 'pdf', 'res_id': None, 'res_model': u'board.board', 'search_view': u"{'name': u'board.board.search', 'type': u'search...ction': [], 'relate': []}, 'field_parent': False}", 'view_mode': u'form', ...}, data.get = <built-in method get of dict object at 0x01022390>
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\actions.py in execute_window(view_ids=[937], model=u'board.board', res_id=None, domain=[], view_type=u'form', context={'_terp_view_name': u'Project Dashboard', 'active_id': 384, 'active_ids': [384], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, mode=[u'form'], name=u'Project Dashboard', target=u'current', limit=80, search_view=u"{'name': u'board.board.search', 'type': u'search...ction': [], 'relate': []}, 'field_parent': False}", context_menu=None)
85 params.view_mode=mode
86
87 return Form().create(params)
88
89 elif view_type == 'tree':
global Form = <class 'openerp.controllers.form.Form'>, ).create = <unbound method Form.create>, params = {'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\utils.py in wrapper(*args=({'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None},), **kw={})
122 # User is logged in; allow access
123 clear_login_fields(kw)
124 return fn(*args, **kw)
125 else:
126 action = kw.get('login_action', '')
fn = <bound method Form.create of <openerp.controllers.form.Form object at 0x01703070>>, args = ({'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None},), kw = {}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\tools\_expose.py in func_wrapper(*args=(<openerp.controllers.form.Form object at 0x01703070>, {'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}), **kw={})
198 raise cherrypy.HTTPError(405)
199
200 res = func(*args, **kw)
201
202 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = r'c:\program files\openerp allinone\web\python25\l...rp-web\openobject\controllers\templates\base.mako', func = <function create at 0x0114B770>, args = (<openerp.controllers.form.Form object at 0x01703070>, {'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}), kw = {}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\form.py in create(self=<openerp.controllers.form.Form object at 0x01703070>, params={'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}, tg_errors=None)
201 if params.view_type == 'tree':
202 params.editable = True
203 form = self.create_form(params, tg_errors)
204
205 if not tg_errors:
form undefined, self = <openerp.controllers.form.Form object at 0x01703070>, self.create_form = <bound method Form.create_form of <openerp.controllers.form.Form object at 0x01703070>>, params = {'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}, tg_errors = None
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\controllers\form.py in create_form(self=<openerp.controllers.form.Form object at 0x01703070>, params={'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}, tg_errors=None)
192 params.view_type = params.view_type or params.view_mode[0]
193
194 return tw.form_view.ViewForm(params, name="view_form", action="/openerp/form/save")
195
196 *(template="/openerp/controllers/templates/form.mako")
global tw = <module 'openerp.widgets' from 'c:\program files...openerp-web\addons\openerp\widgets\__init__.pyc'>, tw.form_view = <module 'openerp.widgets.form_view' from 'c:\pro...penerp-web\addons\openerp\widgets\form_view.pyc'>, tw.form_view.ViewForm = <class 'openerp.widgets.form_view.ViewForm'>, params = {'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}, name undefined, action undefined
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\widgets\_meta.py in wrapper(self=ViewForm, *args=({'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None},), **kw={'action': '/openerp/form/save', 'name': 'view_form'})
47 self.__initstack.append(1)
48
49 res = func(self, *args, **kw)
50 try:
51 self.__initstack.pop()
res undefined, func = <function __init__ at 0x01127830>, self = ViewForm, args = ({'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None},), kw = {'action': '/openerp/form/save', 'name': 'view_form'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\form_view.py in __init__(self=ViewForm, params={'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}, **kw={'action': '/openerp/form/save', 'name': 'view_form'})
91
92 self.screen = Screen(prefix='', hastoolbar=True, hassubmenu=True, editable=editable, readonly=readonly,
93 selectable=params.selectable or 2)
94
95 if self.screen.widget and self.screen.view_type in ['form', 'tree']:
selectable undefined, params = {'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}, params.selectable = None
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\widgets\_meta.py in wrapper(self=Screen, *args=(), **kw={'editable': True, 'hassubmenu': True, 'hastoolbar': True, 'prefix': '', 'readonly': False, 'selectable': 2})
47 self.__initstack.append(1)
48
49 res = func(self, *args, **kw)
50 try:
51 self.__initstack.pop()
res undefined, func = <function __init__ at 0x01120570>, self = Screen, args = (), kw = {'editable': True, 'hassubmenu': True, 'hastoolbar': True, 'prefix': '', 'readonly': False, 'selectable': 2}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_view_type': u'form', '_terp_offset': 0, ...}, '_terp_view_ids': [937], 'context_menu': None}, prefix='', name='', views_preloaded={}, hastoolbar=True, hassubmenu=True, editable=True, readonly=False, selectable=2, nolinks=1, **kw={})
131
132 if self.view_mode:
133 self.add_view_id(self.view_id, self.view_type)
134
135 def add_view_id(self, view_id, view_type):
self = Screen, self.add_view_id = <bound method Screen.add_view_id of Screen>, self.view_id = 937, self.view_type = u'form'
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=937, view_type=u'form')
143 view = cache.fields_view_get(self.model, view_id, view_type, ctx, self.hastoolbar, self.hassubmenu)
144
145 self.add_view(view, view_type)
146
147 def add_view(self, view, view_type='form'):
self = Screen, self.add_view = <bound method Screen.add_view of Screen>, view = {'arch': u'<form string="My Board">\n <hp... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 937}, view_type = u'form'
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<form string="My Board">\n <hp... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 937}, view_type=u'form')
151
152 from _views import get_view_widget
153 self.widget = get_view_widget(view_type, self)
154
155 self.string = (self.widget or '') and self.widget.string
self = Screen, self.widget = None, get_view_widget = <function get_view_widget at 0x01120D70>, view_type = u'form'
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\_views.py in get_view_widget(kind=u'form', screen=Screen)
122 raise Exception("view '%s' not supported." % kind)
123
124 return view(screen)
125
126 def get_registered_views():
view = <openerp.widgets._views.FormView object at 0x01703A30>, screen = Screen
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\_views.py in __call__(self=<openerp.widgets._views.FormView object at 0x01703A30>, screen=Screen)
56 editable=screen.editable,
57 readonly=screen.readonly,
58 nodefault=screen.nodefault, nolinks=screen.link)
59
60 if not screen.is_wizard and screen.ids is None:
nodefault undefined, screen = Screen, screen.nodefault = False, nolinks undefined, screen.link = 1
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\widgets\_meta.py in wrapper(self=Form, *args=(), **kw={'context': {'_terp_view_name': u'Project Dashboard', 'active_id': 384, 'active_ids': [384], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, 'domain': [], 'editable': True, 'ids': [], 'model': u'board.board', 'nodefault': False, 'nolinks': 1, 'prefix': '', 'readonly': False, 'view': {'arch': u'<form string="My Board">\n <hp... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 937}})
47 self.__initstack.append(1)
48
49 res = func(self, *args, **kw)
50 try:
51 self.__initstack.pop()
res undefined, func = <function __init__ at 0x01117B30>, self = Form, args = (), kw = {'context': {'_terp_view_name': u'Project Dashboard', 'active_id': 384, 'active_ids': [384], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, 'domain': [], 'editable': True, 'ids': [], 'model': u'board.board', 'nodefault': False, 'nolinks': 1, 'prefix': '', 'readonly': False, 'view': {'arch': u'<form string="My Board">\n <hp... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 937}}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\form\_form.py in __init__(self=Form, prefix='', model=u'board.board', view={'arch': u'<form string="My Board">\n <hp... </hpaned>\n </form>', 'field_parent': False, 'fields': {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, 'model': u'board.board', 'name': u'board.project.form', 'submenu': False, 'toolbar': {'action': [], 'print': [], 'relate': []}, 'type': u'form', 'view_id': 937}, ids=[], domain=[], context={'_terp_view_name': u'Project Dashboard', 'active_id': 384, 'active_ids': [384], 'active_model': 'ir.ui.menu', 'client': 'web', 'department_id': False, 'lang': u'zh_CN', 'project_id': False, 'section_id': False, 'tz': False}, editable=True, readonly=False, nodefault=False, nolinks=1)
812 self.view_fields = []
813 self.nb_couter = 0
814 self.frame = self.parse(prefix, dom, fields, values)[0]
815 self.values = [values]
816 self.concurrency_info = ConcurrencyInfo(self.model, [self.id])
self = Form, self.frame = None, self.parse = <bound method Form.parse of Form>, prefix = '', dom = <xml.dom.minidom.Document instance at 0x014C7710>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<xml.dom.minidom.Document instance at 0x014C7710>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values={'name': u'Dashboard'})
871
872 elif node.localName == 'form':
873 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
874 views.append(Frame(children=n, **attrs))
875
n undefined, self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <xml.dom.minidom.Document instance at 0x014C7710>, node = <DOM Element: form at 0x14c7eb8>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: form at 0x14c7eb8>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values={'name': u'Dashboard'})
918
919 elif node.localName=='hpaned':
920 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
921 views.append(HPaned(children=n, **attrs))
922
n = [], self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <DOM Element: form at 0x14c7eb8>, node = <DOM Element: hpaned at 0x14c7cd8>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: hpaned at 0x14c7cd8>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values={'name': u'Dashboard'})
926
927 elif node.localName in ('child1', 'child2'):
928 n = self.parse(prefix=prefix, root=node, fields=fields, values=values)
929 attrs['name'] = get_node_xpath(node)
930 views.append(Dashbar(children=n, **attrs))
n = [], self = Form, self.parse = <bound method Form.parse of Form>, prefix = '', root = <DOM Element: hpaned at 0x14c7cd8>, node = <DOM Element: child2 at 0x37dde68>, fields = {'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values = {'name': u'Dashboard'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\form\_form.py in parse(self=Form, prefix='', root=<DOM Element: child2 at 0x37dde68>, fields={'line_ids': {'context': {}, 'domain': [], 'relation': u'board.board.line', 'selectable': True, 'string': u'\u52a8\u4f5c\u89c6\u56fe', 'type': u'one2many'}, 'name': {'required': True, 'selectable': True, 'size': 64, 'string': u'\u63a7\u5236\u9762\u677f', 'type': u'char'}, 'view_id': {'context': {}, 'domain': [], 'relation': u'ir.ui.view', 'selectable': True, 'string': u'\u63a7\u5236\u53f0\u89c6\u56fe', 'type': u'many2one'}}, values={'name': u'Dashboard'})
931
932 elif node.localName=='action':
933 wid = get_widget('action')(**attrs)
934 views.append(wid)
935 cherrypy.request._terp_dashboard = True
wid = Action, global get_widget = <function get_widget at 0x010A3BF0>, attrs = {'colspan': u'4', 'height': u'100', 'name': u'611', 'prefix': '', 'state': None, 'string': u'My Open Issues by Creation Date'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\widgets\_meta.py in wrapper(self=Action, *args=(), **kw={'colspan': u'4', 'height': u'100', 'name': u'611', 'prefix': '', 'state': None, 'string': u'My Open Issues by Creation Date'})
47 self.__initstack.append(1)
48
49 res = func(self, *args, **kw)
50 try:
51 self.__initstack.pop()
res undefined, func = <function __init__ at 0x01120AF0>, self = Action, args = (), kw = {'colspan': u'4', 'height': u'100', 'name': u'611', 'prefix': '', 'state': None, 'string': u'My Open Issues by Creation Date'}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\form\_action.py in __init__(self=Action, **attrs={'colspan': u'4', 'height': u'100', 'name': u'611', 'prefix': '', 'state': None, 'string': u'My Open Issues by Creation Date'})
108 )
109
110 self.screen = screen.Screen(params, prefix=self.name, editable=True, selectable=3)
111
112 elif self.action['view_type']=='tree':
self = Action, self.screen = None, global screen = <module 'openerp.widgets.screen' from 'c:\progra...g\openerp-web\addons\openerp\widgets\screen.pyc'>, screen.Screen = <class 'openerp.widgets.screen.Screen'>, params = {'_terp_offset': 0, '_terp_model': u'project.iss...ext': {}, '_terp_view_ids': [1003, False, False]}, prefix undefined, self.name = u'611', editable undefined, builtin True = True, selectable undefined
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\widgets\_meta.py in wrapper(self=Screen, *args=({'_terp_offset': 0, '_terp_model': u'project.iss...ext': {}, '_terp_view_ids': [1003, False, False]},), **kw={'editable': True, 'prefix': u'611', 'selectable': 3})
47 self.__initstack.append(1)
48
49 res = func(self, *args, **kw)
50 try:
51 self.__initstack.pop()
res undefined, func = <function __init__ at 0x01120570>, self = Screen, args = ({'_terp_offset': 0, '_terp_model': u'project.iss...ext': {}, '_terp_view_ids': [1003, False, False]},), kw = {'editable': True, 'prefix': u'611', 'selectable': 3}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\screen.py in __init__(self=Screen, params={'_terp_offset': 0, '_terp_model': u'project.iss...ext': {}, '_terp_view_ids': [1003, False, False]}, prefix=u'611', name='', views_preloaded={}, hastoolbar=False, hassubmenu=False, editable=True, readonly=False, selectable=3, nolinks=1, **kw={})
131
132 if self.view_mode:
133 self.add_view_id(self.view_id, self.view_type)
134
135 def add_view_id(self, view_id, view_type):
self = Screen, self.add_view_id = <bound method Screen.add_view_id of Screen>, self.view_id = 1003, self.view_type = u'graph'
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\screen.py in add_view_id(self=Screen, view_id=1003, view_type=u'graph')
143 view = cache.fields_view_get(self.model, view_id, view_type, ctx, self.hastoolbar, self.hassubmenu)
144
145 self.add_view(view, view_type)
146
147 def add_view(self, view, view_type='form'):
self = Screen, self.add_view = <bound method Screen.add_view of Screen>, view = {'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, view_type = u'graph'
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\screen.py in add_view(self=Screen, view={'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, view_type=u'graph')
151
152 from _views import get_view_widget
153 self.widget = get_view_widget(view_type, self)
154
155 self.string = (self.widget or '') and self.widget.string
self = Screen, self.widget = None, get_view_widget = <function get_view_widget at 0x01120D70>, view_type = u'graph'
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\openerp\widgets\_views.py in get_view_widget(kind=u'graph', screen=Screen)
122 raise Exception("view '%s' not supported." % kind)
123
124 return view(screen)
125
126 def get_registered_views():
view = <view_graph.widgets._views.GraphView object at 0x0149C430>, screen = Screen
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\view_graph\widgets\_views.py in __call__(self=<view_graph.widgets._views.GraphView object at 0x0149C430>, screen=Screen)
17 ids=screen.ids, domain=screen.domain,
18 view_mode = screen.view_mode,
19 context=screen.context)
20 screen.ids = widget.ids
21 return widget
context undefined, screen = Screen, screen.context = {}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\openobject\widgets\_meta.py in wrapper(self=Graph, *args=(), **kw={'context': {}, 'domain': [('state', '=', 'open'), '|', ('assigned_to', '=', 1), ('user_id', '=', 1)], 'ids': None, 'model': u'project.issue.report', 'view': {'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, 'view_id': 1003, 'view_mode': [u'graph', u'tree', u'form']})
47 self.__initstack.append(1)
48
49 res = func(self, *args, **kw)
50 try:
51 self.__initstack.pop()
res undefined, func = <function __init__ at 0x011FDB70>, self = Graph, args = (), kw = {'context': {}, 'domain': [('state', '=', 'open'), '|', ('assigned_to', '=', 1), ('user_id', '=', 1)], 'ids': None, 'model': u'project.issue.report', 'view': {'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, 'view_id': 1003, 'view_mode': [u'graph', u'tree', u'form']}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\view_graph\widgets\_graph.py in __init__(self=Graph, model=u'project.issue.report', view={'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, view_id=1003, ids=None, domain=[('state', '=', 'open'), '|', ('assigned_to', '=', 1), ('user_id', '=', 1)], context={}, view_mode=[u'graph', u'tree', u'form'], width=360, height=300)
100 self.count = rpc.RPCProxy(model).search_count(domain, ctx)
101 if chart_type == "bar":
102 self.data = BarChart(model, view, view_id, ids, domain, view_mode, context)
103 else:
104 self.data = PieChart(model, view, view_id, ids, domain, view_mode, context)
self = Graph, self.data = None, global BarChart = <class 'view_graph.widgets._graph.BarChart'>, model = u'project.issue.report', view = {'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, view_id = 1003, ids = None, domain = [('state', '=', 'open'), '|', ('assigned_to', '=', 1), ('user_id', '=', 1)], view_mode = [u'graph', u'tree', u'form'], context = {}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\view_graph\widgets\_graph.py in __init__(self=<view_graph.widgets._graph.BarChart object at 0x015D31B0>, model=u'project.issue.report', view={'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, view_id=1003, ids=None, domain=[('state', '=', 'open'), '|', ('assigned_to', '=', 1), ('user_id', '=', 1)], view_mode=[u'graph', u'tree', u'form'], context={})
390
391 def __init__(self, model, view=False, view_id=False, ids=[], domain=[], view_mode=[], context={}):
392 super(BarChart, self).__init__(model, view, view_id, ids, domain, view_mode, context)
393 self.context = context
394
builtin super = <type 'super'>, global BarChart = <class 'view_graph.widgets._graph.BarChart'>, self = <view_graph.widgets._graph.BarChart object at 0x015D31B0>, ).__init__ = <bound method BarChart.__init__ of <view_graph.widgets._graph.BarChart object at 0x015D31B0>>, model = u'project.issue.report', view = {'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, view_id = 1003, ids = None, domain = [('state', '=', 'open'), '|', ('assigned_to', '=', 1), ('user_id', '=', 1)], view_mode = [u'graph', u'tree', u'form'], context = {}
c:\program files\openerp allinone\web\python25\lib\site-packages\openerp_web-6.0.0_rc1_1-py2.5.egg\openerp-web\addons\view_graph\widgets\_graph.py in __init__(self=<view_graph.widgets._graph.BarChart object at 0x015D31B0>, model=u'project.issue.report', view={'arch': u'<graph orientation="vertical" string="My Open Pr...ame="nbr" operator="+"/>\n </graph>', 'field_parent': False, 'fields': {'creation_date': {'name': u'creation_date', 'readonly': True, 'selectable': True, 'string': u'Creation Date', 'type': u'date', 'views': {}}, 'nbr': {'name': u'nbr', 'operator': u'+', 'readonly': True, 'selectable': True, 'string': u'# of Issues', 'type': u'integer', 'views': {}}}, 'model': u'project.issue.report', 'name': u'my.open.project.issue.graph', 'type': u'graph', 'view_id': 1003}, view_id=1003, ids=[1], domain=[('state', '=', 'open'), '|', ('assigned_to', '=', 1), ('user_id', '=', 1)], view_mode=[u'graph', u'tree', u'form'], context={})
159 elif fields[x]['type'] == 'date':
160 if value[x]:
161 date = time.strptime(value[x], DHM_FORMAT)
162 if 'tz' in rpc.session.context:
163 try:
date undefined, global time = <module 'time' (built-in)>, time.strptime = <built-in function strptime>, value = {'creation_date': u'2010-10-31', 'id': 1, 'nbr': 1}, x = u'creation_date', global DHM_FORMAT = '%Y-%m-%d %H:%M:%S'
C:\Program Files\OpenERP AllInOne\Web\python25\lib\_strptime.py in strptime(data_string=u'2010-10-31', format='%Y-%m-%d %H:%M:%S')
328 if not found:
329 raise ValueError("time data did not match format: data=%s fmt=%s" %
330 (data_string, format))
331 if len(data_string) != found.end():
332 raise ValueError("unconverted data remains: %s" %
data_string = u'2010-10-31', format = '%Y-%m-%d %H:%M:%S'

<type 'exceptions.ValueError'>: time data did not match format: data=2010-10-31 fmt=%Y-%m-%d %H:%M:%S
args = (u'time data did not match format: data=2010-10-31 fmt=%Y-%m-%d %H:%M:%S',)
message = u'time data did not match format: data=2010-10-31 fmt=%Y-%m-%d %H:%M:%S'