blob: 9f7687c60e4eae73dcf353589b058f9cfafffb97 [file] [log] [blame]
Scott Bakerd5bcee42015-10-28 14:52:14 -07001import os
2import pdb
3import sys
4import tempfile
5sys.path.append("/opt/tosca")
6from translator.toscalib.tosca_template import ToscaTemplate
7
8from core.models import DashboardView, Site, Deployment, SiteDeployment
9
10from xosresource import XOSResource
11
12class XOSDashboardView(XOSResource):
13 provides = "tosca.nodes.DashboardView"
14 xos_model = DashboardView
15 copyin_props = ["url","enabled"]
16
17 def get_xos_args(self):
18 return super(XOSDashboardView, self).get_xos_args()
19
20 def can_delete(self, obj):
21 return super(XOSDashboardView, self).can_delete(obj)
22
23