diff --git a/COMKit/__init__.py b/COMKit/__init__.py index 721f28c..a59eb29 100644 --- a/COMKit/__init__.py +++ b/COMKit/__init__.py @@ -12,8 +12,9 @@ __all__ = [] -# This function gets called by the app server during initialization + def InstallInWebKit(appServer): + # This function gets called by the app server during initialization # See if enabling COM was requested if appServer.setting('EnableCOM', 0): diff --git a/DocSupport/__init__.py b/DocSupport/__init__.py index 792d600..cd262e7 100644 --- a/DocSupport/__init__.py +++ b/DocSupport/__init__.py @@ -1 +1,2 @@ -# +# DocSupport +# Webware for Python diff --git a/KidKit/__init__.py b/KidKit/__init__.py index b45b290..66e3a54 100644 --- a/KidKit/__init__.py +++ b/KidKit/__init__.py @@ -2,6 +2,7 @@ # Webware for Python # See Docs/index.html + def InstallInWebKit(appServer): app = appServer.application() from WebKit.PlugIn import PlugInError diff --git a/MiddleKit/__init__.py b/MiddleKit/__init__.py index efc481f..2780bd6 100644 --- a/MiddleKit/__init__.py +++ b/MiddleKit/__init__.py @@ -4,5 +4,6 @@ __all__ = ['Core', 'Design', 'Run'] + def InstallInWebKit(appServer): pass diff --git a/MiscUtils/Configurable.py b/MiscUtils/Configurable.py index 0edb431..588a4da 100644 --- a/MiscUtils/Configurable.py +++ b/MiscUtils/Configurable.py @@ -70,8 +70,8 @@ def setting(self, name, default=NoDefault): try: return self.config()[name] except KeyError: - raise KeyError('%s config keys are: %s' - % (name, self.config().keys())) + raise KeyError('%s not found - config keys are: %s' + % (name, ', '.join(sorted(self.config())))) else: return self.config().get(name, default) diff --git a/PSP/__init__.py b/PSP/__init__.py index 359d495..f000ffb 100644 --- a/PSP/__init__.py +++ b/PSP/__init__.py @@ -4,6 +4,7 @@ from PSPServletFactory import PSPServletFactory + def InstallInWebKit(appServer): app = appServer.application() app.addServletFactory(PSPServletFactory(app)) diff --git a/TaskKit/__init__.py b/TaskKit/__init__.py index 7e4e973..697eb66 100644 --- a/TaskKit/__init__.py +++ b/TaskKit/__init__.py @@ -2,5 +2,6 @@ # Webware for Python # See Docs/index.html + def InstallInWebKit(appserver): pass diff --git a/UserKit/__init__.py b/UserKit/__init__.py index fa22438..c9ff490 100644 --- a/UserKit/__init__.py +++ b/UserKit/__init__.py @@ -2,5 +2,6 @@ # Webware for Python # See Docs/index.html + def InstallInWebKit(appServer): pass diff --git a/WebKit/ASStreamOut.py b/WebKit/ASStreamOut.py index e79250c..9917601 100644 --- a/WebKit/ASStreamOut.py +++ b/WebKit/ASStreamOut.py @@ -113,7 +113,7 @@ def close(self): self.flush() self._closed = True self._committed = True - self._autocommit = True + self._autoCommit = True def closed(self): """Check whether we are closed to new data.""" diff --git a/WebKit/AppServer.py b/WebKit/AppServer.py index 229147d..716abbb 100755 --- a/WebKit/AppServer.py +++ b/WebKit/AppServer.py @@ -377,7 +377,7 @@ def webwarePath(self): return self._webwarePath def webKitPath(self): - """Return teh WebKit path.""" + """Return the WebKit path.""" return self._webKitPath diff --git a/WebUtils/__init__.py b/WebUtils/__init__.py index afb7738..1bd28bf 100644 --- a/WebUtils/__init__.py +++ b/WebUtils/__init__.py @@ -4,5 +4,6 @@ __all__ = ['HTMLForException', 'HTTPStatusCodes', 'HTMLTag', 'Funcs'] + def InstallInWebKit(appServer): pass