c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #08580
[Bug 691472] [NEW] Binary Field data restore problem
Public bug reported:
I'm using Binary Field on product model.
_inherit = 'product.product'
_columns = {
'picture': fields.binary('Image'),
}
And when i backup my database then restore it, my uploaded pictures does
not restored and product form view has broken.
In gtk-client log :
Traceback (most recent call last):
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/list.py", line 663, in __sig_switch
self.screen.row_activate(self.screen)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 82, in <lambda>
self.row_activate = lambda self,screen=None: self.switch_view(screen, 'form')
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 564, in switch_view
self.current_model.validate_set()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 188, in validate_set
self.reload()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 263, in reload
return self._reload(self.mgroup.mfields.keys() + [CONCURRENCY_CHECK_FIELD])
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 277, in _reload
self.set(value)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 260, in set
self.signal('record-changed')
File "/home/jacara/Pydev-workspace/openobject-client/bin/signal_event.py", line 28, in signal
fnct(self, signal_data, *data)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/group.py", line 310, in _record_changed
self.signal('model-changed', model)
File "/home/jacara/Pydev-workspace/openobject-client/bin/signal_event.py", line 28, in signal
fnct(self, signal_data, *data)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 443, in _model_changed
self.display()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 823, in display
self.current_view.display()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form.py", line 401, in display
widget.display(model, state)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form.py", line 52, in display
self.widget.display(model, modelfield)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form_gtk/image.py", line 218, in display
self.update_img()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form_gtk/image.py", line 173, in update_img
data = decodestring(self._value)
File "/usr/lib/python2.6/base64.py", line 321, in decodestring
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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/691472
Title:
Binary Field data restore problem
Status in OpenObject Addons Modules:
New
Bug description:
I'm using Binary Field on product model.
_inherit = 'product.product'
_columns = {
'picture': fields.binary('Image'),
}
And when i backup my database then restore it, my uploaded pictures does not restored and product form view has broken.
In gtk-client log :
Traceback (most recent call last):
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/list.py", line 663, in __sig_switch
self.screen.row_activate(self.screen)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 82, in <lambda>
self.row_activate = lambda self,screen=None: self.switch_view(screen, 'form')
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 564, in switch_view
self.current_model.validate_set()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 188, in validate_set
self.reload()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 263, in reload
return self._reload(self.mgroup.mfields.keys() + [CONCURRENCY_CHECK_FIELD])
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 277, in _reload
self.set(value)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/record.py", line 260, in set
self.signal('record-changed')
File "/home/jacara/Pydev-workspace/openobject-client/bin/signal_event.py", line 28, in signal
fnct(self, signal_data, *data)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/model/group.py", line 310, in _record_changed
self.signal('model-changed', model)
File "/home/jacara/Pydev-workspace/openobject-client/bin/signal_event.py", line 28, in signal
fnct(self, signal_data, *data)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 443, in _model_changed
self.display()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/screen/screen.py", line 823, in display
self.current_view.display()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form.py", line 401, in display
widget.display(model, state)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form.py", line 52, in display
self.widget.display(model, modelfield)
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form_gtk/image.py", line 218, in display
self.update_img()
File "/home/jacara/Pydev-workspace/openobject-client/bin/widget/view/form_gtk/image.py", line 173, in update_img
data = decodestring(self._value)
File "/usr/lib/python2.6/base64.py", line 321, in decodestring
return binascii.a2b_base64(s)
binascii.Error: Incorrect padding
Follow ups
References