[Zope-CMF] entering prefs when logged in from above results in orphans

Alan Runyan runyaga@runyaga.com
Tue, 18 Feb 2003 18:51:30 -0600


whats happening is that.. you most likely do not have
a member in the CMF's acl_users User Folder.
portal_memberdata only looks there to see if the memberdata
matches to the username in the local acl_users.  if not its
considered "orphaned"

so.. its just a "feature" and not a bug.

~runyaga

----- Original Message -----
From: "Colin Leath" <cleath@j9k.org>
To: <zope-cmf@zope.org>
Sent: Tuesday, February 18, 2003 5:41 PM
Subject: [Zope-CMF] entering prefs when logged in from above results in
orphans


> Hello,
> when I, logged in as the manager who created the portal,
> fill out my preferences,
> this results in orphaned memberdata,
>
> and the following script:
>
> print context.portal_membership.getMemberById('myManagerId').email
> return printed
>
> results in
>
>
> Error Type: AttributeError
> Error Value: 'None' object has no attribute 'email'
>
> (even though I filled in my email, and the preferences page retrieves it
> just fine)
>
> aha!
>
> which means,
> getMemberById is not successful,
> while
> getAuthenticatedMember
>
> is!
>
> either way- modding one's prefs results in
>
>
> Number of "orphaned" members without user record: 1
>
> searches
> of
>
http://collector.zope.org/CMF/collector_contents?searching=yep&SearchableTex
t=orphan&status%3Alist%3Aignore_empty=Accepted&status%3Alist%3Aignore_empty=
Deferred&status%3Alist%3Aignore_empty=Pending&status%3Alist%3Aignore_empty=R
ejected&status%3Alist%3Aignore_empty=Resolved
>
> returns nothing.
>
> I'll put it in the collector if no one suggests otherwise-
>
>
>
> Colin
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>