blob: d5237a6d5fb39beb0978fe2b5dfe7c984ae92348 [file] [log] [blame]
import os
import sys
from hpc.models import ServiceProvider, ContentProvider, CDNPrefix
from observer.deleter import Deleter
# hpclibrary will be in steps/..
parentdir = os.path.join(os.path.dirname(__file__),"..")
sys.path.insert(0,parentdir)
from hpclib import HpcLibrary
class CDNPrefixDeleter(Deleter, HpcLibrary):
model='CDNPrefix'
def __init__(self, **args):
Deleter.__init__(self, **args)
HpcLibrary.__init__(self)
def call(self, pk, model_dict):
print "XXX delete cdn prefix", model_dict
self.client.onev.Delete("CDNPrefix", int(model_dict["cdn_prefix_id"]))