Commit 5f7d7534 authored by 's avatar

Added Help support

parent f46869dc
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
__doc__='''Application support __doc__='''Application support
$Id: Application.py,v 1.74 1998/11/20 18:16:37 jim Exp $''' $Id: Application.py,v 1.75 1998/12/01 17:28:24 brian Exp $'''
__version__='$Revision: 1.74 $'[11:-2] __version__='$Revision: 1.75 $'[11:-2]
import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry
...@@ -20,12 +20,14 @@ import time, rotor, marshal ...@@ -20,12 +20,14 @@ import time, rotor, marshal
from string import strip, lower, find, rfind, join from string import strip, lower, find, rfind, join
from DateTime import DateTime from DateTime import DateTime
from AccessControl.User import UserFolder from AccessControl.User import UserFolder
from HelpSys.HelpSys import HelpSys
from App.ApplicationManager import ApplicationManager from App.ApplicationManager import ApplicationManager
from Globals import Persistent from Globals import Persistent
from FindSupport import FindSupport from FindSupport import FindSupport
from ImageFile import ImageFile from ImageFile import ImageFile
from urllib import quote from urllib import quote
_standard_error_msg='''\ _standard_error_msg='''\
<!--#var standard_html_header--> <!--#var standard_html_header-->
<!--#if error_message--> <!--#if error_message-->
...@@ -66,6 +68,9 @@ class Application(Globals.ApplicationDefaultPermissions, Folder.Folder, ...@@ -66,6 +68,9 @@ class Application(Globals.ApplicationDefaultPermissions, Folder.Folder,
web__form__method='GET' web__form__method='GET'
isTopLevelPrincipiaApplicationObject=1 isTopLevelPrincipiaApplicationObject=1
HelpSys=HelpSys()
class misc_: class misc_:
"Miscellaneous product information" "Miscellaneous product information"
__roles__=None __roles__=None
...@@ -152,6 +157,8 @@ class Application(Globals.ApplicationDefaultPermissions, Folder.Folder, ...@@ -152,6 +157,8 @@ class Application(Globals.ApplicationDefaultPermissions, Folder.Folder,
_standard_error_msg) _standard_error_msg)
def id(self): def id(self):
try: return self.REQUEST['SCRIPT_NAME'][1:] try: return self.REQUEST['SCRIPT_NAME'][1:]
except: return self.title except: return self.title
...@@ -382,6 +389,9 @@ class Misc_: ...@@ -382,6 +389,9 @@ class Misc_:
############################################################################## ##############################################################################
# #
# $Log: Application.py,v $ # $Log: Application.py,v $
# Revision 1.75 1998/12/01 17:28:24 brian
# Added Help support
#
# Revision 1.74 1998/11/20 18:16:37 jim # Revision 1.74 1998/11/20 18:16:37 jim
# First crack at new layout and 1.5 support # First crack at new layout and 1.5 support
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment