[Remember Mailing List] Fwd: [Product-Developers] Membrane and the gone getUserAuthProvider

0 views
Skip to first unread message

Maurits van Rees

unread,
Jan 29, 2013, 2:53:12 PM1/29/13
to reme...@lists.coactivate.org
Hi,

This is a forward of a message from Luca Fabbri to the
product-developers list.

Does anyone know why the getUserAuthProvider method was removed from the
implementation but is still in the interface? This is the method that
returns the actual content object that is at the heart of a member.

To me it sounds like a mistake in merging or some other oversight that
would best be remedied by restoring that method. It is still on the
1.1.x branch. I am not sure if it needs any changes.

Maurits van Rees


-------- Origineel bericht --------
Onderwerp: [Product-Developers] Membrane and the gone getUserAuthProvider
Datum: Fri, 25 Jan 2013 16:53:30 +0100
Van: Luca Fabbri <luca-Fct...@public.gmane.org>
Aan: Plone Product Developers
<product-developers-G...@public.gmane.org>
Nieuwsgroepen: gmane.comp.web.zope.plone.product-developers

Hi all,

I'm porting a 3rd party remember/membrane Pone 3 product to Plone 4.

The only thing is not going is a call to a getUserAuthProvider of the
membrane_tool. This method has been totally removed starting from 2.0
generation of the product.
However there's not HISTORY line about this and no information about
what to use instead.
Also: documentation on the web (like
http://developer.plone.org/members/membrane.html#getting-plone-member-from-membraneuser-or-owner-record)
is still using it.

I'm trying to not deeply enter in the application logic (for many
reason). What I must use instead?

Any suggestion or example?

--
-- luca

twitter: http://twitter.com/keul
linkedin: http://linkedin.com/in/lucafbb
blog: http://blog.keul.it/




--
Archive: http://www.coactivate.org/projects/remember/lists/remember/archive/2013/01/1359489194154
To unsubscribe send an email with subject "unsubscribe" to reme...@lists.coactivate.org. Please contact remember...@lists.coactivate.org for questions.

Maurits van Rees

unread,
Feb 26, 2013, 5:25:28 PM2/26/13
to reme...@lists.coactivate.org
Hi,

I looked again at this question. The getUserAuthProvider implementation
was actually already removed in 2009. See
https://github.com/collective/Products.membrane/commit/572299287d5e2ab58fe8162a1325a68e535006b3

You should use getUserObject instead. This functions the same way, but
it also accepts an optional user_id argument:

- def getUserAuthProvider(self, login, brain=False):
+ def getUserObject(self, login=None, user_id=None, brain=False):

I have updated the interface to reflect this:
https://github.com/collective/Products.membrane/commit/3ec998e9f022e6f56969a57a32246644178f152f

I will probably do a release this week or the next.

Maurits

Op 29-01-13 20:53, Maurits van Rees schreef:
Maurits van Rees: http://maurits.vanrees.org/



--
Archive: http://www.coactivate.org/projects/remember/lists/remember/archive/2013/02/1361917531890

Maurits van Rees

unread,
Mar 1, 2013, 8:25:49 AM3/1/13
to reme...@lists.coactivate.org
Op 26-02-13 23:25, Maurits van Rees schreef:
> Hi,
>
> I looked again at this question. The getUserAuthProvider
> implementation was actually already removed in 2009. See
> https://github.com/collective/Products.membrane/commit/572299287d5e2ab58fe8162a1325a68e535006b3
>
>
> You should use getUserObject instead. This functions the same way,
> but it also accepts an optional user_id argument:
>
> - def getUserAuthProvider(self, login, brain=False):
> + def getUserObject(self, login=None, user_id=None, brain=False):
>
> I have updated the interface to reflect this:
> https://github.com/collective/Products.membrane/commit/3ec998e9f022e6f56969a57a32246644178f152f
>
>
> I will probably do a release this week or the next.

I have released Products.membrane 2.1.6. Changelog:

- 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 for
enumerateUsers(...). This avoids finding all membrane users on any
searchterm in sharing tab or user control panel. [saily]

Should work fine with Plone 3.3 until 4.2. Actually, the tests pass on
latest 4.3 too.

--
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl



--
Archive: http://www.coactivate.org/projects/remember/lists/remember/archive/2013/03/1362144351997

Maurits van Rees

unread,
Mar 1, 2013, 10:52:08 AM3/1/13
to reme...@lists.coactivate.org
I have released Products.membrane 2.1.7 that has the missing README.txt file.
Thanks to servilio for noticing this error and informing me.

Maurits



--
Archive: http://www.coactivate.org/projects/remember/lists/remember/archive/2013/03/1362153131216
Reply all
Reply to author
Forward
0 new messages