changeset 1726:810a5856c94c

text_gedit:bug with wrong used splitting for subpages removed, now the w/h frame for images from other pages is shown, saving of changes works well. ToDo: find out how an image could be shown from an other page without changing the pagename from within the gui editor.
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 09 Jan 2007 20:08:32 +0100
parents ef67391ffced
children 8907f3657f80
files MoinMoin/formatter/text_gedit.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/text_gedit.py	Tue Jan 09 07:38:26 2007 +0100
+++ b/MoinMoin/formatter/text_gedit.py	Tue Jan 09 20:08:32 2007 +0100
@@ -119,15 +119,12 @@
                         if url.startswith('http'):
                             kw['src'] = url
                         else:
-                            if '/' in arg:
-                                pagename, arg = arg.split('/')
-                                url = arg
                             kw['title'] = "attachment:%s" % wikiutil.quoteWikinameURL(url)
                     elif pos == 1 and arg:
                         kw['target'] = arg
                     pos += 1
             if not kw['src']:
-               kw['src'] = AttachFile.getAttachUrl(pagename, url, self.request, addts=1)
+                kw['src'] = AttachFile.getAttachUrl(pagename, url, self.request, addts=1)
             return self.image(**kw)
 
         elif args is not None: