Zope Plone 3.1.2 - export all users with email addresses

I’ve been running the zope / plone site for about a year now - it was a pretty quick way to get CMS and work, and it’s a great job to do it - it works with 3.1.2 plone. I am currently an expert in the field of zope or plone (in fact, the more I read about it, the less I know that I know!), But I am convenient in python.

I tried to export users as xml - it fails with a unicode / id error. I tried to export as a zexp file, but I can’t find out how to read this file (I tried importing zope, etc., but I don’t know what to do next!

I found scripts that list all users, but they are for zope2, and to be honest, I would not know how to install them at all.

Can someone please either

1) tell me how to fix id / unicode xml export error? And please tell me how can I do this right on the site? or 2) show me how to read and zope zexp file and do something simple, how to put it in a dict?

I did not know that many people were going to register to use my site, and now I want to move the management of the list of email addresses to another system - therefore, this is a requirement for export.

Thanks in advance,

Richard.

+3
source share
2 answers

Another way to retrieve user email addresses:

  • Go to the root of the Plone site in ZMI.
  • Add "Script (Python)".
    • , . "Export_email".
    • " ".
    • , .
    • .
  • "".

script:

for member in context.portal_membership.listMembers():
    print member.getProperty('email')
return printed
+3

. , - .

, /portal _skins/custom/prefs_users_overview : 20 : 2000, , HTML mailto:

b_size request/b_size | : 2000;

- , !

0

Source: https://habr.com/ru/post/1745625/


All Articles