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
e2d825ab
Commit
e2d825ab
authored
Jul 24, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify signatures of new methods and allow them to work without a REQUEST
parent
a9749a24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/Products/ZCatalog/ZCatalog.py
src/Products/ZCatalog/ZCatalog.py
+9
-9
No files found.
src/Products/ZCatalog/ZCatalog.py
View file @
e2d825ab
...
...
@@ -1023,26 +1023,26 @@ class ZCatalog(Folder, Persistent, Implicit):
security
.
declareProtected
(
manage_zcatalog_entries
,
'manage_resetCatalogReport'
)
def
manage_resetCatalogReport
(
self
,
REQUEST
=
None
,
RESPONSE
=
None
,
URL1
=
None
):
def
manage_resetCatalogReport
(
self
,
REQUEST
=
None
):
""" resets the catalog reports """
self
.
_catalog
.
getCatalogReport
().
reset
()
if
REQUEST
and
RESPONSE
:
RESPONSE
.
redirect
(
URL1
+
'/manage_catalogReport?manage_tabs_message=Report%20cleared'
)
if
REQUEST
is
not
None
:
REQUEST
.
response
.
redirect
(
REQUEST
.
URL1
+
'/manage_catalogReport?manage_tabs_message=Report%20cleared'
)
security
.
declareProtected
(
manage_zcatalog_entries
,
'manage_editCatalogReport'
)
def
manage_editCatalogReport
(
self
,
RESPONSE
,
URL1
,
long_query_time
=
0.1
,
REQUEST
=
None
):
def
manage_editCatalogReport
(
self
,
long_query_time
=
0.1
,
REQUEST
=
None
):
""" edit the long query time """
if
not
isinstance
(
long_query_time
,
float
):
long_query_time
=
float
(
long_query_time
)
self
.
long_query_time
=
long_query_time
RESPONSE
.
redirect
(
URL1
+
'/manage_catalogReport?manage_tabs_message=Long%20query%20time%20changed'
)
if
REQUEST
is
not
None
:
REQUEST
.
response
.
redirect
(
REQUEST
.
URL1
+
'/manage_catalogReport?manage_tabs_message='
+
'Long%20query%20time%20changed'
)
InitializeClass
(
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