Tryton - Issues

 

Issue3011

Title Add validation of selection in DictSchemaMixin
Priority feature Status chatting
Superseder Nosy List Airidas, ced
Type behavior Components
Assigned To Keywords
Reviews

Created on 2013-02-17.14:53:43 by Airidas, last changed by ced.

Messages
msg12530 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2013-02-17.15:11:08
This is not a bug, you just did not respect the format for selection definition
of Dict fields.
A validation would generate a better error message.
msg12528 (view) Author: [hidden] (Airidas) Date:
Traceback (most recent call last):
  File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
    response['result'] = dispatch_method(method, params)
  File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
    res = dispatch(*args)
  File "/trytond/protocols/dispatcher.py", line 156, in dispatch
    result = rpc.result(meth(*args, **kwargs))
  File "/trytond/model/dictschema.py", line 74, in get_keys
    selection = dict(json.loads(english_key.selection_json))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
History
Date User Action Args
2014-10-18 22:59:44cedlinkissue4263 superseder
2013-09-21 00:55:28cedlinkissue3293 superseder
2013-02-17 15:11:09cedsetstatus: unread -> chatting
title: dictionary update sequence element #0 has length 1; 2 is required -> Add validation of selection in DictSchemaMixin
nosy: + ced
messages: + msg12530
priority: bug -> feature
type: behavior
2013-02-17 14:53:43Airidascreate

Showing 10 items. Show all history (warning: this could be VERY long)