← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 559674] Re: trunk wiki strange coding of addImage

 

** Changed in: openobject-client-web
       Status: Fix Committed => Fix Released

-- 
trunk wiki strange coding of addImage
https://bugs.launchpad.net/bugs/559674
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: Fix Released

Bug description:
./addons/widget_wiki/widgets/wiki.py

134     def addImage(self, text, id):
135         def image(path):
136             file = path.group().replace('img:','')
137             if file.startswith('http') or file.startswith('ftp') or file.startswith('http'):
138                 return "<img src='%s'/>" % (file)

file.startswith('http') is mentioned 2 times 
should it read https ?

BTW it would be nice to have access to the server file system 
something like
img:file://path/name.png