====
[plcapi.git] / PLC / Methods / DeleteSite.py
index 1eee12c..db2b294 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -8,7 +6,6 @@ from PLC.Persons import Person, Persons
 from PLC.Nodes import Node, Nodes
 from PLC.PCUs import PCU, PCUs
 from PLC.Auth import Auth
-from PLC.SFA import SFA
 
 class DeleteSite(Method):
     """
@@ -41,12 +38,10 @@ class DeleteSite(Method):
             raise PLCInvalidArgument, "Not a local site"
 
         site.delete()
-       
+
         # Logging variables
         self.event_objects = {'Site': [site['site_id']]}
-        self.message = 'Site %d deleted' % site['site_id']     
+        self.message = 'Site %d deleted' % site['site_id']
+
 
-        sfa = SFA()
-        sfa.delete_record(site, 'site')
-        
         return 1