parameters: (self, id, policy_ids, policy)
docstring: Adds |id| to |policy_ids|. Generates an error message if the
      |id| exists already; |policy| is needed for this message.
docstring_summary: Adds |id| to |policy_ids|. Generates an error message if the
      |id| exists already; |policy| is needed for this message.
docstring_tokens: Adds |id| to |policy_ids| . Generates an error message if the |id| exists already ; |policy| is needed for this message .
function: def _AddPolicyID(self, id, policy_ids, policy):
      '''
      Adds |id| to |policy_ids|. Generates an error message if the
      |id| exists already; |policy| is needed for this message.
      '''
      if id in policy_ids:
        self._Error('Duplicate id', 'policy', policy.get('name'),
                    id)
      else:
        policy_ids.add(id)
function_tokens: def _AddPolicyID ( self , id , policy_ids , policy ) : if id in policy_ids : self . _Error ( 'Duplicate id' , 'policy' , policy . get ( 'name' ) , id ) else : policy_ids . add ( id )