Scott Baker | 0482422 | 2016-04-25 16:45:09 -0700 | [diff] [blame] | 1 | # note: this module named xossite.py instead of site.py due to conflict with |
| 2 | # /usr/lib/python2.7/site.py |
| 3 | |
| 4 | import os |
| 5 | import pdb |
| 6 | import sys |
| 7 | import tempfile |
| 8 | sys.path.append("/opt/tosca") |
| 9 | from translator.toscalib.tosca_template import ToscaTemplate |
| 10 | |
| 11 | from core.models import User, Deployment, TenantRole |
| 12 | |
| 13 | from xosresource import XOSResource |
| 14 | |
| 15 | class 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 | |