changeset 2833:ea9a38d2ec09

1.6 converter: if ImageLink target is inline:..., then replace it with attachment: as we do not support inline: any more
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 11 Sep 2007 21:30:35 +0200
parents bda6fe7c015b
children 7d4a6e369a5a
files MoinMoin/script/migration/_conv160_wiki.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/migration/_conv160_wiki.py	Tue Sep 11 19:04:35 2007 +0200
+++ b/MoinMoin/script/migration/_conv160_wiki.py	Tue Sep 11 21:30:35 2007 +0200
@@ -168,6 +168,8 @@
                 image = u'attachment:%s' % image
             if not target:
                 target = image
+            elif target.startswith('inline:'):
+                target = 'attachment:' + target[7:] # we don't support inline:
             image_attrs = []
             alt = kw.get('alt') or ''
             width = kw.get('width')