summaryrefslogtreecommitdiff
path: root/examples/console
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-05-07 19:50:30 +0000
committerianb <devnull@localhost>2005-05-07 19:50:30 +0000
commit86e6d00739d7c46bae497e83e8aa234c07ebe368 (patch)
treee2a42b902609424cdbd4151e1fa48b5d100180eb /examples/console
parentb94d4ce797a382ff96d383b7c8dfcd7593992f68 (diff)
downloadpaste-86e6d00739d7c46bae497e83e8aa234c07ebe368.tar.gz
Added docstring, removed cruft
Diffstat (limited to 'examples/console')
-rw-r--r--examples/console/JSONComponent/jsoncomponent.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/examples/console/JSONComponent/jsoncomponent.py b/examples/console/JSONComponent/jsoncomponent.py
index 62e81a0..fb5a175 100644
--- a/examples/console/JSONComponent/jsoncomponent.py
+++ b/examples/console/JSONComponent/jsoncomponent.py
@@ -1,3 +1,10 @@
+"""
+Requires the jsolait Javascript library:
+ http://jsolait.net/
+
+Typically unpack this library into web/jsolait
+"""
+
from Component import Component, ServletComponent
from json import jsonToObj, objToJson
from paste import httpexceptions
@@ -85,12 +92,3 @@ class JSONServletComponent(ServletComponent):
class JSONComponent(Component):
_componentClass = JSONServletComponent
-
-"""
- <script type="text/javascript" src="%(jsolaitURL)s/lib/jsolait.js"></script>
- <script type="text/javascript">
- //jsolait = importModule("jsolait");
- //jsolait.baseURL = %jsolaitURLr;
- //jsolait.libURL = %(lib)r;
- </script>
-"""