Package gavo :: Package web :: Module grend :: Class CustomTemplateMixin
[frames] | no frames]

Class CustomTemplateMixin

source code

object --+
         |
        CustomTemplateMixin
Known Subclasses:

a mixin providing for customized templates.

This works by making docFactory a property first checking if the instance has a customTemplate attribute evaluating to true. If it has and it is referring to a string, its content is used as a resdir-relative path to a nevow XML template. If it has and it is not a string, it will be used as a template directly (it's already "loaded"), else defaultDocFactory attribute of the instance is used.

Instance Methods
 
getDocFactory(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  customTemplate = None
hash(x)
Properties
  docFactory

Inherited from object: __class__

Property Details

docFactory

Get Method:
getDocFactory(self)