Programatically changing the owner when adding a zclass instance...
Hi there, I've got a script that creates an instance of a zclass and creates an ID based on the user's name from a form: context.REQUEST.set('id', request.form['nameFromForm']) myContext= context.members.manage_addProduct['MyProduct'] myContext.myZclass_add(myContext,context.REQUEST, NoRedir=1) I want to also set the owner with the same request variable "nameFromForm" I've tried to find some example code with no luck... there are tons of examples of how to set roles and permissions, but not ownership... Can this even be done? Any help would be much appreciated. Thanks, Rob
http://www.zopelabs.com/cookbook/997307749 Regards, Adam On Tue, 2001-11-06 at 11:42, Rob Foster wrote:
I've tried to find some example code with no luck... there are tons of examples of how to set roles and permissions, but not ownership... Can this even be done?
participants (2)
-
M. Adam Kendall -
Rob Foster