[users at bb.net] Html Status ImportError

Chris Spencer chrisspen at gmail.com
Wed Feb 15 05:20:43 UTC 2017


Is there any documentation for translating the old
buildbot.status.web.authz.Authz class to whatever the new alternative is?
I'm assuming this is now a plugin, but it's unclear what the new call is
like. I see some examples at:


http://buildbot.readthedocs.io/en/latest/manual/cfg-www.html#example-configs

but the new Authz class doesn't seem to share any of the same arguments.

For example, how would I translate this?

    authz_cfg=authz.Authz(
        auth=auth.HTPasswdAprAuth('/usr/local/project/htpasswd'),
        useHttpHeader=True,
        gracefulShutdown=False,
        forceBuild='auth',
        forceAllBuilds='auth',
        pingBuilder=False,
        stopBuild=True,
        stopAllBuilds=True,
        cancelPendingBuild=True,
    )
    c['status'].append(html.WebStatus(
         http_port=8010,
         authz=authz_cfg,
    ))


On Wed, Jan 11, 2017 at 6:24 AM, Chris Spencer <chrisspen at gmail.com> wrote:

> Thanks.
>
> On Wed, Jan 11, 2017 at 3:10 AM, Pierre Tardy <tardyp at gmail.com> wrote:
>
>> Hi Chris,
>> Please see this section of the upgrade manual
>> http://buildbot.readthedocs.io/en/latest/manual/installation
>> /nine-upgrade.html#web-status
>>
>> Pierre
>>
>> Le mer. 11 janv. 2017 à 03:25, Chris Spencer <chrisspen at gmail.com> a
>> écrit :
>>
>>> I'm trying to test a Buildbot 0.8 config on the current Buildbot 0.9.2,
>>> and I'm getting the error:
>>>
>>>     Traceback (most recent call last):
>>>       File "/usr/local/myproject/.env/local/lib/python2.7/site-packages
>>> /twisted/python/threadpool.py", line 262, in <lambda>
>>>         inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
>>>       File "/usr/local/myproject/.env/local/lib/python2.7/site-packages/twisted/python/context.py",
>>> line 118, in callWithContext
>>>         return self.currentContext().callWithContext(ctx, func, *args,
>>> **kw)
>>>       File "/usr/local/myproject/.env/local/lib/python2.7/site-packages/twisted/python/context.py",
>>> line 81, in callWithContext
>>>         return func(*args,**kw)
>>>       File "/usr/local/myproject/.env/local/lib/python2.7/site-packages/buildbot/config.py",
>>> line 162, in loadConfig
>>>         self.basedir, self.configFileName)
>>>     --- <exception caught here> ---
>>>       File "/usr/local/myproject/.env/local/lib/python2.7/site-packages/buildbot/config.py",
>>> line 119, in loadConfigDict
>>>         exec(f, localDict)
>>>       File "/usr/local/myproject/src/buildbot/master/master.cfg", line
>>> 131, in <module>
>>>         from buildbot.status import html
>>>     exceptions.ImportError: cannot import name html
>>>
>>> Presumably, some functionality was removed or refactored. However, I
>>> can't find any documentation on the site or through Google to explain where
>>> the "html" status went. Where can I find this?
>>> _______________________________________________
>>> users mailing list
>>> users at buildbot.net
>>> https://lists.buildbot.net/mailman/listinfo/users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170215/58ba86ff/attachment.html>


More information about the users mailing list