def add_user(self, **kwargs):
        """Add a User object, with properties specified in ``**kwargs``."""
        user = self.UserClass(**kwargs)
        if hasattr(user, 'active'):
            user.active = True
        self.db_adapter.add_object(user)
        return user
def add_user ( self , ** kwargs ) : user = self . UserClass ( ** kwargs ) if hasattr ( user , 'active' ) : user . active = True self . db_adapter . add_object ( user ) return user
Add a User object, with properties specified in ``**kwargs``.