Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to convert pending membership requests for active members #50

Open
ejucovy opened this issue Oct 27, 2013 · 1 comment
Open

Comments

@ejucovy
Copy link
Member

ejucovy commented Oct 27, 2013

Find them by code like:

for mem in app.openplans.portal_memberdata.keys():
  if not IHandleMemberWorkflow(app.openplans.portal_memberdata[mem]).is_unconfirmed():
    if IAnnotations(app.openplans.portal_memberdata[mem]).get("opencore.member.pending_requests", {}).items():
      print mem, IAnnotations(app.openplans.portal_memberdata[mem]).get("opencore.member.pending_requests", {}).items() 
@ejucovy
Copy link
Member Author

ejucovy commented Oct 27, 2013

Some corner cases would need to be handled:

  • User is now a member of the project!
  • Project no longer exists!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant