Scott Baker | d5bcee4 | 2015-10-28 14:52:14 -0700 | [diff] [blame] | 1 | import os |
| 2 | import pdb |
| 3 | import sys |
| 4 | import tempfile |
| 5 | sys.path.append("/opt/tosca") |
| 6 | from translator.toscalib.tosca_template import ToscaTemplate |
| 7 | |
| 8 | from core.models import DashboardView, Site, Deployment, SiteDeployment |
| 9 | |
| 10 | from xosresource import XOSResource |
| 11 | |
| 12 | class 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 | |