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
c834b28b
Commit
c834b28b
authored
Jan 26, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added menu update support
parent
281ceeed
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
10 deletions
+21
-10
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+2
-2
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+2
-2
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+3
-3
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+6
-3
lib/python/OFS/main.dtml
lib/python/OFS/main.dtml
+8
-0
No files found.
lib/python/AccessControl/User.py
View file @
c834b28b
"""Access control package"""
__version__
=
'$Revision: 1.3
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
from
PersistentMapping
import
PersistentMapping
...
...
@@ -289,7 +289,7 @@ class UserFolderHandler:
message
=
'This object already contains a User Folder'
,
action
=
'%s/manage_main'
%
REQUEST
[
'PARENT_URL'
])
self
.
__allow_groups__
=
self
.
acl_users
if
REQUEST
:
return
self
.
manage_main
(
self
,
REQUEST
)
if
REQUEST
:
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
def
UserFolderIds
(
self
):
t
=
[]
...
...
lib/python/OFS/CopySupport.py
View file @
c834b28b
"""Copy interface"""
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
Globals
,
Moniker
,
rPickle
,
tempfile
from
cPickle
import
loads
,
dumps
...
...
@@ -52,7 +52,7 @@ class CopyContainer:
obj
.
_setId
(
clip_id
)
self
.
_setObject
(
clip_id
,
obj
)
obj
.
_postCopy
(
self
)
return
self
.
manage_main
(
self
,
REQUEST
)
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
...
...
lib/python/OFS/Folder.py
View file @
c834b28b
"""Folder object
$Id: Folder.py,v 1.3
5 1998/01/13 23:04:55
brian Exp $"""
$Id: Folder.py,v 1.3
6 1998/01/26 21:01:33
brian Exp $"""
__version__
=
'$Revision: 1.3
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
6
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
...
...
@@ -35,7 +35,7 @@ class FolderHandler:
self
.
_setObject
(
id
,
i
)
if
createUserF
:
i
.
manage_addUserFolder
()
if
createPublic
:
i
.
manage_addDocument
(
id
=
'index_html'
,
title
=
''
)
if
REQUEST
:
return
self
.
manage_main
(
self
,
REQUEST
)
if
REQUEST
:
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
def
folderIds
(
self
):
t
=
[]
...
...
lib/python/OFS/ObjectManager.py
View file @
c834b28b
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.3
3 1998/01/26 16:33:13
brian Exp $"""
$Id: ObjectManager.py,v 1.3
4 1998/01/26 21:01:31
brian Exp $"""
__version__
=
'$Revision: 1.3
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
4
$'
[
11
:
-
2
]
import
Persistence
,
App
.
Management
,
Acquisition
,
App
.
Undo
from
Globals
import
HTMLFile
,
HTMLFile
...
...
@@ -303,7 +303,7 @@ class ObjectManager(
except
:
raise
'BadRequest'
,
(
'%s does not exist'
%
ids
[
-
1
])
del
ids
[
-
1
]
if
REQUEST
is
not
None
:
return
self
.
manage_main
(
self
,
REQUEST
)
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
def
_setProperty
(
self
,
id
,
value
,
type
=
'string'
):
self
.
_checkId
(
id
)
...
...
@@ -472,6 +472,9 @@ class ObjectManager(
##############################################################################
#
# $Log: ObjectManager.py,v $
# Revision 1.34 1998/01/26 21:01:31 brian
# Added menu update support
#
# Revision 1.33 1998/01/26 16:33:13 brian
# Added confirmation to property editing
#
...
...
lib/python/OFS/main.dtml
View file @
c834b28b
...
...
@@ -81,5 +81,13 @@ There are currently no items in <EM><!--#var title_or_id--></EM>
</TR>
</TABLE>
<!--#if update_menu-->
<SCRIPT LANGUAGE="javascript">
<!--
window.parent.update_menu();
//-->
</SCRIPT>
<!--#/if-->
</BODY>
</HTML>
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