Back to index

moin  1.9.0~rc2
Classes | Functions | Variables
MoinMoin.script.migration._conv160a Namespace Reference

Classes

class  EventLog
class  EditLog
class  PageRev
class  Attachment
class  Page
class  User
class  DataConverter

Functions

def markup_converter

Variables

 create_rev = True

Function Documentation

def MoinMoin.script.migration._conv160a.markup_converter (   request,
  pagename,
  text,
  renames 
)
Convert the <text> content of page <pagename>, using <renames> dict
    to rename links correctly. Additionally, convert some changed markup.

Definition at line 52 of file _conv160a.py.

00052 
00053 def markup_converter(request, pagename, text, renames):
00054     """ Convert the <text> content of page <pagename>, using <renames> dict
00055         to rename links correctly. Additionally, convert some changed markup.
00056     """
00057     if text.startswith('<?xml'):
00058         # would be done with xslt processor
00059         return text
00060 
00061     pis, body = wikiutil.get_processing_instructions(text)
00062     for pi, val in pis:
00063         if pi == 'format' and val != 'wiki':
00064             # not wiki page
00065             return text
00066 
00067     text = convert_wiki(request, pagename, text, renames)
00068     return text
00069 

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 50 of file _conv160a.py.