def _checkId(self, id, allow_dup=0): wf_def = aq_parent(aq_inner(self)) if id == wf_def.state_var: raise 'Bad Request', '"%s" is used for keeping state.' % id return ContainerTab._checkId(self, id, allow_dup)