The Changing the user performing an action and Calling a method with a modified environment recipes in Chapter 9, Advanced Server-Side Development Techniques, deal with modifying self.env at runtime.
The Changing the user performing an action and Calling a method with a modified environment recipes in Chapter 9, Advanced Server-Side Development Techniques, deal with modifying self.env at runtime.