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
43aa5946
Commit
43aa5946
authored
Nov 02, 2007
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made Helpsys.HelpSys internal ZCatalog creation lazy, so it isn't created unless first accessed.
parent
81cca4b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
14 deletions
+23
-14
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/HelpSys/HelpSys.py
lib/python/HelpSys/HelpSys.py
+20
-14
No files found.
doc/CHANGES.txt
View file @
43aa5946
...
...
@@ -9,6 +9,9 @@ Zope Changes
Restructuring
- Made Helpsys.HelpSys internal ZCatalog creation lazy, so it isn't
created unless first accessed.
- Turned deprecation warnings for manage_afterAdd, manage_beforeDelete
and manage_afterClone methods into discouraged warnings. These methods
will not be removed in Zope 2.11, but stay for the foreseeable future.
...
...
lib/python/HelpSys/HelpSys.py
View file @
43aa5946
...
...
@@ -219,20 +219,26 @@ class ProductHelp(Acquisition.Implicit, ObjectManager, Item, Persistent):
def
__init__
(
self
,
id
=
'Help'
,
title
=
''
):
self
.
id
=
id
self
.
title
=
title
c
=
self
.
catalog
=
ZCatalog
(
'catalog'
)
# clear catalog
for
index
in
c
.
indexes
():
c
.
delIndex
(
index
)
for
col
in
c
.
schema
():
c
.
delColumn
(
col
)
c
.
addIndex
(
'SearchableText'
,
'TextIndex'
)
c
.
addIndex
(
'categories'
,
'KeywordIndex'
)
c
.
addIndex
(
'permissions'
,
'KeywordIndex'
)
c
.
addColumn
(
'categories'
)
c
.
addColumn
(
'permissions'
)
c
.
addColumn
(
'title_or_id'
)
c
.
addColumn
(
'url'
)
c
.
addColumn
(
'id'
)
self
.
_catalog
=
None
@
property
def
catalog
(
self
):
if
self
.
_catalog
is
None
:
c
=
self
.
_catalog
=
ZCatalog
(
'catalog'
)
# clear catalog
for
index
in
c
.
indexes
():
c
.
delIndex
(
index
)
for
col
in
c
.
schema
():
c
.
delColumn
(
col
)
c
.
addIndex
(
'SearchableText'
,
'TextIndex'
)
c
.
addIndex
(
'categories'
,
'KeywordIndex'
)
c
.
addIndex
(
'permissions'
,
'KeywordIndex'
)
c
.
addColumn
(
'categories'
)
c
.
addColumn
(
'permissions'
)
c
.
addColumn
(
'title_or_id'
)
c
.
addColumn
(
'url'
)
c
.
addColumn
(
'id'
)
return
self
.
_catalog
security
.
declareProtected
(
add_documents_images_and_files
,
'addTopicForm'
)
addTopicForm
=
DTMLFile
(
'dtml/addTopic'
,
globals
())
...
...
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