Skip to content
Snippets Groups Projects
Commit 5aa46777 authored by Mantavya Gajjar's avatar Mantavya Gajjar
Browse files

merging from trunk server

bzr revid: mga@tinyerp.com-20090601101419-wkfesmoaddfpufxf
parents 31ff33c4 74b2bb3e
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,10 @@ class html2html(object):
output = cStringIO.StringIO(base64.decodestring(src))
img = ImageReader(output)
(width,height) = img.getSize()
new_child.set('width',str(width))
new_child.set('height',str(height))
if not new_child.get('width'):
new_child.set('width',str(width))
if not new_child.get('height') :
new_child.set('height',str(height))
else :
new_child.getparent().remove(new_child)
new_child.text = utils._process_text(self, child.text)
......
......@@ -196,7 +196,7 @@ class rml_parse(object):
def removeParentNode(self, tag=None):
raise Exception('Skip')
def set_html_image(self,id,model=None,field=None):
def set_html_image(self,id,model=None,field=None,context=None):
if not id :
return ''
if not model:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment