Ok, I'm a complete noob with both python and web.py but I'm trying to
make something work that doesn't, and I believe it's web.py related
(though I could be wrong).  The 'import test' below makes the program
throw an exception when I call it with /test.  If I remove the import
and code the test class in directly, it works fine.  Any tips or
pointers appreciated!

test.py looks identical to the "class index:" code, nothing more or
less.  It lives in the same folder as this code.

import web
import test

urls = (
    '/test/?(.*)', 'test',      # matches /test, /test/, and /test/foo
    '/(.*)', 'index',            # matches everything else
    )

class index:
    def GET(self, foo):
        print "Hello, world!"
        print foo

if __name__ == "__main__":
    web.run(urls, globals(), web.reloader)

The exception is

/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
threading.py:697: RuntimeWarning: tp_compare didn't return -1 or -2
for exception
  return _active[_get_ident()]
Exception exceptions.SystemError: 'error return without exception set'
in <generator object at 0x517760> ignored

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to