Package ldaptor :: Package apps :: Package webui :: Module gadget :: Class LdaptorWebUIGadget
[hide private]
[frames] | no frames]

Class LdaptorWebUIGadget

source code

                   object --+            
                            |            
       nevow.rend.DataFactory --+        
                                |        
                   object --+   |        
                            |   |        
     nevow.rend.RenderFactory --+        
                                |        
                   object --+   |        
                            |   |        
      nevow.rend.MacroFactory --+        
                                |        
                   object --+   |        
                            |   |        
 nevow.rend.ConfigurableMixin --+        
                                |        
              nevow.rend.Fragment --+    
                                    |    
   nevow.rend.ConfigurableFactory --+    
                                    |    
nevow.rend.FreeformChildMixin --+   |    
                                |   |    
      nevow.rend.ChildLookupMixin --+    
                                    |    
                      nevow.rend.Page --+
                                        |
                                       LdaptorWebUIGadget

Instance Methods [hide private]
 
__init__(self, loggedIn, config) source code
 
getBindingNames(self, ctx)
Expose bind_* methods and attributes on this class.
source code
 
bind_go(self, ctx) source code
 
go(self, ctx, baseDN) source code
 
render_form(self, context, data) source code
 
locateChild(self, ctx, segments)
Locate a child page of this one.
source code
 
render_i18n(page, ctx, data)

Inherited from nevow.rend.Page: child_, flattenFactory, onPostFailure, onPostSuccess, rememberStuff, renderHTTP, renderString, renderSynchronously, webFormPost

Inherited from nevow.rend.Page (private): _renderHTTP

Inherited from nevow.rend.Fragment: get, remember, rend

Inherited from nevow.rend.DataFactory: __providedBy__, child

Inherited from nevow.rend.RenderFactory: render_data, render_mapping, render_sequence, render_string, render_xml, renderer

Inherited from nevow.rend.MacroFactory: macro

Inherited from nevow.rend.ConfigurableMixin: getBinding, getDefault, postForm

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Inherited from nevow.rend.ConfigurableFactory: configurable_, configurable_original, locateConfigurable

Inherited from nevow.rend.ChildLookupMixin: childFactory, putChild

Inherited from nevow.rend.FreeformChildMixin: child_freeform_hand

Class Variables [hide private]
  title = PlaceHolder(*('Ldaptor Web Interface',), translator=<b...
  addSlash = True
  docFactory = loaders.xmlfile('basedn.xhtml', templateDir= os.p...
  __implemented__ = <implementedBy ldaptor.apps.webui.gadget.Lda...
  __provides__ = <zope.interface.declarations.ClassProvides obje...

Inherited from nevow.rend.Page: afterRender, beforeRender, buffered

Inherited from nevow.rend.Fragment: original

Inherited from nevow.rend.ChildLookupMixin: children

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, loggedIn, config)
(Constructor)

source code 
Overrides: nevow.rend.Fragment.__init__

getBindingNames(self, ctx)

source code 
Expose bind_* methods and attributes on this class.
Overrides: nevow.rend.ConfigurableMixin.getBindingNames
(inherited documentation)

locateChild(self, ctx, segments)

source code 

Locate a child page of this one. ctx is a nevow.context.PageContext representing the parent Page, and segments is a tuple of each element in the URI. An tuple (page, segments) should be returned, where page is an instance of nevow.rend.Page and segments a tuple representing the remaining segments of the URI. If the child is not found, return NotFound instead.

locateChild is designed to be easily overridden to perform fancy lookup tricks. However, the default locateChild is useful, and looks for children in three places, in this order:
  • in a dictionary, self.children
  • a member of self named child_<childname>. This can be either an attribute or a method. If an attribute, it should be an object which can be adapted to IResource. If a method, it should take the context and return an object which can be adapted to IResource.
  • by calling self.childFactory(ctx, name). Name is a single string instead of a tuple of strings. This should return an object that can be adapted to IResource.
Overrides: nevow.rend.ChildLookupMixin.locateChild
(inherited documentation)

Class Variable Details [hide private]

title

Value:
PlaceHolder(*('Ldaptor Web Interface',), translator=<bound method Tran\
slator._gettextTranslation of <nevow.i18n.Translator object at 0x922a7\
2c>>, **{'domain': 'ldaptor-webui'})

docFactory

Value:
loaders.xmlfile('basedn.xhtml', templateDir= os.path.split(os.path.abs\
path(__file__)) [0])

__implemented__

Value:
<implementedBy ldaptor.apps.webui.gadget.LdaptorWebUIGadget>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x91eb1cc>