blob: abb1f0d6ecb289c7b68d2a3483b07b508f76bb02 [file] [log] [blame]
# note: this module named xossite.py instead of site.py due to conflict with
# /usr/lib/python2.7/site.py
import os
import pdb
import sys
import tempfile
sys.path.append("/opt/tosca")
from translator.toscalib.tosca_template import ToscaTemplate
from core.models import User, Deployment, SiteRole
from xosresource import XOSResource
class XOSSiteRole(XOSResource):
provides = "tosca.nodes.SiteRole"
xos_model = SiteRole
name_field = "role"
def get_xos_args(self):
args = super(XOSSiteRole, self).get_xos_args()
return args
def delete(self, obj):
super(XOSSiteRole, self).delete(obj)