Python web.py和webopenid的问题
我正在处理的应用程序的webopenid模块有问题 迄今为止的守则是:Python web.py和webopenid的问题,python,openid,web.py,Python,Openid,Web.py,我正在处理的应用程序的webopenid模块有问题 迄今为止的守则是: import web from web import template, webopenid from cms import database urls = ( "/", "index", "/openid", "webopenid.host" ) render = template.render("templates", base="base") class index(): def GET
import web
from web import template, webopenid
from cms import database
urls = (
"/", "index",
"/openid", "webopenid.host"
)
render = template.render("templates", base="base")
class index():
def GET(self):
oid = webopenid.status()
if not oid:
form = webopenid.form("/openid")
return render.account_login(form)
else:
return render.account_home
app = web.application(urls, globals())
if __name__ == "__main__":
app.run()
当我尝试提交一个登录名(以:)时,我会看到:
<type 'exceptions.ValueError'> at /openid
need more than 1 value to unpack
Python /Library/Python/2.6/site-packages/web.py-0.36-py2.6.egg/web/application.py in _match, line 415
Web POST http://account.dev.s92.org:8080/openid
at/openid
需要超过1个值才能解包
Python/Library/Python/2.6/site-packages/web.py-0.36-py2.6.egg/web/application.py in_match,第415行
网络帖子http://account.dev.s92.org:8080/openid
我已经对照webopenid使用的其他示例进行了检查,这表明我的代码很好——知道问题出在哪里吗