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
ae080033
Commit
ae080033
authored
May 12, 2000
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
d18ba4e6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
38 deletions
+3
-38
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+0
-28
lib/python/Products/ZCatalog/__init__.py
lib/python/Products/ZCatalog/__init__.py
+0
-7
lib/python/Products/ZCatalog/addZCatalog.dtml
lib/python/Products/ZCatalog/addZCatalog.dtml
+3
-3
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
ae080033
...
@@ -115,34 +115,6 @@ def manage_addZCatalog(self, id, title, vocab='', vocab_id='', REQUEST=None):
...
@@ -115,34 +115,6 @@ def manage_addZCatalog(self, id, title, vocab='', vocab_id='', REQUEST=None):
return
self
.
manage_main
(
self
,
REQUEST
)
return
self
.
manage_main
(
self
,
REQUEST
)
def
VocabularyIDs
(
self
):
""" returns a list of acquireable vocabularies. Stole this from
ZSQLMethods """
ids
=
{}
have_id
=
ids
.
has_key
StringType
=
type
(
''
)
while
self
is
not
None
:
if
hasattr
(
self
,
'objectValues'
):
for
o
in
self
.
objectValues
():
if
(
hasattr
(
o
,
'_isAVocabulary'
)
and
o
.
_isAVocabulary
and
hasattr
(
o
,
'id'
)):
id
=
o
.
id
if
type
(
id
)
is
not
StringType
:
id
=
id
()
if
not
have_id
(
id
):
if
hasattr
(
o
,
'title_and_id'
):
o
=
o
.
title_and_id
()
else
:
o
=
id
ids
[
id
]
=
id
if
hasattr
(
self
,
'aq_parent'
):
self
=
self
.
aq_parent
else
:
self
=
None
ids
=
map
(
lambda
item
:
(
item
[
1
],
item
[
0
]),
ids
.
items
())
ids
.
sort
()
return
ids
class
ZCatalog
(
Folder
,
Persistent
,
Implicit
):
class
ZCatalog
(
Folder
,
Persistent
,
Implicit
):
"""ZCatalog object
"""ZCatalog object
...
...
lib/python/Products/ZCatalog/__init__.py
View file @
ae080033
...
@@ -112,10 +112,3 @@ def initialize(context):
...
@@ -112,10 +112,3 @@ def initialize(context):
context
.
registerHelp
()
context
.
registerHelp
()
methods
=
{
## aparently this is bad, but I can't think of any other way!
'VocabularyIDs'
:
ZCatalog
.
VocabularyIDs
,
}
lib/python/Products/ZCatalog/addZCatalog.dtml
View file @
ae080033
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
<TD
ALIGN=
"LEFT"
VALIGN=
"TOP"
>
<TD
ALIGN=
"LEFT"
VALIGN=
"TOP"
>
<em>
Select Vocabulary?
</em>
<input
type=
"checkbox"
name=
"vocab"
>
<em>
Select Vocabulary?
</em>
<input
type=
"checkbox"
name=
"vocab"
>
<select
name=
"vocab_id"
>
<select
name=
"vocab_id"
>
<dtml-in
VocabularyIDs
>
<dtml-in
"
superValues
('
Vocabulary
')"
>
<option
value=
"<dtml-var
sequence-item
html_quote>"
>
<option
value=
"<dtml-var
id
html_quote>"
>
<dtml-var
sequence-item
>
<dtml-var
id
>
</option>
</option>
</dtml-in>
</dtml-in>
</select><br>
</select><br>
...
...
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