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
3ce50add
Commit
3ce50add
authored
Dec 23, 1997
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
woohah! create public interface/user folder option on folder creation
added
parent
d8725266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+8
-3
No files found.
lib/python/OFS/Folder.py
View file @
3ce50add
"""Folder object
$Id: Folder.py,v 1.2
6 1997/12/19 19:11:16 jim
Exp $"""
$Id: Folder.py,v 1.2
7 1997/12/23 21:19:04 jeffrey
Exp $"""
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
...
...
@@ -30,13 +30,18 @@ class FolderHandler:
return
self
.
__class__
def
manage_addFolder
(
self
,
id
,
title
=
''
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
createPublic
=
0
,
createUserF
=
0
,
REQUEST
=
None
):
"""Add a new Folder object"""
i
=
self
.
folderClass
()()
i
.
id
=
id
i
.
title
=
title
i
.
_setRoles
(
acl_type
,
acl_roles
)
self
.
_setObject
(
id
,
i
)
if
createUserF
:
i
.
manage_addUserFolder
()
if
createPublic
:
i
.
manage_addDocument
(
id
=
'index_html'
,
title
=
''
)
if
REQUEST
is
not
None
:
return
self
.
manage_main
(
self
,
REQUEST
)
...
...
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