From mikko at redinnovation.com Mon Sep 29 07:51:04 2008 From: mikko at redinnovation.com (Mikko Ohtamaa) Date: Mon, 29 Sep 2008 05:51:04 +0000 (UTC) Subject: [z3-five] Entering/exiting security manage Message-ID: Hi, I'd like to temporary set my own security manager, so that I can see that field permissions are corrrectly evaluated. I am in a trusted context (unit tests) and I'd like to enter an untrusted context for a certain (lambda) function. E.g. self.execTrusted( lambda: self.setText("Should not happen") ) How do I enter/exit security manager with Zope 2 (Five)? If I want to plug-in my custom script engine to Zope security, how do I expose my trusted security context? Cheers, Mikko