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
4dfb7358
Commit
4dfb7358
authored
Nov 03, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #1523: replace the text field for importing .zexp files with a select list
parent
714cda2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+12
-0
lib/python/OFS/dtml/importExport.dtml
lib/python/OFS/dtml/importExport.dtml
+5
-2
No files found.
lib/python/OFS/ObjectManager.py
View file @
4dfb7358
...
...
@@ -567,6 +567,18 @@ class ObjectManager(
ob
=
self
.
_getOb
(
id
)
ob
.
manage_changeOwnershipType
(
explicit
=
0
)
def
list_imports
(
self
):
listing
=
[]
cfg
=
getConfiguration
()
paths
=
[
cfg
.
zopehome
]
if
not
cfg
.
instancehome
in
paths
:
paths
.
append
(
cfg
.
instancehome
)
for
impath
in
paths
:
directory
=
os
.
path
.
join
(
impath
,
'import'
)
listing
+=
[
f
for
f
in
os
.
listdir
(
directory
)
if
f
.
endswith
(
'.zexp'
)
or
f
.
endswith
(
'.xml'
)]
return
listing
# FTP support methods
def
manage_FTPlist
(
self
,
REQUEST
):
...
...
lib/python/OFS/dtml/importExport.dtml
View file @
4dfb7358
...
...
@@ -88,11 +88,14 @@ ownership information".
</div>
</td>
<td align="left" valign="top">
<input type="text" name="file" size="25" value="" />
<select name="file">
<dtml-in "list_imports()">
<option value="<dtml-var sequence-item>"><dtml-var sequence-item></option>
</dtml-in>
</select>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Ownership
...
...
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