> 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.

I've made this test method:

    @turbogears.expose(content_type="text/plain")
    def test(self):
        s = "cherrypy.tree.mount_point: %s\n" %
cherrypy.tree.mount_point()
        s += "server.webpath: %s\n" %
cherrypy.config.get("server.webpath", "NONE")
        s += turbogears.url("/edit", pagename = "FrontPage")
        return s

and this is what I get:
cherrypy.tree.mount_point: /
server.webpath: NONE
//edit?pagename=FrontPage

I've compared the output with a guy on IRC, and his
cherrypy.tree.mount_point is "" not "/".

This is my environment:
[EMAIL PROTECTED]:~# tg-admin info
TurboGears 0.9a0dev-r790
nose 0.8.6
RuleDispatch 0.5a0
setuptools 0.6a10
FormEncode 0.4
cElementTree 1.0.5-20051216
PasteScript 0.4.1
elementtree 1.2.6
simplejson 1.1
SQLObject 0.7.1dev-r1588
CherryPy 2.2.0betadev-r973
TurboKid 0.9.1dev-r785
PyProtocols 1.0a0
INITools 0.1
PasteDeploy 0.4
Paste 0.5dev-r4745
FormEncode 0.4
kid 0.9a0dev-r265
elementtree 1.2.6

[EMAIL PROTECTED]:~# python -V
Python 2.4.1


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to