blob: adcf1080e5544bc345740087c43a3056337e26e5 [file] [log] [blame]
Scott Baker717c19e2014-01-21 23:18:49 -08001import os
2import sys
3from hpc.models import ServiceProvider, ContentProvider, CDNPrefix
4from observer.deleter import Deleter
5
6# hpclibrary will be in steps/..
7parentdir = os.path.join(os.path.dirname(__file__),"..")
8sys.path.insert(0,parentdir)
9
10from hpclib import HpcLibrary
11
12class ContentProviderDeleter(Deleter, HpcLibrary):
13 model='ContentProvider'
14
15 def __init__(self, **args):
16 Deleter.__init__(self, **args)
17 HpcLibrary.__init__(self)
18
19 def call(self, pk, model_dict):
20 print "XXX delete content provider", model_dict
21 self.client.onev.Delete("ContentProvider", int(model_dict["content_provider_id"]))
22