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
b10687c9
Commit
b10687c9
authored
Jun 25, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added __init__ support for Zope 1.10.x
parent
fc1e20da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+3
-5
lib/python/Products/ZCatalog/__init__.py
lib/python/Products/ZCatalog/__init__.py
+21
-1
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
b10687c9
...
...
@@ -82,10 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
"""Catalog
A Catalog object provides an inteface to index objects.
"""
"""ZCatalog product"""
from
Globals
import
HTMLFile
,
MessageDialog
import
Globals
...
...
@@ -115,7 +112,8 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
"""ZCatalog object"""
meta_type
=
"ZCatalog"
icon
=
'misc_/ZCatalog/ZCatalog.gif'
manage_options
=
(
{
'label'
:
'Contents'
,
'action'
:
'manage_main'
,
...
...
lib/python/Products/ZCatalog/__init__.py
View file @
b10687c9
...
...
@@ -83,10 +83,13 @@
#
##############################################################################
"""
Site Index
product"""
"""
ZCatalog
product"""
import
ZCatalog
,
Catalog
# Zope 2.x.x initialization
def
initialize
(
context
):
context
.
registerClass
(
ZCatalog
.
ZCatalog
,
...
...
@@ -99,7 +102,24 @@ def initialize(context):
# Zope 1.x.x initialization
classes
=
(
'ZCatalog.ZCatalog'
,)
meta_types
=
(
{
'name'
:
'ZCatalog'
,
'action'
:
'manage_addZCatalogForm'
},
)
methods
=
{
'manage_addZCatalogForm'
:
ZCatalog
.
manage_addZCatalogForm
,
'manage_addZCatalog'
:
ZCatalog
.
manage_addZCatalog
,
}
misc_
=
{
'ZCatalog.gif'
:
ImageFile
(
"www/ZCatalog.gif"
,
globals
())
}
__ac_permissions__
=
(
(
'Add ZCatalogs'
,
(
'manage_addZCatalogForm'
,
'manage_addZCatalog'
)),
(
'Manage ZCatalog Entries'
,
()),
(
'Search ZCatalog'
,()),
)
...
...
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