Package ldaptor :: Package apps :: Package webui :: Module defskin :: Class DefaultSkin
[show private | hide private]
[frames | no frames]

Type DefaultSkin

FreeformChildMixin --+        
                     |        
      ChildLookupMixin --+    
                         |    
   ConfigurableFactory --+    
                         |    
        object --+       |    
                 |       |    
 ConfigurableMixin --+   |    
                     |   |    
        object --+   |   |    
                 |   |   |    
       DataFactory --+   |    
                     |   |    
        object --+   |   |    
                 |   |   |    
      MacroFactory --+   |    
                     |   |    
        object --+   |   |    
                 |   |   |    
     RenderFactory --+   |    
                     |   |    
              Fragment --+    
                         |    
                      Page --+
                             |
                            DefaultSkin


Method Summary
  locateChild(self, ctx, segments)
Locate a child page of this one.
  render_content(self, ctx, data)
  render_head(self, ctx, data)
  render_title(self, ctx, data)
    Inherited from Page
  child_(self, ctx)
When addSlash is True, a page rendered at a url with no trailing slash and a page rendered at a url with a trailing slash will be identical.
  flattenFactory(self, *args)
  onPostFailure(self, reason, request, ctx, bindingName, redirectAfterPost)
  onPostSuccess(self, result, request, ctx, bindingName, redirectAfterPost)
  rememberStuff(self, ctx)
  renderHTTP(self, ctx)
  renderString(self, ctx)
Render this page outside of the context of a web request, returning a Deferred which will result in a string.
  renderSynchronously(self, ctx)
Render this page synchronously, returning a string result immediately.
  webFormPost(self, request, res, configurable, ctx, bindingName, args)
Accept a web form post, either redisplaying the original form (with errors) if validation fails, or redirecting to the appropriate location after the post succeeds.
    Inherited from Fragment
  __init__(self, original, docFactory)
  get(self, context)
  remember(self, obj, inter)
Remember an object for an interface on new PageContexts which are constructed around this Page.
  rend(self, context, data)
    Inherited from DataFactory
  child(self, context, n)
    Inherited from RenderFactory
  render_data(self, context, data_)
  render_mapping(self, context, data)
  render_sequence(self, context, data)
  render_string(self, context, data)
  render_xml(self, context, data)
  renderer(self, context, name)
Return a renderer with the given name.
    Inherited from MacroFactory
  macro(self, ctx, name)
Return a macro with the given name.
    Inherited from ConfigurableMixin
  getBinding(self, ctx, name)
Massage bind_* methods and attributes into an IBinding.
  getBindingNames(self, ctx)
Expose bind_* methods and attributes on this class.
  getDefault(self, forBinding)
Get a default value for a given binding.
  postForm(self, ctx, bindingName, args)
Accept a form post to the given bindingName.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)
    Inherited from ConfigurableFactory
  configurable_(self, context)
Configurable factory for use when self is a configurable; aka it implements IConfigurable or one or more TypedInterface subclasses.
  configurable_original(self, ctx)
Configurable factory for use when self.original is a configurable; aka it implements IConfigurable or one or more TypedInterface subclasses.
  locateConfigurable(self, context, name)
formless.webform.renderForms calls locateConfigurable on the IConfigurableFactory instance it retrieves from the context.
    Inherited from ChildLookupMixin
  childFactory(self, ctx, name)
Used by locateChild to return children which are generated dynamically.
  putChild(self, name, child)
    Inherited from FreeformChildMixin
  child_freeform_hand(self, ctx)

Class Variable Summary
Implements __implemented__ = <implementedBy ldaptor.apps.webui.defs...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
xmlfile docFactory = <nevow.loaders.xmlfile object at 0x40b2bc8c...
list stylesheets = ['form.css', 'ldaptor.css']
    Inherited from Page
NoneType addSlash = None                                                                  
NoneType afterRender = None                                                                  
NoneType beforeRender = None                                                                  
bool buffered = False
    Inherited from Fragment
NoneType original = None                                                                  
    Inherited from DataFactory
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
    Inherited from ChildLookupMixin
NoneType children = None                                                                  

Method Details

locateChild(self, ctx, segments)

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

__implemented__

Type:
Implements
Value:
<implementedBy ldaptor.apps.webui.defskin.DefaultSkin>                 

__provides__

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

docFactory

Type:
xmlfile
Value:
<nevow.loaders.xmlfile object at 0x40b2bc8c>                           

stylesheets

Type:
list
Value:
['form.css', 'ldaptor.css']                                            

Generated by Epydoc 2.1 on Sun Oct 1 10:49:45 2006 http://epydoc.sf.net