X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeleteSite.py;h=db2b294b101d04e0eb2371df582ed7404e61ef4b;hb=366a9cc3c0def815f9d95226c9c6790371ae84d0;hp=b2adfdbc06bf5dba4441d948fbaee216e04effe2;hpb=d39ed0538a3ad7090d8188a691849ab07733d784;p=plcapi.git diff --git a/PLC/Methods/DeleteSite.py b/PLC/Methods/DeleteSite.py index b2adfdb..db2b294 100644 --- a/PLC/Methods/DeleteSite.py +++ b/PLC/Methods/DeleteSite.py @@ -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): """ @@ -40,15 +37,11 @@ class DeleteSite(Method): if site['peer_id'] is not None: raise PLCInvalidArgument, "Not a local site" - # sync with sfa db - sfa = SFA(self.api) - sfa.delete_record(site, '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'] + - return 1