Changeset 4236

Show
Ignore:
Timestamp:
03/13/08 19:40:12 (10 months ago)
Author:
mramm
Message:

Updated publish_parts call to not break when there are multiple paragraphs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • docs/2.0/Wiki-20/docs/tutorial.rst

    r4189 r4236  
    683683        def default(self, pagename="FrontPage"): 
    684684            page = DBSession.query(Page).filter_by(pagename=pagename).one() 
    685             **content = publish_parts(page.data, writer_name="html")['fragment']** 
     685            **content = publish_parts(page.data, writer_name="html")['html_body']** 
    686686            **root = tg.url('/')** 
    687687            **content = wikiwords.sub(r'<a href="%s\1">\1</a>' % root, content)** 
  • docs/2.0/Wiki-20/wiki20/controllers/root.py

    r4189 r4236  
    2121        except InvalidRequestError: 
    2222            raise tg.redirect("notfound", pagename = pagename) 
    23         content = publish_parts(page.data, writer_name="html")['fragment'] 
     23        content = publish_parts(page.data, writer_name="html")['html_body'] 
    2424        root = tg.url('/') 
    2525        content = wikiwords.sub(r'<a href="%s\1">\1</a>' % root, content)