Back to index

plone3  3.1.7
Classes | Functions
plone.app.form._named Namespace Reference

Classes

class  NamedTemplateAdapter

Functions

def named_template_adapter

Function Documentation

Return a new named template adapter which defaults the to given
template.

Definition at line 28 of file _named.py.

00028 
00029 def named_template_adapter(template):
00030     """Return a new named template adapter which defaults the to given
00031     template.
00032     """
00033 
00034     new_class = new.classobj('GeneratedClass', 
00035                              (NamedTemplateAdapter,),
00036                              {})
00037     new_class.default_template = template
00038     return new_class