[workshop] Problem with lesson 00: the spec
Carey Hackett
workshop@cornerhost.com
Thu, 09 May 2002 22:21:08 +0100
This runs fine in the browser:
print >> RES, "hello, world!"
This:
name = "Orville"
print >> RES, "hello, %s!" % name
causes the following exception:
uncaught exception while running
/web/script/disorganic/disorganic.sc.sabren.com/hello.app
Traceback (most recent call last):
File "/web/lib/weblib/Engine.py", line 137, in execute
self._execute(script)
File "/web/lib/weblib/Engine.py", line 127, in _execute
exec(script, self.globals, self.locals)
File "/web/script/disorganic/disorganic.sc.sabren.com/hello.app", line 1
name = "Orville"
print >> RES, "hello, %s!" % name
^
SyntaxError: invalid syntax
script input:
* form: {}
* querystring:
* cookie: {'': ''}
script output:
Content-type: text/html
------------------------------------------------------------------------
weblib (c) copyright 2000-2001 Zike Interactive. All rights reserved.
As The Fly would say: "Help me!"
Carey
--
What you do is of little significance. But it is very
important that you do it. -- M.K. Gandhi