-
NicoTheBrush
-
-
Offline
-
Platinum Boarder
-
- Messaggi: 1952
- Ringraziamenti ricevuti 156
-
Karma: 46
-
|
Per le proprietà forse ho capito le modifiche da fare, Elbati mi ha dato 2 dritte per ricaricare i moduli (importante anche: la variazione della versione, cosa che effettivamente non tenevo molto in considerazione, di fatto, non riuscendo a fare l'aggiornamento di programmazione)
Per rimanere sempre "sul pezzo" stavo inserendo un Insegnante in un corso e mi trovo una sbrodolata infinita nel browser multicolor cherrypy, ti dice qualcosa? Mi sembra che richieda un dictionary 2 almeno 2 elementi a differenza dell'errore classico python però qui non so come muovermi:
La pagina chiamata se occorre è:
[url]http://192.168.100.166:8080/openo2m/edit?_terp_view_params%2F_terp_model=training.session&_terp_view_params%2F_terp_id=4&_terp_view_params%2F_terp_ids=[4]&_terp_view_params%2F_terp_view_ids=[False%2C%20False%2C%20False]&_terp_view_params%2F_terp_view_mode=[u%27tree%27%2C%20u%27form%27%2C%20u%27calendar%27]&_terp_view_params%2F_terp_context={%27lang%27%3A%20u%27it_IT%27%2C%20%27tz%27%3A%20False%2C%20%27_terp_view_name%27%3A%20u%27Confirmed%20Sessions%27%2C%20%27client%27%3A%20%27web%27%2C%20%27active_ids%27%3A%20[386]%2C%20%27active_id%27%3A%20386}&_terp_view_params%2F_terp_view_type=form&_terp_view_params%2Frequest_ids%2F_terp_model=training.participation.stakeholder.request&_terp_view_params%2Frequest_ids%2F_terp_id=False&_terp_view_params%2Frequest_ids%2F_terp_ids=[]&_terp_view_params%2Frequest_ids%2F_terp_view_ids=[False%2C%20False]&_terp_view_params%2Frequest_ids%2F_terp_view_mode=[%27tree%27%2C%20%27form%27]&_terp_view_params%2Frequest_ids%2F_terp_context={%27default_session_id%27%3A%204}&_terp_view_params%2Frequest_ids%2F_terp_view_type=form&_terp_parent_model=training.session&_terp_parent_id=4&_terp_parent_view_id=442&_terp_o2m=request_ids&_terp_o2m_model=training.participation.stakeholder.request&_terp_editable=1&_terp_o2m_context={%27lang%27%3A%20u%27it_IT%27%2C%20%27client%27%3A%20%27web%27%2C%20%27default_session_id%27%3A%20%3Cbuilt-in%20function%20id%3E%2C%20%27tz%27%3A%20False%2C%20%27active_ids%27%3A%20[4]%2C%20%27active_id%27%3A%204}[/url] <type 'exceptions.ValueError'> Python 2.6.5: /usr/bin/python
Wed Oct 6 01:19:20 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.
/home/administrator/Launchpad/openerp/web/lib/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openo2m/edit')
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/administrator/Launchpad/openerp/web/lib/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/home/administrator/Launchpad/openerp/web/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 edit>, self.args = (), self.kwargs = {'_terp_editable': '1', '_terp_o2m': 'request_ids', '_terp_o2m_context': "{'lang': u'it_IT', 'client': 'web', 'default_ses..., 'tz': False, 'active_ids': [4], 'active_id': 4}", '_terp_o2m_model': 'training.participation.stakeholder.request', '_terp_parent_id': '4', '_terp_parent_model': 'training.session', '_terp_parent_view_id': '442', '_terp_view_params/_terp_context': "{'lang': u'it_IT', 'tz': False, '_terp_view_name...t': 'web', 'active_ids': [386], 'active_id': 386}", '_terp_view_params/_terp_id': '4', '_terp_view_params/_terp_ids': '[4]', ...}
/home/administrator/Launchpad/openerp/web/openerp/controllers/base.py in wrapper(*args=(), **kw={'_terp_editable': '1', '_terp_o2m': 'request_ids', '_terp_o2m_context': "{'lang': u'it_IT', 'client': 'web', 'default_ses..., 'tz': False, 'active_ids': [4], 'active_id': 4}", '_terp_o2m_model': 'training.participation.stakeholder.request', '_terp_parent_id': '4', '_terp_parent_model': 'training.session', '_terp_parent_view_id': '442', '_terp_view_params/_terp_context': "{'lang': u'it_IT', 'tz': False, '_terp_view_name...t': 'web', 'active_ids': [386], 'active_id': 386}", '_terp_view_params/_terp_id': '4', '_terp_view_params/_terp_ids': '[4]', ...})
128 # User is logged in; allow access
129 clear_login_fields(kw)
130 return fn(*args, **kw)
131 else:
132 # User isn't logged in yet.
fn = <bound method OpenO2M.edit of <openerp.controllers.openo2m.OpenO2M object>>, args = (), kw = {'_terp_editable': '1', '_terp_o2m': 'request_ids', '_terp_o2m_context': "{'lang': u'it_IT', 'client': 'web', 'default_ses..., 'tz': False, 'active_ids': [4], 'active_id': 4}", '_terp_o2m_model': 'training.participation.stakeholder.request', '_terp_parent_id': '4', '_terp_parent_model': 'training.session', '_terp_parent_view_id': '442', '_terp_view_params/_terp_context': "{'lang': u'it_IT', 'tz': False, '_terp_view_name...t': 'web', 'active_ids': [386], 'active_id': 386}", '_terp_view_params/_terp_id': '4', '_terp_view_params/_terp_ids': '[4]', ...}
/home/administrator/Launchpad/openerp/web/openerp/tools/expose.py in func_wrapper(*args=(<openerp.controllers.openo2m.OpenO2M object>,), **kw={'_terp_editable': '1', '_terp_o2m': 'request_ids', '_terp_o2m_context': "{'lang': u'it_IT', 'client': 'web', 'default_ses..., 'tz': False, 'active_ids': [4], 'active_id': 4}", '_terp_o2m_model': 'training.participation.stakeholder.request', '_terp_parent_id': '4', '_terp_parent_model': 'training.session', '_terp_parent_view_id': '442', '_terp_view_params/_terp_context': "{'lang': u'it_IT', 'tz': False, '_terp_view_name...t': 'web', 'active_ids': [386], 'active_id': 386}", '_terp_view_params/_terp_id': '4', '_terp_view_params/_terp_ids': '[4]', ...})
202 def func_wrapper(*args, **kw):
203
204 res = func(*args, **kw)
205
206 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/home/administrator/Launchpad/openerp/web/openerp/controllers/templates/wizard.mako', func = <function edit>, args = (<openerp.controllers.openo2m.OpenO2M object>,), kw = {'_terp_editable': '1', '_terp_o2m': 'request_ids', '_terp_o2m_context': "{'lang': u'it_IT', 'client': 'web', 'default_ses..., 'tz': False, 'active_ids': [4], 'active_id': 4}", '_terp_o2m_model': 'training.participation.stakeholder.request', '_terp_parent_id': '4', '_terp_parent_model': 'training.session', '_terp_parent_view_id': '442', '_terp_view_params/_terp_context': "{'lang': u'it_IT', 'tz': False, '_terp_view_name...t': 'web', 'active_ids': [386], 'active_id': 386}", '_terp_view_params/_terp_id': '4', '_terp_view_params/_terp_ids': '[4]', ...}
/home/administrator/Launchpad/openerp/web/openerp/controllers/openo2m.py in edit(self=<openerp.controllers.openo2m.OpenO2M object>, **kw={'_terp_editable': '1', '_terp_o2m': 'request_ids', '_terp_o2m_context': "{'lang': u'it_IT', 'client': 'web', 'default_ses..., 'tz': False, 'active_ids': [4], 'active_id': 4}", '_terp_o2m_model': 'training.participation.stakeholder.request', '_terp_parent_id': '4', '_terp_parent_model': 'training.session', '_terp_parent_view_id': '442', '_terp_view_params/_terp_context': "{'lang': u'it_IT', 'tz': False, '_terp_view_name...t': 'web', 'active_ids': [386], 'active_id': 386}", '_terp_view_params/_terp_id': '4', '_terp_view_params/_terp_ids': '[4]', ...})
176 def edit(self, **kw):
177 params, data = TinyDict.split(kw)
178 return self.create(params)
179
180 # vim: ts=4 sts=4 sw=4 si et
self = <openerp.controllers.openo2m.OpenO2M object>, self.create = <function create>, params = {'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'}
/home/administrator/Launchpad/openerp/web/openerp/controllers/base.py in wrapper(*args=({'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'},), **kw={})
128 # User is logged in; allow access
129 clear_login_fields(kw)
130 return fn(*args, **kw)
131 else:
132 # User isn't logged in yet.
fn = <bound method OpenO2M.create of <openerp.controllers.openo2m.OpenO2M object>>, args = ({'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'},), kw = {}
/home/administrator/Launchpad/openerp/web/openerp/tools/expose.py in func_wrapper(*args=(<openerp.controllers.openo2m.OpenO2M object>, {'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'}), **kw={})
202 def func_wrapper(*args, **kw):
203
204 res = func(*args, **kw)
205
206 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/home/administrator/Launchpad/openerp/web/openerp/controllers/templates/wizard.mako', func = <function create>, args = (<openerp.controllers.openo2m.OpenO2M object>, {'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'}), kw = {}
/home/administrator/Launchpad/openerp/web/openerp/controllers/openo2m.py in create(self=<openerp.controllers.openo2m.OpenO2M object>, params={'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'}, tg_errors=None)
120 form = cherrypy.request.terp_form
121 else:
122 form = self.create_form(params, tg_errors)
123
124 return dict(form=form, params=params)
form undefined, self = <openerp.controllers.openo2m.OpenO2M object>, self.create_form = <bound method OpenO2M.create_form of <openerp.controllers.openo2m.OpenO2M object>>, params = {'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'}, tg_errors = None
/home/administrator/Launchpad/openerp/web/openerp/controllers/openo2m.py in create_form(self=<openerp.controllers.openo2m.OpenO2M object>, params={'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'}, tg_errors=None)
96 ctx = params.context or {}
97 ctx.update(params.parent_context or {})
98 ctx.update(params.o2m_context or {})
99 p, ctx = TinyDict.split(ctx)
100
ctx = {}, ctx.update = <built-in method update of dict object>, params = {'_terp_view_type': 'form', '_terp_o2m': 'reques...erp_view_ids': [], '_terp_prefix': 'request_ids'}, params.o2m_context = "{'lang': u'it_IT', 'client': 'web', 'default_ses..., 'tz': False, 'active_ids': [4], 'active_id': 4}"
<type 'exceptions.ValueError'>: dictionary update sequence element #0 has length 1; 2 is required
args = ('dictionary update sequence element #0 has length 1; 2 is required',)
message = 'dictionary update sequence element #0 has length 1; 2 is required'
|