This works like a charm in Plone, and solves a huge Plone problem--
user changes password, forgets username, forgets password, and
thereby cannot retrieve their lost password.
Plone users, simply create a script named something like export.py
in the Plone Extensions directory, using the above content. Then
in the ZMI, create an external method with...
id: export
module name: export
function: createcsv
Click the test tab, and voila, a CSV file will be downloaded to
your computer. You can save or open it.
Note that this is a HUGE security hole. Leaving such a script
exposed is just asking for it. You've been warned! But created
and deleted on the fly, it can be darned convienient. |