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
42680191
Commit
42680191
authored
Nov 11, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added copy logic to UF
parent
f8f20a40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+18
-1
No files found.
lib/python/AccessControl/User.py
View file @
42680191
"""Access control package"""
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
import
Globals
from
Persistence
import
Persistent
...
...
@@ -199,7 +199,21 @@ class UserFolder(Implicit, Persistent, Item):
del
self
.
_data
[
n
]
return
self
.
manage_main
(
self
,
REQUEST
)
def
_getCopy
(
self
,
container
):
try
:
obj
=
container
.
aq_self
except
:
obj
=
container
if
hasattr
(
obj
,
'acl_users'
):
raise
(
'Copy Error'
,
'<EM>This object already contains a UserFolder</EM>'
)
return
loads
(
dumps
(
self
))
def
_postCopy
(
self
,
container
):
container
.
__allow_groups__
=
container
.
acl_users
def
_setId
(
self
,
clip_id
):
if
clip_id
!=
self
.
id
:
raise
(
'Copy Error'
,
'<EM>Cannot change the id of a UserFolder</EM>'
)
...
...
@@ -245,6 +259,9 @@ class UserFolderHandler:
# $Log: User.py,v $
# Revision 1.18 1997/11/11 22:38:26 brian
# Added copy logic to UF
#
# Revision 1.17 1997/11/07 20:57:41 jim
# Made manage_addUserFolder accept and ignore keyword arguments to be
# compatible with the new addObject protocol.
...
...
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