comparison MoinMoin/action/anywikidraw.py @ 5080:67114f9e3d81

action.anywikidraw: links the image to the drawing action. Any image mapping overwrites the default link for the region which is covered by the mapping. The white around the mapping url links to the action.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Wed, 02 Sep 2009 19:38:13 +0200
parents 32ad275278d0
children 3e1d3367aeaa
comparison
equal deleted inserted replaced
5079:32ad275278d0 5080:67114f9e3d81
94 if 'title' not in kw: 94 if 'title' not in kw:
95 kw['title'] = title 95 kw['title'] = title
96 if 'alt' not in kw: 96 if 'alt' not in kw:
97 kw['alt'] = kw['title'] 97 kw['alt'] = kw['title']
98 kw['usemap'] = '#'+mapid 98 kw['usemap'] = '#'+mapid
99 return map + self.image(**kw) 99 return self.url(1, drawing_url) + map + self.image(**kw) + self.url(0)
100 else: 100 else:
101 if 'title' not in kw: 101 if 'title' not in kw:
102 kw['title'] = title 102 kw['title'] = title
103 if 'alt' not in kw: 103 if 'alt' not in kw:
104 kw['alt'] = kw['title'] 104 kw['alt'] = kw['title']