[Zope] Authentication from a script
Marius Gedminas
marius@codeworks.lt
Mon, 11 Feb 2002 09:41:20 +0200
On Fri, Feb 08, 2002 at 11:10:48PM +0100, Dieter Maurer wrote:
> Marius Gedminas writes:
> > We are using ZUnit for our automated unit test suite....
> > However we are now planning to switch to the new API (SecurityGetUser
> > etc.), and it is unclear how we can substitute a different user object
> > in our tests.
> Look at "AccessControl.SecurityManagement.newSecurityManager".
Thanks. I actually found this method a day after posting my question
here, but I still wasn't sure if this was a "legal" way or just a hack
messing with the internals that should not be touched.
Marius Gedminas
--
When in danger, or in doubt, run in circles, scream and shout.
-- Robert A. Heinlein