Changeset 4644

Show
Ignore:
Timestamp:
05/31/08 16:39:35 (6 months ago)
Author:
mramm
Message:

escaped wiki word regular expression slashes. Make the localhost:8080 link work again.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/docs/main/Wiki20/wiki20.rst

    r4643 r4644  
    133133immediately see the results. 
    134134 
    135 Point your browser at `http://localhost:8080/`_, and you'll see a nice 
     135Point your browser at http://localhost:8080/, and you'll see a nice 
    136136welcome page. You now have a working project! 
    137137 
     
    711711    **from docutils.core import publish_parts** 
    712712 
    713     **wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)")** 
     713    **wikiwords = re.compile(r"\\b([A-Z]\\w+[A-Z]+\\w+)")** 
    714714 
    715715    class RootController(BaseController): 
     
    722722            **content = publish_parts(page.data, writer_name="html")["html_body"]** 
    723723            **root = tg.url('/')** 
    724             **content = wikiwords.sub(r'<a href="%s\1">\1</a>' % root, content)** 
     724            **content = wikiwords.sub(r'<a href="%s\\1">\\1</a>' % root, content)** 
    725725            **return dict(content=content, wikipage=page)** 
    726726 
     
    845845    **from sqlalchemy.exceptions import InvalidRequestError** 
    846846 
    847     wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)") 
     847    wikiwords = re.compile(r"\\b([A-Z]\\w+[A-Z]+\\w+)") 
    848848 
    849849    class RootController(BaseController): 
     
    860860            content = publish_parts(page.data, writer_name="html")["html_body"] 
    861861            root = tg.url('/') 
    862             content = wikiwords.sub(r'<a href="%s\1">\1</a>' % root, content) 
     862            content = wikiwords.sub(r'<a href="%s\\1">\\1</a>' % root, content) 
    863863            return dict(content=content, wikipage=page) 
    864864 
     
    10051005    from sqlalchemy.exceptions import InvalidRequestError 
    10061006 
    1007     wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)") 
     1007    wikiwords = re.compile(r"\\b([A-Z]\\w+[A-Z]+\\w+)") 
    10081008 
    10091009    class RootController(BaseController): 
     
    10201020            content = publish_parts(page.data, writer_name="html")["html_body"] 
    10211021            root = tg.url('/') 
    1022             content = wikiwords.sub(r'<a href="%s\1">\1</a>' % root, content) 
     1022            content = wikiwords.sub(r'<a href="%s\\1">\\1</a>' % root, content) 
    10231023            return dict(content=content, wikipage=page) 
    10241024