I'm doing the wiki tutorial with TurboGears 0.9, installed from
http://www.turbogears.org/preview/download/index.html today.
First thing, to create the first page you need to also commit, so this
is the proper command:
tg-admin shell
Page(pagename="FrontPage", data="Welcome to my front page")
hub.commit()
Otherwise the page will not be created (at least with pysqlite-2.0.5
and sqlite-3.2.7).
Second, I'm up to the place when I have to add a "Edit this page" link
in the page.kid template.
But <a href="${std.url('/edit', pagename=pagename)}"> creates this link
<A HREF="//edit?pagename=FrontPage">, note the double slash.
Interesting enough the You can return to the <A HREF="/">FrontPage</A>
url is ok.
I've also tried <a href="/edit?pagename=${pagename}">, but it also
creates the same url with the double slash.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---