removed another bunch of references to geni
[sfa.git] / sfa / plc / sfa-nuke-plc.py
index e347f2b..16c12dc 100755 (executable)
@@ -1,5 +1,6 @@
+#!/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)
@@ -11,11 +12,10 @@ import sys
 
 from sfa.trust.hierarchy import *
 from sfa.util.record import *
-from sfa.util.genitable import *
-from sfa.util.config import *
+from sfa.util.table import SfaTable
+from sfa.util.config import Config
 
 def process_options():
-   global hrn
 
    (options, args) = getopt.getopt(sys.argv[1:], '', [])
    for opt in options:
@@ -25,8 +25,8 @@ def process_options():
 def main():
     process_options()
 
-    print "purging geni records from database"
-    geni_records_purge(get_default_dbinfo())
+    print "Purging SFA records from database"
+    SfaTable.sfa_records_purge(Config().get_plc_dbinfo())
 
 if __name__ == "__main__":
     main()