Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python web.py和webopenid的问题_Python_Openid_Web.py - Fatal编程技术网

Python web.py和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

我正在处理的应用程序的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(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使用的其他示例进行了检查,这表明我的代码很好——知道问题出在哪里吗