Hi, Using "inside-out" virtual hosting (and other forms of URL munging) can make copy-and-paste break. For example, an object a.b.c addressed as http://foo.com/magic-string/a/b/c will not be copiable because CopySupport uses BASEPATH1 as the Cookie path:
def cookie_path(request): # Return a "path" value for use in a cookie that refers # to the root of the Zope object space. return request['BASEPATH1'] or "/"
is there a good reason why this can't just return "/" as the cookie path? Seb -- [] j a m k i t web solutions for charities seb bacon T: 020 7549 0520 F: 020 7490 1152 M: 07968 301 336 W: www.jamkit.com
Seb Bacon wrote at 2006-2-2 16:54 +0000:
Using "inside-out" virtual hosting (and other forms of URL munging) can make copy-and-paste break. For example, an object a.b.c addressed as
http://foo.com/magic-string/a/b/c
will not be copiable because CopySupport uses BASEPATH1 as the Cookie path:
def cookie_path(request): # Return a "path" value for use in a cookie that refers # to the root of the Zope object space. return request['BASEPATH1'] or "/"
is there a good reason why this can't just return "/" as the cookie path?
I do not see the problem. Can you explain it in a bit more detail? -- Dieter
participants (2)
-
Dieter Maurer -
Seb Bacon