Hi list,

I'm trying to write a script to create a CPS-site member from a given
list of attributes automatically, including the new member's initial
password. The script doesn't have to be a PythonScript - an
ExternalMethod or a Zope Product would also be ok.

Testing cpssite/portal_directories/members/some_portal_member from a
PythonScript, I can get some_portal_member as a Zope object with
meta-type "simple item" (probably "SimpleItemWithProperties") and use
propertyIds(), propertyMap(), getProperty(), etc, to read the
properties. But it seems to me that this "simple item" is some sort of
proxy of the object that hold the member atribute values displayed in
some_portal_member/manage_main. I don't know how to get the permissions
to create such an object behind a "simple item" and how to set its
attribute values.

I suspect this has something to do with my ignorance concerning
Zope3/Five adapters.  Or perhaps there is a much simpler way to do it.
I'd be grateful for a hint on where to start reading in order to learn
how to write this script.


Cheers.

Aroldo.


 
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to