Comment 7 for bug 598464

Revision history for this message
Michael Nelson (michael.nelson) wrote :

If I apply: http://pastebin.ubuntu.com/467028/ and then run:

$ bin/test -vv -m test_personset -t test_no_account_or_email

I can force a similar error:

{{{
  File "/home/michael/launchpad/lp-branches/598464-qa-fix/lib/lp/registry/model/person.py", line 2505, in getOrCreateByOpenID
Identifier
    return IPerson(account), db_updated
TypeError: ('Could not adapt', <Account 'Joe Bloggs' (Active account)>, <InterfaceClass lp.registry.interfaces.person.IPerson>)
}}}

But I'm not certain that the cause is correct. I can't see how it could be that the person doesn't exist when the adaption takes place, as it's all within a MasterStorePolicy block. I'll wait to hear from Gary (or someone with more insight), but if this is the case, then this would fix it: http://pastebin.ubuntu.com/467034/