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

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

 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  from zope.interface import Interface 
12  from zope.configuration.fields import GlobalObject 
13  from zope.schema import TextLine 
14   
15 -class IDirectRouter(Interface):
16 """ 17 Registers a name and a javascript viewlet for a DirectRouter subclass. 18 """ 19 name = TextLine( 20 title=u"Name", 21 description=u"The name of the requested view.") 22 23 for_ = GlobalObject( 24 title=u"For Interface", 25 description=u"The interface the directive is used for.", 26 required=False) 27 28 class_ = GlobalObject( 29 title=u"Class", 30 description=u"The DirectRouter subclass" 31 ) 32 33 namespace = TextLine( 34 title=u"Namespace", 35 description=unicode("The JavaScript namespace under which the" 36 " remote methods should be available"), 37 required=False 38 ) 39 40 layer = TextLine( 41 title=u"Layer", 42 description=u"The layer", 43 required=False 44 ) 45 46 timeout = TextLine( 47 title=u"Timeout", 48 description=unicode("Override the default timeout (in milliseconds)" 49 " for the calls"), 50 required=False, 51 default=u"30000" 52 ) 53 54 permission = TextLine( 55 title=u"Permission", 56 description=unicode("The base permission required to access methods" 57 " on this router. Individual methods can override" 58 " this setting using the require decorator"), 59 required=False, 60 default=u"zope.Public" 61 )
62