Please don't remove previous patch update it otherwise followers are not notify. http://codereview.appspot.com/1859046/diff/1/2 File trytond/pyson.py ...
13 years, 8 months ago
(2010-07-22 18:29:41 UTC)
#2
Please don't remove previous patch update it otherwise followers are not notify.
http://codereview.appspot.com/1859046/diff/1/2
File trytond/pyson.py (right):
http://codereview.appspot.com/1859046/diff/1/2#newcode41
trytond/pyson.py:41: def __init__(self, do_eval=True, context=None):
I think we should create a new decoder.
http://codereview.appspot.com/1859046/diff/1/2#newcode52
trytond/pyson.py:52: elif hasattr(klass, 'revert_pyson'):
I don't like the name of the method.
I think we could prevent to write method on each class if we make __init__
keywords the same then PYSON.
But simply return:
value = dct.copy()
del value['__class__']
return klass(**value)
Issue 1859046: allow pyson decoding without evaluation
Created 13 years, 8 months ago by timitos
Modified 11 years ago
Reviewers: yangoon1, ced, udono, yangoon
Base URL:
Comments: 2