> Does your index method look like it does on page 2 of the tutorial?
> http://www.turbogears.org/preview/docs/tutorials/wiki20/page2.html
>
> Specifically, it should be returning page in the dict() at the end:
> @expose("wiki20.templates.page")
> def index(self, pagename="FrontPage"):
> page = Page.byPagename(pagename)
> content = publish_parts(page.data, writer_name="html")["html_body"]
> return dict(data=content, page=page)
>
> Those are the values that get plugged into the template.
Previously the documentation had
return dict(data=content, pagename=page.pagename)
That was what went wrong. Now its working fine. Thanks a lot
--
Next mail in %d minutes
cnu - http://cnu.livejournal.com
http://www.fslog.com - Free Software Blog
http://www.srinivasan.be - $6.25/mo - 15000 MB Data Storage - 300 GB
Data transfer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---