On 16. jan. 2006, at 17.40, Kevin Dangoor wrote:


On 1/16/06, Rune Hansen <[EMAIL PROTECTED]> wrote:
std.url from todays svn checkout behaves differently from the one on friday:

<form action="" method="POST">
<input type="text" name="name" value=""/>
<input type="submit" name="submit" value="Add Source Group"/>
</form>

When loading this form for the first time the source reads:
 <FORM ACTION="" METHOD="POST">
.
.

After submitting the form on the url "localhost:10103/SiteGroup/Add" the
source reads:
<FORM ACTION="" METHOD="POST">

This is "different" from what I would expect, not saying that it is a bug :)

Err... it seems like a bug, though... /SiteGroup/Add is not the same as /Add...

server.webpath is set to /SiteGroup?

Kevin

Hi, 
SiteGroup is mounted on cherrypy.root.SiteGroup

controller.py contains identity code (which I hope will work again soon in svn):
class Root(..:
## identity.require(identity.in_group("admin"))
def index():
        raise cherrypy.HTTPRedirect("/SiteGroup/",302)

def login(...

server.webpath is not set

As long as std.url("/Add/") includes a trailing slash, it works as "expected"... assuming my expectations are justified.

/rune

---------------------------------------------------------------------

Behind the firewall, nobody can hear you scream...


Reply via email to