Your Registry.create() method is wrong. If you're supposed to use it to create 
the instance of the Registry, you are not doing that. Additionally, it is a 
class method, so the first parameter is a class, not an object. Lastly, your 
return value ("registry") is None because the create method does not return 
anything.

I *think* you're trying to do this:

class Registry(object):
    .
    .
    .
    @classmethod
    def create(cls):
        instance = cls()
        instance._service_list = {}
        return instance


-- 
https://code.launchpad.net/~trb143/openlp/bug-1097898/+merge/144400
Your team OpenLP Core is requested to review the proposed merge of 
lp:~trb143/openlp/bug-1097898 into lp:openlp.

_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to