Hi,
I am playing around trying to make something happen on a workflow state
change. Beacause I cannot import the module I need in the python script I
am getting an error:
global name 'getMemberById' is not defined
how can I import this module or better still code this so I am not
importing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
getMemberById is a method on the portal_membership tool. You grab the
tool and call the method:
mt = getToolByName(context, 'portal_membership')
member = mt.getMemberById(id)
I highly suggest you get more familiar with Python in general.