comparison MoinMoin/script/migration/_conv160a_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 b120d9978144
children 83483f4e26cb
comparison
equal deleted inserted replaced
4568:def073ae536c 4569:3caaa8c74c41
320 scheme, fname, text = wikiutil160a.split_wiki(target_and_text) 320 scheme, fname, text = wikiutil160a.split_wiki(target_and_text)
321 321
322 pagename, fname = AttachFile.absoluteName(fname, self.pagename) 322 pagename, fname = AttachFile.absoluteName(fname, self.pagename)
323 from_this_page = pagename == self.pagename 323 from_this_page = pagename == self.pagename
324 fname = self._replace(('FILE', pagename, fname)) 324 fname = self._replace(('FILE', pagename, fname))
325 #fname = wikiutil.url_unquote(fname, want_unicode=True) 325 #fname = wikiutil.url_unquote(fname)
326 #fname = self._replace(('FILE', pagename, fname)) 326 #fname = self._replace(('FILE', pagename, fname))
327 pagename = self._replace(('PAGE', pagename)) 327 pagename = self._replace(('PAGE', pagename))
328 if from_this_page: 328 if from_this_page:
329 name = fname 329 name = fname
330 else: 330 else: