def set_action(self,action):
if action is None:<EOL><INDENT>if self.xmlnode.hasProp("<STR_LIT:action>"):<EOL><INDENT>self.xmlnode.unsetProp("<STR_LIT:action>")<EOL><DEDENT>return<EOL><DEDENT>if action not in ("<STR_LIT>","<STR_LIT>"):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>action = str(action)<EOL>self.xmlnode.setProp("<STR_LIT:action>", action.encode("<STR_LIT:utf-8>"))<EOL>
Set the action of the item.

        :Parameters:
            - `action`: the new action or `None`.
        :Types:
            - `action`: `unicode`