#!/usr/bin/python
##
-# Delete all the database records for Geni. This tool is used to clean out Geni
+# Delete all the database records for SFA. This tool is used to clean out SFA
# records during testing.
#
# Authority info (maintained by the hierarchy module in a subdirectory tree)
from sfa.trust.hierarchy import *
from sfa.util.record import *
-from sfa.util.genitable import GeniTable
-from sfa.util.config import *
+from sfa.util.table import SfaTable
+from sfa.util.sfalogging import sfa_import_logger
def process_options():
def main():
process_options()
- print "purging geni records from database"
- GeniTable.geni_records_purge(get_default_dbinfo())
+ sfa_import_logger.info("Purging SFA records from database")
+ table = SfaTable()
+ table.sfa_records_purge()
if __name__ == "__main__":
main()