Package Products :: Package ZenUtils :: Package extdirect :: Package zope :: Module javascript
[hide private]
[frames] | no frames]

Source Code for Module Products.ZenUtils.extdirect.zope.javascript

 1  ############################################################################## 
 2  #  
 3  # Copyright (C) Zenoss, Inc. 2009, all rights reserved. 
 4  #  
 5  # This content is made available according to terms specified in 
 6  # License.zenoss under the directory where your Zenoss product is installed. 
 7  #  
 8  ############################################################################## 
 9   
10   
11  import zope.interface 
12  from zope.viewlet.manager import WeightOrderedViewletManager 
13  from zope.viewlet.viewlet import JavaScriptViewlet 
14  from interfaces import IExtDirectJavaScriptManager 
15  from interfaces import IJsonApiJavaScriptManager 
16  from interfaces import IExtDirectJavaScriptAndSourceManager 
17   
18 -class ExtDirectJavaScriptManager(WeightOrderedViewletManager):
19 zope.interface.implements(IExtDirectJavaScriptManager)
20
21 -class JsonApiJavaScriptManager(WeightOrderedViewletManager):
22 zope.interface.implements(IJsonApiJavaScriptManager)
23
24 -class ExtDirectJavaScriptAndSourceManager(WeightOrderedViewletManager):
25 zope.interface.implements(IExtDirectJavaScriptAndSourceManager)
26 27 DirectSourceViewlet = JavaScriptViewlet('direct.js') 28