Skip to content

Commit

Permalink
Hooked PythonScript API documentation into help system. Ready for rel…
Browse files Browse the repository at this point in the history
…ease.
  • Loading branch information
Michel Pelletier committed Dec 7, 2000
1 parent 35a34ea commit 58b786c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 5 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
#
##############################################################################
__doc__='''Python Scripts Product Initialization
$Id: __init__.py,v 1.2 2000/12/05 21:41:16 evan Exp $'''
__version__='$Revision: 1.2 $'[11:-2]
$Id: __init__.py,v 1.3 2000/12/07 22:35:12 michel Exp $'''
__version__='$Revision: 1.3 $'[11:-2]

import PythonScript
import standard
Expand All @@ -98,3 +98,6 @@ def initialize(context):
constructors=(PythonScript.manage_addPythonScriptForm,
PythonScript.manage_addPythonScript),
icon='www/pyscript.gif')

context.registerHelp()
context.registerHelpTitle('Zope Help')
11 changes: 11 additions & 0 deletions help/PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
#
##############################################################################

def manage_addPythonScript(self, id, REQUEST=None):
"""Add a Python script to a folder.
"""

class PythonScript:
"""
Expand Down Expand Up @@ -176,6 +180,13 @@ class PythonScript:
"""

__constructor__ = manage_addPythonScript

__extends__=(
'PythonScripts.Script.Script',
)


def ZPythonScriptHTML_editAction(REQUEST, title, params, body):
"""
Expand Down

0 comments on commit 58b786c

Please sign in to comment.