@classmethod
    def register(cls, username, passwd, passwd2=None, email='', salt='',
                 enabled=True, pkey="username", **kwargs):
        #if not cls.registered(username):
        user = super(User, cls).register(username, passwd, passwd2=passwd2,
                                         email=email, salt=salt, **kwargs)
        user.enabled = enabled
        uid = cls.insert(user, pkey=pkey)
        return cls(user.username, user=user)
:param content: The filelike object that is yielded from.
dataset/ETHPy150Open mekarpeles/waltz/waltz/__init__.py/User.register--crossover with--dataset/ETHPy150Open openstack/python-swiftclient/swiftclient/utils.py/ReadableToIterable.__init__