blob: 316a5a315443a60e6f667f5e6e00c7c37c23519b [file] [log] [blame]
Scott Baker04824222016-04-25 16:45:09 -07001# note: this module named xossite.py instead of site.py due to conflict with
2# /usr/lib/python2.7/site.py
3
4import os
5import pdb
6import sys
7import tempfile
8sys.path.append("/opt/tosca")
9from translator.toscalib.tosca_template import ToscaTemplate
10
11from core.models import User, Deployment, TenantRole
12
13from xosresource import XOSResource
14
15class XOSTenantRole(XOSResource):
16 provides = "tosca.nodes.TenantRole"
17 xos_model = TenantRole
18 name_field = "role"
19
20 def get_xos_args(self):
21 args = super(XOSTenantRole, self).get_xos_args()
22
23 return args
24
25 def delete(self, obj):
26 super(XOSTenantRole, self).delete(obj)
27
28
29