Changeset 4644
- Timestamp:
- 05/31/08 16:39:35 (6 months ago)
- Files:
-
- trunk/docs/main/Wiki20/wiki20.rst (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/main/Wiki20/wiki20.rst
r4643 r4644 133 133 immediately see the results. 134 134 135 Point your browser at `http://localhost:8080/`_, and you'll see a nice135 Point your browser at http://localhost:8080/, and you'll see a nice 136 136 welcome page. You now have a working project! 137 137 … … 711 711 **from docutils.core import publish_parts** 712 712 713 **wikiwords = re.compile(r"\ b([A-Z]\w+[A-Z]+\w+)")**713 **wikiwords = re.compile(r"\\b([A-Z]\\w+[A-Z]+\\w+)")** 714 714 715 715 class RootController(BaseController): … … 722 722 **content = publish_parts(page.data, writer_name="html")["html_body"]** 723 723 **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)** 725 725 **return dict(content=content, wikipage=page)** 726 726 … … 845 845 **from sqlalchemy.exceptions import InvalidRequestError** 846 846 847 wikiwords = re.compile(r"\ b([A-Z]\w+[A-Z]+\w+)")847 wikiwords = re.compile(r"\\b([A-Z]\\w+[A-Z]+\\w+)") 848 848 849 849 class RootController(BaseController): … … 860 860 content = publish_parts(page.data, writer_name="html")["html_body"] 861 861 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) 863 863 return dict(content=content, wikipage=page) 864 864 … … 1005 1005 from sqlalchemy.exceptions import InvalidRequestError 1006 1006 1007 wikiwords = re.compile(r"\ b([A-Z]\w+[A-Z]+\w+)")1007 wikiwords = re.compile(r"\\b([A-Z]\\w+[A-Z]+\\w+)") 1008 1008 1009 1009 class RootController(BaseController): … … 1020 1020 content = publish_parts(page.data, writer_name="html")["html_body"] 1021 1021 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) 1023 1023 return dict(content=content, wikipage=page) 1024 1024