Package ZenUtils :: Package patches :: Module pasmonkey
[show private | hide private]
[frames | no frames]

Module ZenUtils.patches.pasmonkey

This module contains monkey patches we needed to make to PAS when we switched
from native ZODB-managed authentication to pluggable authentication.

This module needs to be imported by ZenUtils/__init__.py.

Related tickets:
  http://dev.zenoss.org/trac/ticket/379
  http://dev.zenoss.org/trac/ticket/402
  http://dev.zenoss.org/trac/ticket/443
  http://dev.zenoss.org/trac/ticket/1042

Function Summary
  login(self)
Set a cookie and redirect to the url that we tried to authenticate against originally.
  manage_afterAdd(self, item, container)
We don't want CookieAuthHelper setting the login attribute, we we'll override manage_afterAdd().
  termsCheck(self)
Check to see if the user has accepted the Zenoss terms.

Function Details

login(self)

Set a cookie and redirect to the url that we tried to authenticate against originally.

manage_afterAdd(self, item, container)

We don't want CookieAuthHelper setting the login attribute, we we'll override manage_afterAdd().

For now, the only thing that manage_afterAdd does is set the login_form attribute, but we will need to check this after every upgrade of the PAS.

termsCheck(self)

Check to see if the user has accepted the Zenoss terms.

Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 http://epydoc.sf.net