Skip to content

Commit

Permalink
Removed getUserAuthProvider from IMembraneTool interface.
Browse files Browse the repository at this point in the history
Replaced it with ``getUserObject`` which has been the method to call
for a few years.
  • Loading branch information
mauritsvanrees committed Feb 26, 2013
1 parent c64cee8 commit 3ec998e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Products/membrane/interfaces/membrane_tool.py
Expand Up @@ -32,10 +32,10 @@ def unregisterMembraneType(portal_type):
def listMembraneTypes():
"""Lists all currently registered member types"""

def getUserAuthProvider(login):
def getUserObject(login, user_id, brain):
"""
Returns the unique object that is the authentication provider
for the provided login.
Return the authentication implementation (content item) for a
given login or userid.
"""

def getOriginalUserIdCase(userid):
Expand Down
3 changes: 2 additions & 1 deletion Products/membrane/tools/membrane.py
Expand Up @@ -102,7 +102,8 @@ def listMembraneTypes(self):

def getUserObject(self, login=None, user_id=None, brain=False):
"""
Return the authentication implementation for a given login or userid.
Return the authentication implementation (content item) for a
given login or userid.
"""
query = {}
if user_id:
Expand Down
5 changes: 5 additions & 0 deletions docs/changes.rst
Expand Up @@ -4,6 +4,11 @@ Changelog
2.1.6 (unreleased)
------------------

- Removed ``getUserAuthProvider`` from ``IMembraneTool`` interface.
Replaced it with ``getUserObject`` which has been the method to call
for a few years.
[maurits]

- Add handling of new keyword argument ``fullname`` passed by
``plone.app.controlpanel.usergroups.UsersOverviewControlPanel`` and
``email`` passed by ``plone.app.workflow.browser.sharing.SharingView`` for
Expand Down

0 comments on commit 3ec998e

Please sign in to comment.