Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
19985ee3
Commit
19985ee3
authored
Nov 08, 2001
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SessionDataManager to use a request session name vs the fixed 'SESSION',
remove 'on' button from browser ID manager.
parent
e7f290b0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
28 additions
and
38 deletions
+28
-38
lib/python/Products/Sessions/SessionDataManager.py
lib/python/Products/Sessions/SessionDataManager.py
+11
-12
lib/python/Products/Sessions/dtml/addDataManager.dtml
lib/python/Products/Sessions/dtml/addDataManager.dtml
+4
-3
lib/python/Products/Sessions/dtml/manageDataManager.dtml
lib/python/Products/Sessions/dtml/manageDataManager.dtml
+3
-6
lib/python/Products/Sessions/dtml/manageIdManager.dtml
lib/python/Products/Sessions/dtml/manageIdManager.dtml
+3
-0
lib/python/Products/Sessions/help/browser-add.stx
lib/python/Products/Sessions/help/browser-add.stx
+1
-6
lib/python/Products/Sessions/help/browser-change.stx
lib/python/Products/Sessions/help/browser-change.stx
+0
-3
lib/python/Products/Sessions/help/session-add.stx
lib/python/Products/Sessions/help/session-add.stx
+3
-4
lib/python/Products/Sessions/help/session-change.stx
lib/python/Products/Sessions/help/session-change.stx
+3
-4
No files found.
lib/python/Products/Sessions/SessionDataManager.py
View file @
19985ee3
...
@@ -103,10 +103,10 @@ constructSessionDataManagerForm = Globals.DTMLFile('dtml/addDataManager',
...
@@ -103,10 +103,10 @@ constructSessionDataManagerForm = Globals.DTMLFile('dtml/addDataManager',
ADD_SESSION_DATAMANAGER_PERM="Add Session Data Manager"
ADD_SESSION_DATAMANAGER_PERM="Add Session Data Manager"
def constructSessionDataManager(self, id, title='', path=None,
automatic
=None,
def constructSessionDataManager(self, id, title='', path=None,
requestName
=None,
REQUEST=None):
REQUEST=None):
""" """
""" """
ob = SessionDataManager(id, path, title,
automatic
)
ob = SessionDataManager(id, path, title,
requestName
)
self._setObject(id, ob)
self._setObject(id, ob)
if REQUEST is not None:
if REQUEST is not None:
return self.manage_main(self, REQUEST, update_menu=1)
return self.manage_main(self, REQUEST, update_menu=1)
...
@@ -177,23 +177,23 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
...
@@ -177,23 +177,23 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
# END INTERFACE METHODS
# END INTERFACE METHODS
def __init__(self, id, path=None, title='',
automatic
=None):
def __init__(self, id, path=None, title='',
requestName
=None):
self.id = id
self.id = id
self.setContainerPath(path)
self.setContainerPath(path)
self.setTitle(title)
self.setTitle(title)
if
automatic
:
if
requestName
:
self._requestSessionName=
'
SESSION
'
self._requestSessionName=
requestName
else:
else:
self._requestSessionName=None
self._requestSessionName=None
security.declareProtected(CHANGE_DATAMGR_PERM, '
manage_changeSDM
')
security.declareProtected(CHANGE_DATAMGR_PERM, '
manage_changeSDM
')
def manage_changeSDM(self, title, path=None,
automatic
=None, REQUEST=None):
def manage_changeSDM(self, title, path=None,
requestName
=None, REQUEST=None):
""" """
""" """
self.setContainerPath(path)
self.setContainerPath(path)
self.setTitle(title)
self.setTitle(title)
if
automatic
:
if
requestName
:
self.updateTraversalData(
'
SESSION
'
)
self.updateTraversalData(
requestName
)
else:
else:
self.updateTraversalData(None)
self.updateTraversalData(None)
if REQUEST is not None:
if REQUEST is not None:
...
@@ -273,11 +273,10 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
...
@@ -273,11 +273,10 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
string.join(self.obpath,'
/
')
string.join(self.obpath,'
/
')
)
)
security.declareProtected(MGMT_SCREEN_PERM, '
get
Automatic
')
security.declareProtected(MGMT_SCREEN_PERM, '
get
requestName
')
def get
Automatic
(self):
def get
requestName
(self):
""" """
""" """
if hasattr(self,'
_hasTraversalHook
'): return 1
return self._requestSessionName or ''
return 0
def manage_afterAdd(self, item, container):
def manage_afterAdd(self, item, container):
""" Add our traversal hook """
""" Add our traversal hook """
...
...
lib/python/Products/Sessions/dtml/addDataManager.dtml
View file @
19985ee3
...
@@ -46,18 +46,19 @@ user obtained from a Transient Object Container.
...
@@ -46,18 +46,19 @@ user obtained from a Transient Object Container.
<div class="form-help">e.g. '/temp_folder/transient_container'.</div>
<div class="form-help">e.g. '/temp_folder/transient_container'.</div>
</TD>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="path" SIZE="60" value="
/temp_folder/transient_container
">
<INPUT TYPE="TEXT" NAME="path" SIZE="60" value="">
</TD>
</TD>
</TR>
</TR>
<tr>
<tr>
<td align="LEFT" valign="TOP">
<td align="LEFT" valign="TOP">
<div class="form-label">
<div class="form-label">
Automatic SESSION placement in REQUEST object
Place SESSION in REQUEST object as
</div>
</div>
</td>
</td>
<td align="LEFT" valign="TOP">
<td align="LEFT" valign="TOP">
<input class="form-element" type='CHECKBOX' name='automatic' CHECKED>
<input class="form-element" type="TEXT" name="requestName"
value="SESSION">
</td>
</td>
</tr>
</tr>
...
...
lib/python/Products/Sessions/dtml/manageDataManager.dtml
View file @
19985ee3
...
@@ -35,15 +35,12 @@
...
@@ -35,15 +35,12 @@
<tr>
<tr>
<td align="LEFT" valign="TOP">
<td align="LEFT" valign="TOP">
<div class="form-label">
<div class="form-label">
Automatic SESSION placement in REQUEST object
Place SESSION in REQUEST object as
</div>
</div>
</td>
</td>
<td align="LEFT" valign="TOP">
<td align="LEFT" valign="TOP">
<dtml-if getAutomatic>
<input class="form-element" type="TEXT" name="requestName"
<input class="form-element" type='CHECKBOX' name='automatic' CHECKED>
value="&dtml-getrequestName;">
<dtml-else>
<input class="form-element" type='CHECKBOX' name='automatic'>
</dtml-if>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
...
lib/python/Products/Sessions/dtml/manageIdManager.dtml
View file @
19985ee3
...
@@ -13,10 +13,13 @@
...
@@ -13,10 +13,13 @@
Browser Id Mgr On
Browser Id Mgr On
</div>
</div>
</TD>
</TD>
<dtml-comment>
<TD ALIGN="LEFT" VALIGN="TOP">
<TD ALIGN="LEFT" VALIGN="TOP">
<INPUT TYPE="checkbox" NAME="on"
<INPUT TYPE="checkbox" NAME="on"
<dtml-if isOn>CHECKED</dtml-if>>
<dtml-if isOn>CHECKED</dtml-if>>
</TD>
</TD>
</dtml-comment>
<input type="hidden" name="on" value="1">
</TR>
</TR>
<TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<TD ALIGN="LEFT" VALIGN="TOP">
...
...
lib/python/Products/Sessions/help/browser-add.stx
View file @
19985ee3
...
@@ -77,12 +77,7 @@ Browser Id Manager - Add
...
@@ -77,12 +77,7 @@ Browser Id Manager - Add
button to instantiate a browser id manager.
button to instantiate a browser id manager.
You can manage a browser id manager by visiting it in the
You can manage a browser id manager by visiting it in the
management interface. In addition to adjusting the settings you
management interface.
chose at add-time, you can additionally turn a browser id
manager "off" via this management interface, which will cause
session data managers to ignore it when attempting to acquire a
browser id manager. Session data managers will instead acquire
a browser id manager nearer the root of the ZODB.
Instantiating Multiple Browser Id Managers (Optional)
Instantiating Multiple Browser Id Managers (Optional)
...
...
lib/python/Products/Sessions/help/browser-change.stx
View file @
19985ee3
...
@@ -2,9 +2,6 @@ Browser Id Manager - Change
...
@@ -2,9 +2,6 @@ Browser Id Manager - Change
Form options available are:
Form options available are:
browser id mgr on -- check to activate this Browser Id Manager,
uncheck to disable it.
title -- the browser id manager title.
title -- the browser id manager title.
session token key -- the cookie name and/or form variable name
session token key -- the cookie name and/or form variable name
...
...
lib/python/Products/Sessions/help/session-add.stx
View file @
19985ee3
...
@@ -26,10 +26,9 @@ Session Data Manager - Add
...
@@ -26,10 +26,9 @@ Session Data Manager - Add
store the actual session data. This path is
store the actual session data. This path is
/temp_folder/transient_container in a default Zope installation.
/temp_folder/transient_container in a default Zope installation.
automatic SESSION placement in REQUEST object --
place SESSION in REQUEST as --
check this option to have a SESSION object automatically
If set, the REQUEST variable will be updated with the session
inserted into the REQUEST object, corresponding to the
object, stored as the given name (default is 'SESSION')
current browser's session.
After reviewing and changing these options, click the "Add"
After reviewing and changing these options, click the "Add"
button to instantiate a session data manager.
button to instantiate a session data manager.
...
...
lib/python/Products/Sessions/help/session-change.stx
View file @
19985ee3
...
@@ -9,10 +9,9 @@ Session Data Manager - Change
...
@@ -9,10 +9,9 @@ Session Data Manager - Change
store the actual session data. This path is
store the actual session data. This path is
/temp_folder/transient_container in a default Zope installation.
/temp_folder/transient_container in a default Zope installation.
automatic SESSION placement in REQUEST object --
place SESSION in REQUEST as --
check this option to have a SESSION object automatically
If set, the REQUEST variable will be updated with the session
inserted into the REQUEST object, corresponding to the
object, stored as the given name (default is 'SESSION')
current browser's session.
After reviewing and changing these options, click the "Change"
After reviewing and changing these options, click the "Change"
button to change the session data manager.
button to change the session data manager.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment