[Zope3-Users] How

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Sep 4 08:54:51 EDT 2007


On Saturday 25 August 2007 13:22, Yuan HOng wrote:
> I have seen code doing verification in the view class like this:
>
> if (not IUnauthenticatedPrincipal.providedBy(request.principal):
>   ...
>
> But surely there will be a much simpler way to do this?

I think the above is very simple. All logic should live in Python code.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list