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
f41f14d1
Commit
f41f14d1
authored
May 22, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added manage_exportHack and manage_importHack.
parent
1f2a0359
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
3 deletions
+22
-3
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+22
-3
No files found.
lib/python/OFS/Folder.py
View file @
f41f14d1
"""Folder object
$Id: Folder.py,v 1.4
6 1998/05/20 21:31:3
4 jim Exp $"""
$Id: Folder.py,v 1.4
7 1998/05/22 16:22:5
4 jim Exp $"""
__version__
=
'$Revision: 1.4
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
7
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
...
...
@@ -33,7 +33,7 @@ def manage_addFolder(self,id,title='',createPublic=0,createUserF=0,
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
,
update_menu
=
1
)
if
REQUEST
is
not
None
:
return
self
.
manage_main
(
self
,
REQUEST
,
update_menu
=
1
)
class
Folder
(
ObjectManager
,
RoleManager
,
DocumentHandler
,
SimpleItem
.
Item
,
CopyContainer
):
...
...
@@ -121,6 +121,25 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
"""Test connection"""
return
'PING'
# The Following methods are short-term measures to get Paul off my back;)
def
manage_exportHack
(
self
,
id
=
None
):
" "
if
id
is
None
:
o
=
self
else
:
o
=
getattr
(
self
.
o
)
f
=
Globals
.
data_dir
+
'/export.bbe'
o
.
_p_jar
.
export_file
(
o
,
f
)
return
f
def
manage_importHack
(
self
,
REQUEST
=
None
):
" "
f
=
Globals
.
data_dir
+
'/export.bbe'
o
=
self
.
_p_jar
.
import_file
(
f
)
id
=
o
.
id
if
hasattr
(
id
,
'im_func'
):
id
=
id
()
self
.
_setObject
(
id
,
o
)
return
'OK, I imported %s'
%
id
class
PUTer
:
""" """
def
__init__
(
self
,
parent
,
key
):
...
...
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