Skip to content

mxm, IT's mad science

Sections
Personal tools
You are here: Home » Products » Open Source » Default Member Contents script » Get User ID?
Downloads
You can download mxm products here.

Due to it's technical and international nature, this section is in english.

Max M Has a blog too.

og er glad for mad

 

Comment

Above in this comment thread: Default Contents To New Plone Member Folders

Get User ID?

Posted by Anonymous User at 2005-04-16 03:06 AM
Hey, this script works great but is there a way to find out who the user getting created is? Also, where does this script get called from?

Thanks,

Brian

You can get the id of the context

Posted by maxm at 2005-04-20 02:26 PM
memberId = context.getId()

The context is the member folder. And the member folder allways has the same id as the member. I am not shure if that is allways true though. Its an assumption that is a bit unddocumented.

But it has yet to fail me.