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
c21f8a81
Commit
c21f8a81
authored
May 04, 2004
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added security declarations (Collector #1222)
parent
29c8c57c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
11 deletions
+33
-11
lib/python/HelpSys/APIHelpTopic.py
lib/python/HelpSys/APIHelpTopic.py
+33
-11
No files found.
lib/python/HelpSys/APIHelpTopic.py
View file @
c21f8a81
...
...
@@ -10,13 +10,19 @@
# FOR A PARTICULAR PURPOSE
#
##############################################################################
"""
API documentation help topics
""" API documentation help topics.
$Id: APIHelpTopic.py,v 1.17 2004/05/04 19:09:29 yuppie Exp $
"""
import
types
from
AccessControl
import
ClassSecurityInfo
from
Globals
import
DTMLFile
from
Globals
import
InitializeClass
from
Globals
import
Persistent
import
HelpTopic
from
Globals
import
DTMLFile
,
Persistent
_ignore_objects
=
{}
...
...
@@ -26,9 +32,9 @@ try:
except
ImportError
:
pass
class
APIHelpTopic
(
HelpTopic
.
HelpTopic
):
"""
Provides API documentation.
""" Provides API documentation.
"""
isAPIHelpTopic
=
1
...
...
@@ -85,9 +91,13 @@ class APIHelpTopic(HelpTopic.HelpTopic):
class
APIDoc
(
Persistent
):
""" Describes an API.
"""
Describes an API.
"""
security
=
ClassSecurityInfo
()
security
.
setDefaultAccess
(
{
'attributes'
:
True
,
'constructor'
:
True
,
'doc'
:
True
,
'extends'
:
True
,
'name'
:
True
,
'methods'
:
True
}
)
extends
=
()
...
...
@@ -172,22 +182,27 @@ class APIDoc(Persistent):
view
=
DTMLFile
(
'dtml/APIView'
,
globals
())
InitializeClass
(
APIDoc
)
class
AttributeDoc
(
Persistent
):
"""
Describes an attribute of an API.
""" Describes an attribute of an API.
"""
security
=
ClassSecurityInfo
()
security
.
setDefaultAccess
(
{
'name'
:
True
,
'value'
:
True
}
)
def
__init__
(
self
,
name
,
value
):
self
.
name
=
name
self
.
value
=
value
view
=
DTMLFile
(
'dtml/attributeView'
,
globals
())
InitializeClass
(
AttributeDoc
)
class
MethodDoc
(
Persistent
):
"""
Describes a method of an API.
""" Describes a method of an API.
required - a sequence of required arguments
optional - a sequence of tuples (name, default value)
...
...
@@ -195,6 +210,11 @@ class MethodDoc(Persistent):
kwargs - the name of the kw argument or None
"""
security
=
ClassSecurityInfo
()
security
.
setDefaultAccess
(
{
'doc'
:
True
,
'kwargs'
:
True
,
'name'
:
True
,
'optional'
:
True
,
'required'
:
True
,
'varargs'
:
True
}
)
varargs
=
None
kwargs
=
None
...
...
@@ -250,6 +270,8 @@ class MethodDoc(Persistent):
view
=
DTMLFile
(
'dtml/methodView'
,
globals
())
InitializeClass
(
MethodDoc
)
def
trim_doc_string
(
text
):
"""
...
...
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