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
8f1d78c8
Commit
8f1d78c8
authored
Sep 01, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a class default for _v_total and fixed a typo that would cause a
NameError in manage_edit.
parent
1a62fb3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+3
-3
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
8f1d78c8
...
...
@@ -181,6 +181,8 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
threshold
=
1000
_v_total
=
0
def
__init__
(
self
,
id
,
title
=
''
):
self
.
id
=
id
...
...
@@ -207,7 +209,7 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
def
manage_edit
(
self
,
RESPONSE
,
URL1
,
threshold
=
1000
,
REQUEST
=
None
):
""" edit the catalog """
self
.
threshold
=
threshold
b
self
.
threshold
=
threshold
RESPONSE
.
redirect
(
URL1
+
'/manage_main?manage_tabs_message=Catalog%20Changed'
)
...
...
@@ -312,8 +314,6 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
def
catalog_object
(
self
,
obj
,
uid
):
""" wrapper around catalog """
if
not
hasattr
(
self
,
'_v_total'
):
self
.
_v_total
=
0
self
.
_v_total
=
(
self
.
_v_total
+
self
.
_catalog
.
catalogObject
(
obj
,
uid
,
self
.
threshold
))
...
...
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