-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.zcml
51 lines (42 loc) · 1.54 KB
/
configure.zcml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="utf-8"?>
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
>
<adapter factory=".info.CWMonitorDataSourceInfo"
for=".datasources.CWMonitorDataSource.CWMonitorDataSource"
provides=".interfaces.ICWMonitorDataSourceInfo"
/>
<adapter provides=".interfaces.IEC2InstanceInfo"
for=".EC2Instance.EC2Instance"
factory=".info.EC2InstanceInfo"
/>
<adapter provides=".interfaces.IEC2InstanceTypeInfo"
for=".EC2InstanceType.EC2InstanceType"
factory=".info.EC2InstanceTypeInfo"
/>
<!-- Define the router/facade for this zenpack -->
<adapter factory=".awsfacade.AWSFacade"
provides=".interfaces.IAWSFacade"
name="aws"
for="*"
/>
<!-- Define the device loader -->
<utility component=".awsloader.AWSLoader"
name="aws"
provides="Products.ZenModel.interfaces.IDeviceLoader"
/>
<!-- Define a place for our zenpack to register javascript -->
<browser:resourceDirectory
name="zenaws"
directory="resources"
/>
<browser:viewlet
name="js-zenaws"
paths="/++resource++zenaws/ZenAWS.js
/++resource++zenaws/ZenAWSInstanceTypes.js"
weight="10"
manager="Products.ZenUI3.browser.interfaces.IJavaScriptSrcManager"
class="Products.ZenUI3.browser.javascript.JavaScriptSrcBundleViewlet"
permission="zope2.Public"
/>
</configure>