No, I am defining a new class here, and initializing its static member katello_user with function parameter user. Works suprisingly well :-) 
Including:

with ContentView.with_user("a","p") as UserContentView:
       UserContentView.create(...)