Commit bdea79a8 authored by Chris McDonough's avatar Chris McDonough

Turn URL-munging off by default.

parent 9b95134c
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
############################################################################ ############################################################################
__version__='$Revision: 1.16 $'[11:-2] __version__='$Revision: 1.17 $'[11:-2]
import Globals import Globals
from Persistence import Persistent from Persistence import Persistent
from ZODB import TimeStamp from ZODB import TimeStamp
...@@ -51,7 +51,7 @@ TRAVERSAL_APPHANDLE = 'BrowserIdManager' ...@@ -51,7 +51,7 @@ TRAVERSAL_APPHANDLE = 'BrowserIdManager'
def constructBrowserIdManager( def constructBrowserIdManager(
self, id=BROWSERID_MANAGER_NAME, title='', idname='_ZopeId', self, id=BROWSERID_MANAGER_NAME, title='', idname='_ZopeId',
location=('cookies', 'url', 'form'), cookiepath='/', cookiedomain='', location=('cookies', 'form'), cookiepath='/', cookiedomain='',
cookielifedays=0, cookiesecure=0, auto_url_encoding=0, REQUEST=None cookielifedays=0, cookiesecure=0, auto_url_encoding=0, REQUEST=None
): ):
""" """ """ """
...@@ -94,7 +94,7 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs): ...@@ -94,7 +94,7 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs):
auto_url_encoding = 0 auto_url_encoding = 0
def __init__(self, id, title='', idname='_ZopeId', def __init__(self, id, title='', idname='_ZopeId',
location=('cookies', 'url', 'form'), cookiepath=('/'), location=('cookies', 'form'), cookiepath=('/'),
cookiedomain='', cookielifedays=0, cookiesecure=0, cookiedomain='', cookielifedays=0, cookiesecure=0,
auto_url_encoding=0): auto_url_encoding=0):
self.id = str(id) self.id = str(id)
...@@ -257,7 +257,7 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs): ...@@ -257,7 +257,7 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs):
security.declareProtected(CHANGE_IDMGR_PERM, security.declareProtected(CHANGE_IDMGR_PERM,
'manage_changeBrowserIdManager') 'manage_changeBrowserIdManager')
def manage_changeBrowserIdManager( def manage_changeBrowserIdManager(
self, title='', idname='_ZopeId', location=('cookies', 'form', 'url'), self, title='', idname='_ZopeId', location=('cookies', 'form'),
cookiepath='/', cookiedomain='', cookielifedays=0, cookiesecure=0, cookiepath='/', cookiedomain='', cookielifedays=0, cookiesecure=0,
auto_url_encoding=0, REQUEST=None auto_url_encoding=0, REQUEST=None
): ):
...@@ -288,7 +288,7 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs): ...@@ -288,7 +288,7 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs):
return self.browserid_name return self.browserid_name
security.declareProtected(CHANGE_IDMGR_PERM, 'setBrowserIdNamespaces') security.declareProtected(CHANGE_IDMGR_PERM, 'setBrowserIdNamespaces')
def setBrowserIdNamespaces(self, ns=('cookies', 'form', 'url')): def setBrowserIdNamespaces(self, ns):
""" """
accepts list of allowable browser id namespaces accepts list of allowable browser id namespaces
""" """
......
...@@ -75,7 +75,7 @@ by interacting with the Zope sessioning machinery. ...@@ -75,7 +75,7 @@ by interacting with the Zope sessioning machinery.
</tr> </tr>
<tr> <tr>
<td align=left> <td align=left>
<input type="checkbox" name="location:list" value="url" CHECKED> URLs <input type="checkbox" name="location:list" value="url"> URLs
</td> </td>
</tr> </tr>
</table> </table>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment