comparison MoinMoin/script/migration/_conv160_wiki.py @ 4569:3caaa8c74c41

wikiutil: replace moin's cgi/urllib wrappers by calls to werkzeug.utils code
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Wed, 11 Feb 2009 02:34:33 +0100
parents 2a380f99afa8
children 10965bc1ee3c
comparison
equal deleted inserted replaced
4568:def073ae536c 4569:3caaa8c74c41
330 #scheme, fname, text = wikiutil.split_wiki(target_and_text) 330 #scheme, fname, text = wikiutil.split_wiki(target_and_text)
331 331
332 pagename, fname = AttachFile.absoluteName(fname, self.pagename) 332 pagename, fname = AttachFile.absoluteName(fname, self.pagename)
333 from_this_page = pagename == self.pagename 333 from_this_page = pagename == self.pagename
334 fname = self._replace(('FILE', pagename, fname)) 334 fname = self._replace(('FILE', pagename, fname))
335 fname = wikiutil.url_unquote(fname, want_unicode=True) 335 fname = wikiutil.url_unquote(fname)
336 fname = self._replace(('FILE', pagename, fname)) 336 fname = self._replace(('FILE', pagename, fname))
337 pagename = self._replace(('PAGE', pagename)) 337 pagename = self._replace(('PAGE', pagename))
338 if from_this_page: 338 if from_this_page:
339 name = fname 339 name = fname
340 else: 340 else: