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
f70cca83
Commit
f70cca83
authored
Jan 11, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge from branch.
parent
983bf990
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
17 deletions
+20
-17
lib/python/Products/Sessions/BrowserIdManager.py
lib/python/Products/Sessions/BrowserIdManager.py
+7
-6
lib/python/Products/Sessions/SessionDataManager.py
lib/python/Products/Sessions/SessionDataManager.py
+2
-1
lib/python/Products/TemporaryFolder/TemporaryStorage.py
lib/python/Products/TemporaryFolder/TemporaryStorage.py
+5
-4
lib/python/Products/TemporaryFolder/__init__.py
lib/python/Products/TemporaryFolder/__init__.py
+2
-2
lib/python/Products/Transience/Transience.py
lib/python/Products/Transience/Transience.py
+4
-4
No files found.
lib/python/Products/Sessions/BrowserIdManager.py
View file @
f70cca83
...
...
@@ -11,7 +11,7 @@
#
############################################################################
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
import
Globals
from
Persistence
import
Persistent
from
ZODB
import
TimeStamp
...
...
@@ -68,16 +68,17 @@ class BrowserIdManager(Item, Persistent, Implicit, RoleManager, Owned, Tabs):
{'
label
': '
Ownership
', '
action
':'
manage_owner
'}
)
__implements__ = (SessionInterfaces.BrowserIdManagerInterface, )
icon = '
misc_
/
Sessions
/
idmgr
.
gif
'
security = ClassSecurityInfo()
security.setDefaultAccess('
deny
')
ok = {'
meta_type
':1, '
id
':1, '
icon
':1, '
bobobase_modification_time
':1 }
security.setDefaultAccess(ok)
security.setPermissionDefault(MGMT_SCREEN_PERM, ['
Manager
'])
security.setPermissionDefault(ACCESS_CONTENTS_PERM,['
Manager
','
Anonymous
'])
security.setPermissionDefault(CHANGE_IDMGR_PERM, ['
Manager
'])
__implements__ = (SessionInterfaces.BrowserIdManagerInterface, )
icon = '
misc_
/
Sessions
/
idmgr
.
gif
'
def __init__(self, id, title='', idname='
_ZopeId
',
location='
cookiesthenform
', cookiepath=('
/
'),
cookiedomain='', cookielifedays=0, cookiesecure=0):
...
...
lib/python/Products/Sessions/SessionDataManager.py
View file @
f70cca83
...
...
@@ -65,7 +65,8 @@ class SessionDataManager(Item, Implicit, Persistent, RoleManager, Owned, Tabs):
security = ClassSecurityInfo()
security.setDefaultAccess('
deny
')
ok = {'
meta_type
':1, '
id
':1, '
icon
':1, '
bobobase_modification_time
':1 }
security.setDefaultAccess(ok)
security.setPermissionDefault(CHANGE_DATAMGR_PERM, ['
Manager
'])
security.setPermissionDefault(MGMT_SCREEN_PERM, ['
Manager
'])
security.setPermissionDefault(ACCESS_CONTENTS_PERM,['
Manager
','
Anonymous
'])
...
...
lib/python/Products/TemporaryFolder/TemporaryStorage.py
View file @
f70cca83
...
...
@@ -17,10 +17,10 @@ MappingStorage. Unlike MappingStorage, it needs not be packed to get rid of
non-cyclic garbage and it does rudimentary conflict resolution. This is a
ripoff of Jim's Packless bsddb3 storage.
$Id: TemporaryStorage.py,v 1.
6 2001/11/28 15:51:08 matt
Exp $
$Id: TemporaryStorage.py,v 1.
7 2002/01/11 14:53:38 chrism
Exp $
"""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
from
zLOG
import
LOG
from
ZODB.referencesf
import
referencesf
...
...
@@ -103,10 +103,11 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
storage needs! """
self
.
_lock_acquire
()
try
:
data
,
t
=
self
.
_conflict_cache
.
get
((
oid
,
serial
),
marker
)
data
=
self
.
_conflict_cache
.
get
((
oid
,
serial
),
marker
)
if
data
is
marker
:
raise
POSException
.
ConflictError
,
(
oid
,
serial
)
return
data
else
:
return
data
[
0
]
# data here is actually (data, t)
finally
:
self
.
_lock_release
()
...
...
lib/python/Products/TemporaryFolder/__init__.py
View file @
f70cca83
...
...
@@ -13,13 +13,13 @@
"""
Temporary Folder initialization routines
$Id: __init__.py,v 1.
4 2001/11/28 15:51:08 matt
Exp $
$Id: __init__.py,v 1.
5 2002/01/11 14:53:38 chrism
Exp $
"""
import
ZODB
# for testrunner to be happy
import
TemporaryFolder
def
initialize
(
context
):
import
TemporaryFolder
context
.
registerClass
(
TemporaryFolder
.
MountedTemporaryFolder
,
permission
=
TemporaryFolder
.
ADD_TEMPORARY_FOLDER_PERM
,
...
...
lib/python/Products/Transience/Transience.py
View file @
f70cca83
...
...
@@ -13,10 +13,10 @@
"""
Transient Object Container class.
$Id: Transience.py,v 1.2
3 2001/11/28 15:51:08 matt
Exp $
$Id: Transience.py,v 1.2
4 2002/01/11 14:55:22 chrism
Exp $
"""
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
import
Globals
from
Globals
import
HTMLFile
...
...
@@ -87,8 +87,8 @@ class TransientObjectContainer(SimpleItem):
)
security
=
ClassSecurityInfo
()
security
.
setDefaultAccess
(
'deny'
)
ok
=
{
'meta_type'
:
1
,
'id'
:
1
,
'icon'
:
1
,
'bobobase_modification_time'
:
1
}
security
.
setDefaultAccess
(
ok
)
security
.
setPermissionDefault
(
ACCESS_TRANSIENTS_PERM
,
[
'Manager'
,
'Anonymous'
])
security
.
setPermissionDefault
(
MANAGE_CONTAINER_PERM
,[
'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