[Buildbot-devel] IEmailLookup

Andrew Melo andrew.melo at gmail.com
Wed Feb 17 19:48:08 UTC 2010


Hello, all

I'm trying to write an email lookup class, and for some reason, I'm
getting this error:

  File "/home/meloam/lib/python2.4/site-packages/buildbot-latest-py2.4.egg/buildbot/status/mail.py",
line 243, in __init__
    assert interfaces.IEmailLookup.providedBy(lookup)
AssertionError

My class looks like this:

class myLookUp(util.ComparableMixin):
        implements(IEmailLookup)
        def getAddress(self,user):
               # a bunch of clauses that look like this (removed other
people's emails)
                elif (user == 'andrew.m.melo'):
                        return 'andrew.m.melo at vanderbilt.edu'

Can someone point me in the right direction?

thanks,
Andrew

-- 
--
Andrew Melo




More information about the devel mailing list