2788N/A#!/usr/bin/python
2788N/A
2788N/A# CDDL HEADER START
2788N/A#
2788N/A# The contents of this file are subject to the terms of the
2788N/A# Common Development and Distribution License, Version 1.0 only
2788N/A# (the "License"). You may not use this file except in compliance
2788N/A# with the License.
2788N/A#
6982N/A# You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A# or http://forgerock.org/license/CDDLv1.0.html.
2788N/A# See the License for the specific language governing permissions
2788N/A# and limitations under the License.
2788N/A#
2788N/A# When distributing Covered Code, include this CDDL HEADER in each
6982N/A# file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A# If applicable, add the following below this CDDL HEADER, with the
6982N/A# fields enclosed by brackets "[]" replaced with your own identifying
2788N/A# information:
2788N/A# Portions Copyright [yyyy] [name of copyright owner]
2788N/A#
2788N/A# CDDL HEADER END
2788N/A#
2788N/A#
3232N/A# Copyright 2008 Sun Microsystems, Inc.
2788N/A
2788N/Adef retrieve_aci(filename):
2788N/A aci_file = open(filename,"r")
2788N/A ret_str = ""
2788N/A
3170N/A try:
3170N/A for line in aci_file.readlines():
2788N/A aci_index = line.find("aci:")
2788N/A if aci_index > -1:
3170N/A ret_str = ret_str + line
3170N/A return ret_str
3170N/A finally:
3170N/A aci_file.close()
3170N/A